Skip to content

TEZ-4420 : Upgrade Hadoop to 3.3.4 - #272

Merged
abstractdog merged 7 commits into
apache:masterfrom
amanraj2520:TEZ-4420TestFixes
Feb 24, 2023
Merged

TEZ-4420 : Upgrade Hadoop to 3.3.4#272
abstractdog merged 7 commits into
apache:masterfrom
amanraj2520:TEZ-4420TestFixes

Conversation

@amanraj2520

Copy link
Copy Markdown
Contributor

Upgraded Hadoop to 3.3.4 and some dependency imports for tests.
Have successfully tested in my local running all the test cases.

@amanraj2520

amanraj2520 commented Feb 21, 2023

Copy link
Copy Markdown
ContributorAuthor

@abstractdog I have tested all tests in my local. The only test failure was TestLocalMode previously which I see you have fixed recently in master. Can you please review this.

@tez-yetus

This comment was marked as outdated.

Comment threadtez-tests/pom.xml Outdated
@amanraj2520

Copy link
Copy Markdown
ContributorAuthor

Just FYI why I made this change in tez-tests
This issue comes when PowerMock library conflicts with Mockito as described here https://stackoverflow.com/questions/71973762/java-lang-nosuchmethoderror-org-mockito-answers-getlorg-mockito-stubbing-answ

@amanraj2520

Copy link
Copy Markdown
ContributorAuthor

@abstractdog Can you please review this now

Comment threadtez-tests/pom.xml Outdated
@tez-yetus

This comment was marked as outdated.

@tez-yetus

This comment was marked as outdated.

@tez-yetus

This comment was marked as outdated.

@tez-yetus

This comment was marked as outdated.

@amanraj2520

Copy link
Copy Markdown
ContributorAuthor

@abstractdog Can you please review this.

@abstractdog

Copy link
Copy Markdown
Contributor

Just FYI why I made this change in tez-tests This issue comes when PowerMock library conflicts with Mockito as described here https://stackoverflow.com/questions/71973762/java-lang-nosuchmethoderror-org-mockito-answers-getlorg-mockito-stubbing-answ

I cannot see powermock used by tez, so assuming that the powermock used by hadoop conflicts with the mockito used by tez? is that right? if so, theoretically, this conflict can be resolved in the future in case of a mockito version change in tez or rather a powermock version change in hadoop (as mockito is quite new one in tez since TEZ-4383)
please clarify this scenario here by an xml comment: pom.xmls are full of dependencies without any context and hence extremely easy to break, I would like to see the explanation here (any comment that clarifies my points above is welcome :) )

@amanraj2520

Copy link
Copy Markdown
ContributorAuthor

Hi @abstractdog Sorry my bad. I checked the Hadoop 3.3.4 version in my local repo. It had the use of powermock libraries which I was using to debug and mock some functionalities for branch-3 (Hive) upgrade with Hadoop 3.3.4. These were unnecessary changes. I refreshed my local and deleted all the jars. Now it downloaded oss Hadoop 3.3.4 and built correctly. We only need to include mockito-core for the tez-tests that's it. I have pushed my commit. Kindly check it once.

@amanraj2520

Copy link
Copy Markdown
ContributorAuthor

@abstractdog Added a snapshot of a sample successful test which was failing earlier :
image

@amanraj2520

Copy link
Copy Markdown
ContributorAuthor

