-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AMORO-2008]: Refactor the optimizer module to separate distributing pacakges for different engines. #2051
Conversation
This reverts commit bbaa7f9.
Codecov ReportAttention:
... and 4 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
ams/optimizer-container/pom.xml
Outdated
<properties> | ||
<fastjson.version>1.2.58</fastjson.version> | ||
<avro.version>1.10.1</avro.version> | ||
<snakeyaml.version>1.30</snakeyaml.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the current specification, all dependencies must be added to the dependencyManagement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, #2030 has move these properties to parent pom.
@baiyangtx Thanks a lot for your work!
How do you think? |
I agree with it. I will fix it. |
# Conflicts: # dist/src/main/arctic-bin/bin/optimizer.sh
…optimizer-module-refactor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@baiyangtx I left some comments.
BTW, you may need to modify the managing-optimizer.md
docs too.
ams/optimizer-container/pom.xml
Outdated
<properties> | ||
<fastjson.version>1.2.58</fastjson.version> | ||
<avro.version>1.10.1</avro.version> | ||
<snakeyaml.version>1.30</snakeyaml.version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, #2030 has move these properties to parent pom.
@@ -1,4 +1,4 @@ | |||
package com.netease.arctic.optimizer; | |||
package com.netease.arctic.optimizer.job.common; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Package com.netease.arctic.optimizer.job.common
seems to be too long for me, com.netease.arctic.optimizer
is good enough for me.
<artifactId>amoro-ams-optimizer</artifactId> | ||
<name>Amoro Project Optimizer</name> | ||
<artifactId>flink-optimizer</artifactId> | ||
<name>Amoro Project Flink Optimizer Job</name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<name>Amoro Project Flink Optimizer Job</name> | |
<name>Amoro Project Flink Optimizer</name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>standalone-optimizer</artifactId> | ||
<name>Amoro Project Standalone Optimizer Job</name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<name>Amoro Project Standalone Optimizer Job</name> | |
<name>Amoro Project Standalone Optimizer</name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
ams/optimizer/common/pom.xml
Outdated
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>optimizer-common</artifactId> | ||
<name>Amoro Project Optimize Job Common</name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<name>Amoro Project Optimize Job Common</name> | |
<name>Amoro Project Optimizer Common</name> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
ams/optimizer-container/pom.xml
Outdated
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scope can be ommited.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
ams/optimizer/common/pom.xml
Outdated
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scope can be omited.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
ams/optimizer/common/pom.xml
Outdated
</dependency> | ||
</dependencies> | ||
|
||
<build> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to declare this plugin here and all other modules?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
…pacakges for different engines. (apache#2051) * refactor modules * module name refactor * adjust pom.xml * add checkstyle configs * Revert "add checkstyle configs" This reverts commit bbaa7f9. * checkstyle problems * fix package * local -> standalone optimizer * local-optimizer-container name * refactor code struct as of review comment. * fix unit tests * fix package script * fix review comments * fix ut error * fix ut * fix rename * remove useless import * fix review comments * fix review comments
Why are the changes needed?
Close #2008 .
Brief change log
ams/optimizer-container
,ams/optimizer-job/job-common
,ams/optimizer-job/flink-job
, andams/optimizer-job/standalone-job
.config.yaml
, helmconfigmap
, etc., to update the package name of localOptimizerContainer.plugin/optimize/OptimizeJob.jar
has been removed and replaced withplugin/optimize/flink/optimize-job.jar
, which is only used for the Flink optimizer.How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation