-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-28404][SS] Fix negative timeout value in RateStreamContinuousPartitionReader #25162
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
Conversation
…inuousPartitionReader
|
cc @srowen @HeartSaVioR it's similar just like this. |
dongjoon-hyun
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.
+1, LGTM. (Pending Jenkins).
Thank you, @gaborgsomogyi !
|
This is found during Flaky Test investigation, but the code fix is inside |
|
Thanks @dongjoon-hyun for taking care! Yeah, I've made that step in the PR but not in the jira. |
|
Test build #107688 has finished for PR 25162 at commit
|
|
Merged to master/2.4/2.3. |
…artitionReader ## What changes were proposed in this pull request? `System.currentTimeMillis` read two times in a loop in `RateStreamContinuousPartitionReader`. If the test machine is slow enough and it spends quite some time between the `while` condition check and the `Thread.sleep` then the timeout value is negative and throws `IllegalArgumentException`. In this PR I've fixed this issue. ## How was this patch tested? Existing unit tests. Closes #25162 from gaborgsomogyi/SPARK-28404. Authored-by: Gabor Somogyi <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 8f7ccc5) Signed-off-by: Dongjoon Hyun <[email protected]>
…artitionReader ## What changes were proposed in this pull request? `System.currentTimeMillis` read two times in a loop in `RateStreamContinuousPartitionReader`. If the test machine is slow enough and it spends quite some time between the `while` condition check and the `Thread.sleep` then the timeout value is negative and throws `IllegalArgumentException`. In this PR I've fixed this issue. ## How was this patch tested? Existing unit tests. Closes #25162 from gaborgsomogyi/SPARK-28404. Authored-by: Gabor Somogyi <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 8f7ccc5) Signed-off-by: Dongjoon Hyun <[email protected]>
|
Late LGTM. Nice catch! |
…artitionReader ## What changes were proposed in this pull request? `System.currentTimeMillis` read two times in a loop in `RateStreamContinuousPartitionReader`. If the test machine is slow enough and it spends quite some time between the `while` condition check and the `Thread.sleep` then the timeout value is negative and throws `IllegalArgumentException`. In this PR I've fixed this issue. ## How was this patch tested? Existing unit tests. Closes apache#25162 from gaborgsomogyi/SPARK-28404. Authored-by: Gabor Somogyi <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
…artitionReader ## What changes were proposed in this pull request? `System.currentTimeMillis` read two times in a loop in `RateStreamContinuousPartitionReader`. If the test machine is slow enough and it spends quite some time between the `while` condition check and the `Thread.sleep` then the timeout value is negative and throws `IllegalArgumentException`. In this PR I've fixed this issue. ## How was this patch tested? Existing unit tests. Closes apache#25162 from gaborgsomogyi/SPARK-28404. Authored-by: Gabor Somogyi <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 8f7ccc5) Signed-off-by: Dongjoon Hyun <[email protected]>
…artitionReader ## What changes were proposed in this pull request? `System.currentTimeMillis` read two times in a loop in `RateStreamContinuousPartitionReader`. If the test machine is slow enough and it spends quite some time between the `while` condition check and the `Thread.sleep` then the timeout value is negative and throws `IllegalArgumentException`. In this PR I've fixed this issue. ## How was this patch tested? Existing unit tests. Closes apache#25162 from gaborgsomogyi/SPARK-28404. Authored-by: Gabor Somogyi <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 8f7ccc5) Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
System.currentTimeMillisread two times in a loop inRateStreamContinuousPartitionReader. If the test machine is slow enough and it spends quite some time between thewhilecondition check and theThread.sleepthen the timeout value is negative and throwsIllegalArgumentException.In this PR I've fixed this issue.
How was this patch tested?
Existing unit tests.