-
Notifications
You must be signed in to change notification settings - Fork 9.1k
MAPREDUCE-7428. Fix failing MapReduce tests due to the JUnit upgrades in WebServicesTestUtils #5243
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
…preduce-client-hs
…adoop-mapreduce-client-hs" This reverts commit f7e550d.
…grade in org.apache.hadoop.mapreduce.v2.app.webapp (apache#5209)" This reverts commit 85ec796.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@steveloughran @aajisaka @ashutoshcipher I read this part of the code, I try to submit a pr(#5245), I think if we roll back yarn's junit upgrade, some pity. I will add a I hope this pr(#5245) to solve the |
|
@aajisaka I tried modifying the code and I found yours to be the best, LGTM. The reason for the problem is that the |
|
Thanks @aajisaka for taking of this. Sorry I was not around for last few days. |
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
| } | ||
| assertTrue(fs.mkdirs(appLogsDir)); | ||
|
|
||
| fs.mkdirs(appLogsDir); |
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.
this does cut the check of the outcome...are we all happy with this?
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.
I thought we are happy because the directory has been removed in the previous line, but rethinking this, it's possible to fail removing the directory and then mkdir fails. Adding back the check in the next commit.
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 a lot for your question, I think we should keep this assertTrue.
We are currently experiencing some difficulties.
TestContainerLogsUtils.java uses assertTrue of org.junit.jupiter, hadoop-mapreduce-client-hs and hadoop-mapreduce-client-app use TestContainerLogsUtils.java, hadoop-mapreduce-client-hs and hadoop-mapreduce-client-app These two modules have not upgraded the junit test, so when running the test, the classes cannot be found.
hadoop-mapreduce-client-hs and hadoop-mapreduce-client-app may take some time to upgrade junit test.
aajisaka's idea can quickly fix this problem without affecting the compilation of other modules.
I will continue to follow up the mapreduce junit upgrade. If the mapreduce module junit upgrade is completed, I will change this back.
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.
@aajisaka I see your latest changes, your changes are reasonable. LGTM.
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.
I thought we are happy because the directory has been removed in the previous line, but rethinking this, it's possible to fail removing the directory and then mkdir fails. Adding back the check in the next commit.
Thanks for adding it back. It makes sense. LGTM
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 @slfan1989
hadoop-mapreduce-client-hs and hadoop-mapreduce-client-app may take some time to upgrade junit test.
I have already raised PR for both the modules. Can see some failures in hadoop-mapreduce-client-app - will fix it as well in that PR.
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.
how about removing the asserts and just calling getFileStatus(dir) after.
remember also that delete() returning false means "dir wasn't there"...not a reason to fail
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.
Added getFileStatus(dir) to check the dir exists in the latest commit. Thank you @steveloughran
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
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
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
Thanx @aajisaka for helping chasing and fixing the tests :-)
|
Thanks! Merged into trunk. |
Description of PR
JIRA: MAPREDUCE-7428
Remove direct JUnit API usages from WebServiceTestUtils to fix MapReduce test failures caused by YARN-6946. In addition, it reverts #5209 to run JUnit 4 based tests in hadoop-mapreduce-client-app module.
How was this patch tested?
Ran TestAMWebServices and TestHsWebServices successfully on my local.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?