Just for everyone's knowledge, if we do not include mockito-core, the tests will fail with the following errors:
`[INFO] Running org.apache.tez.mapreduce.TestMRRJobsDAGApi
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.92 s <<< FAILURE! - in org.apache.tez.mapreduce.TestMRRJobsDAGApi
[ERROR] org.apache.tez.mapreduce.TestMRRJobsDAGApi Time elapsed: 2.914 s <<< ERROR!
java.lang.NoClassDefFoundError: org/mockito/stubbing/Answer
at org.apache.tez.mapreduce.TestMRRJobsDAGApi.setup(TestMRRJobsDAGApi.java:156)
Caused by: java.lang.ClassNotFoundException: org.mockito.stubbing.Answer
at org.apache.tez.mapreduce.TestMRRJobsDAGApi.setup(TestMRRJobsDAGApi.java:156)

[INFO] Running org.apache.tez.mapreduce.TestMRRJobs
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.416 s <<< FAILURE! - in org.apache.tez.mapreduce.TestMRRJobs
[ERROR] org.apache.tez.mapreduce.TestMRRJobs Time elapsed: 3.412 s <<< ERROR!
java.lang.NoClassDefFoundError: org/mockito/stubbing/Answer
at org.apache.tez.mapreduce.TestMRRJobs.setup(TestMRRJobs.java:71)
Caused by: java.lang.ClassNotFoundException: org.mockito.stubbing.Answer
at org.apache.tez.mapreduce.TestMRRJobs.setup(TestMRRJobs.java:71)

[INFO] Running org.apache.tez.test.TestAM
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.019 s <<< FAILURE! - in org.apache.tez.test.TestAM
[ERROR] org.apache.tez.test.TestAM Time elapsed: 3.015 s <<< ERROR!
java.lang.NoClassDefFoundError: org/mockito/stubbing/Answer
at org.apache.tez.test.TestAM.setup(TestAM.java:66)
Caused by: java.lang.ClassNotFoundException: org.mockito.stubbing.Answer
at org.apache.tez.test.TestAM.setup(TestAM.java:66)

[INFO] Running org.apache.tez.test.TestAMRecovery
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.463 s <<< FAILURE! - in org.apache.tez.test.TestAMRecovery
[ERROR] org.apache.tez.test.TestAMRecovery Time elapsed: 3.46 s <<< ERROR!
java.lang.NoClassDefFoundError: org/mockito/stubbing/Answer
at org.apache.tez.test.TestAMRecovery.beforeClass(TestAMRecovery.java:109)
Caused by: java.lang.ClassNotFoundException: org.mockito.stubbing.Answer
at org.apache.tez.test.TestAMRecovery.beforeClass(TestAMRecovery.java:109)`

@tez-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 37sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚@author0m 0sThe patch does not contain any @author tags.
-1 ❌test4tests0m 0sThe patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ master Compile Tests _
+0 🆗mvndep6m 36sMaven dependency ordering for branch
+1 💚mvninstall10m 9smaster passed
+1 💚compile2m 47smaster passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu222.04
+1 💚compile2m 32smaster passed with JDK Private Build-1.8.0_352-8u352-ga-1~22.04-b08
+1 💚javadoc2m 35smaster passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu222.04
+1 💚javadoc2m 6smaster passed with JDK Private Build-1.8.0_352-8u352-ga-1~22.04-b08
_ Patch Compile Tests _
+0 🆗mvndep1m 15sMaven dependency ordering for patch
+1 💚mvninstall4m 31sthe patch passed
+1 💚compile2m 47sthe patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu222.04
+1 💚javac2m 47sthe patch passed
+1 💚compile2m 31sthe patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~22.04-b08
+1 💚javac2m 31sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 2sThe patch has no ill-formed XML file.
+1 💚javadoc2m 24sthe patch passed with JDK Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu222.04
+1 💚javadoc2m 2sthe patch passed with JDK Private Build-1.8.0_352-8u352-ga-1~22.04-b08
_ Other Tests _
+1 💚unit39m 47stez-tests in the patch passed.
+1 💚unit67m 27sroot in the patch passed.
+1 💚asflicense0m 50sThe patch does not generate ASF License warnings.
152m 2s
SubsystemReport/Notes
DockerClientAPI=1.42 ServerAPI=1.42 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-272/6/artifact/out/Dockerfile
GITHUB PR#272
Optional Testsdupname asflicense javac javadoc unit xml compile
unameLinux 5d791a3b716f 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/tez.sh
git revisionmaster / be99489
Default JavaPrivate Build-1.8.0_352-8u352-ga-1~22.04-b08
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.17+8-post-Ubuntu-1ubuntu222.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_352-8u352-ga-1~22.04-b08
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-272/6/testReport/
Max. process+thread count2090 (vs. ulimit of 5500)
modulesC: tez-tests . U: .
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-272/6/console
versionsgit=2.34.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@abstractdog
abstractdog self-requested a review February 24, 2023 07:37

@abstractdogabstractdog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks much cleaner, thanks @amanraj2520
+1

@abstractdog
abstractdog merged commit db9eb1e into apache:masterFeb 24, 2023
@steveloughran

Copy link
Copy Markdown

nice. well done

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@amanraj2520@tez-yetus@abstractdog@steveloughran