Uh oh!
There was an error while loading. Please reload this page.
TEZ-4420 : Upgrade Hadoop to 3.3.4 - #272
Conversation
…e main idea is to give priority to Mockito than Powermock.
@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. |
This comment was marked as outdated.
This comment was marked as outdated.
Uh oh!
There was an error while loading. Please reload this page.
amanraj2520
commented
Feb 22, 2023
Just FYI why I made this change in tez-tests |
e82492c to
f7d1c84Compareamanraj2520
commented
Feb 22, 2023
@abstractdog Can you please review this now |
Uh oh!
There was an error while loading. Please reload this page.
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.
This comment was marked as outdated.
This comment was marked as outdated.
amanraj2520
commented
Feb 23, 2023
@abstractdog Can you please review this. |
abstractdog
commented
Feb 23, 2023
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) |
amanraj2520
commented
Feb 23, 2023
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
commented
Feb 23, 2023
@abstractdog Added a snapshot of a sample successful test which was failing earlier : |
amanraj2520
commented
Feb 23, 2023
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.TestMRRJobs [INFO] Running org.apache.tez.test.TestAM [INFO] Running org.apache.tez.test.TestAMRecovery |
tez-yetus
commented
Feb 23, 2023
💔 -1 overall
This message was automatically generated. |
abstractdog
left a comment
There was a problem hiding this comment.
looks much cleaner, thanks @amanraj2520
+1
steveloughran
commented
Feb 24, 2023
nice. well done |

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