-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-19425. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-azure Part2. #7653
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. |
|
💔 -1 overall
This message was automatically generated. |
5392250 to
219c529
Compare
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
c8367d7 to
9d2cabf
Compare
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
2274249 to
cfdf52f
Compare
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
cfdf52f to
7c44bf5
Compare
|
💔 -1 overall
This message was automatically generated. |
anujmodi2021
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 all the efforts @slfan1989
I have added a few comments.
| int SCALE_TEST_TIMEOUT_SECONDS = 30 * 60; | ||
|
|
||
| int SCALE_TEST_TIMEOUT_MILLIS = SCALE_TEST_TIMEOUT_SECONDS * 1000; | ||
| int SCALE_TEST_TIMEOUT_MILLIS = SCALE_TEST_TIMEOUT_SECONDS; |
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.
Given that Timeout in Junit5 is supposed to be defined in seconds, this is logically fine, but this does not sound right. May be we should get rid of the redundant variable here or rename it aptly to denote timeout in seconds only.
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.
Thank you very much for your suggestion! I have thought of a solution that has less impact on the code: when introducing Timeout, we can explicitly specify the time unit, so we won't need to modify the variable anymore.
Timeout(value = AzureTestConstants.AZURE_TEST_TIMEOUT, unit = TimeUnit.MILLISECONDS)
| public static final String TEST_CONFIGURATION_FILE_NAME = "azure-test.xml"; | ||
| public static final String TEST_CONTAINER_PREFIX = "abfs-testcontainer-"; | ||
| public static final int TEST_TIMEOUT = 15 * 60 * 1000; | ||
| public static final int TEST_TIMEOUT = 15 * 60; |
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.
Should we rename it as well to TEST_TIMEOUT_IN_SEC ?
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.
As mentioned in the previous feedback, we can avoid modifying this variable.
| import static org.apache.hadoop.fs.azurebfs.utils.UriUtils.changeUrlFromBlobToDfs; | ||
| import static org.apache.hadoop.fs.azurebfs.utils.UriUtils.changeUrlFromDfsToBlob; | ||
| import static org.apache.hadoop.test.LambdaTestUtils.intercept; | ||
| import static org.assertj.core.api.Assertions.assertThat; |
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.
Nitpick: Shouldn't the non-org.apache.hadoop imports be added before the org.apache.hadoop imports?
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.
Your suggestion makes sense, and I have already adjusted the order of the imports.
|
@anujmodi2021 I apologize for the slow progress on the Azure module upgrade. The delay was due to waiting for the upgrade of the hadoop-common module. Now that the hadoop-common module upgrade has been completed, I will proceed with the Azure module upgrade as soon as possible. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
@anujmodi2021 Could you please help review this pr again? Thank you very much! |
|
Thanks @slfan1989 Code changes looks good. Please look and fix them. |
anujmodi2021
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.
Test failures to be fixed.
ITestAzureBlobFileSystemMainOperation and ITestAbfsInputStreamSmallFileReads
@anujmodi2021 Thank you very much for reviewing the code! I have fixed the related unit tests. Could you kindly check them again? |
|
🎊 +1 overall
This message was automatically generated. |
| Assertions.assertThat(paths.get(1).isDirectory()).isEqualTo(true); | ||
| Assertions.assertThat(paths.get(2).isDirectory()).isEqualTo(true); | ||
| Assertions.assertThat(paths.get(3).isDirectory()).isEqualTo(false); | ||
| Assertions.assertThat(listResultSchema.getNextMarker()).isNotNull(); |
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.
Did we lose an assertion?
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.
Thank you for pointing out this issue! I will make the necessary corrections.
cnauroth
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 pending pre-submit. Thank you @slfan1989 ! @anujmodi2021 , thank you for reporting the issue.
|
🎊 +1 overall
This message was automatically generated. |
anujmodi2021
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 fixing the tests @slfan1989
+1 LGTM
zhtttylz
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 @slfan1989
|
@anujmodi2021 @cnauroth @zhtttylz Thank you very much for the review! |
Description of PR
JIRA: HADOOP-19425. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-azure Part2.
How was this patch tested?
Junit Test & mvn clean test.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?