-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16609. Fix Flakes Junit Tests that often report timeouts. #4382
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
|
🎊 +1 overall
This message was automatically generated. |
|
@tomscut @Hexiaoqiao please help me to review the code, thank you very much! |
|
@tomscut please help me to review the code, thank you very much! |
| return false; | ||
| } | ||
| }, 1, 3000); | ||
| }, 1, 6000); |
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.
The comment Wait for 3 seconds above also needs to be changed.
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 your help review, I will fix it.
|
🎊 +1 overall
This message was automatically generated. |
tomscut
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.
LGTM.
|
💔 -1 overall
This message was automatically generated. |
Hexiaoqiao
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.
LGTM. +1 from my side.
|
💔 -1 overall
This message was automatically generated. |
|
@tomscut @Hexiaoqiao Thanks for helping to review the code, the junit test has passed, the java doc problem can be ignored, I will submit pr separately to fix the java doc problem. |
|
💔 -1 overall
This message was automatically generated. |
|
@Hexiaoqiao @tomscut I read the test report carefully and think that changing the timeout time will not cause javadoc to report an error, I hope you can help me review the code again. |
tomscut
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.
LGTM.
Hexiaoqiao
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.
LGTM. +1.
|
Committed to trunk. Thanks @slfan1989 and @tomscut. |
|
@Hexiaoqiao @tomscut Thanks for helping to review the code! |
…e#4382). Contributed by fanshilun.
JIRA: HDFS-16609. Fix Flakes Junit Tests that often report timeouts.
When I was dealing with HDFS-16590 JIRA, Junit Tests often reported errors, I found that one type of problem is TimeOut problem, these problems can be avoided by adjusting TimeOut time.
The modified method is as follows:
1.org.apache.hadoop.hdfs.TestFileCreation#testServerDefaultsWithMinimalCaching
2.org.apache.hadoop.hdfs.TestDFSShell#testFilePermissions
3.org.apache.hadoop.hdfs.server.sps.TestExternalStoragePolicySatisfier#testSPSWhenFileHasExcessRedundancyBlocks