-
Notifications
You must be signed in to change notification settings - Fork 374
[AMORO-4040] Change default value of optimizer.task-execute-timeout t… #4042
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
base: master
Are you sure you want to change the base?
Conversation
…o Long.MAX_VALUE ns
klion26
left a comment
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.
Thanks for the contribution, left some comments, please let me know what do you think about them.
| .defaultValue(Duration.ofSeconds(30)) | ||
| .withDescription("Timeout duration for task acknowledgment."); | ||
|
|
||
| // defaultValue must be in nanoseconds; otherwise, TimeUtils.formatWithHighestUnit will fail with |
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.
IIUC we use Duration.ofNanos(Long.MAX_VALUE) instead of Duration.ofHours(xx)(or others) because they will overflow, if this is true, maybe we don't need this comment, or we can move it to the L482
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.
Could we use the TimeUnit::Second? (may be with Int.MAX_VALUE), Fom my perspective, seconds are used more often than nanoseconds.
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.
That makes sense.
| } | ||
| } | ||
|
|
||
| private boolean isTaskExecTimeout(TaskRuntime<?> task) { |
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.
Thanks for extracting the common logic
e35dc2e to
18890da
Compare
|
The change LGTM, could you please resolve the conflict, so that we can merge it in. thanks |
Why are the changes needed?
Close #4040.
Brief change log
Update the default value of OPTIMIZER_TASK_EXECUTE_TIMEOUT from Duration.ofHours(1) to Duration.ofMillis(Long.MAX_VALUE) ns
How was this patch tested?
[ x] Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
[x ] Run test locally before making a pull request
Documentation