-
Notifications
You must be signed in to change notification settings - Fork 283
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-3237] Generalize TaskRuntime to support more task types #3238
Conversation
f18de4d
to
92de9dd
Compare
public ExecutingStageTask( | ||
long tableId, String partition, RewriteFilesInput input, Map<String, String> properties) { | ||
super(tableId, input, properties); | ||
this.partition = partition; |
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.
Persistence is required, otherwise information will be lost after recover.
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.
Persistence logic has not been modified.
Please check it in TaskRuntime.persistTaskRuntime()
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.
@majin1102 Thanks for the work!
This is a good start to support more task types.
I left some small suggestions, PTAL.
amoro-ams/src/main/java/org/apache/amoro/server/optimizing/TaskRuntime.java
Show resolved
Hide resolved
amoro-ams/src/main/java/org/apache/amoro/server/optimizing/StagedTaskDescriptor.java
Show resolved
Hide resolved
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.
Why are the changes needed?
Close #3237.
Brief change log
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