Skip to content

HBASE-22927 Upgrade mockito version for Java 11 compatibility - #584

Closed
rabi-kumar wants to merge 0 commit into
apache:masterfrom
rabi-kumar:HBASE-22927
Closed

HBASE-22927 Upgrade mockito version for Java 11 compatibility#584
rabi-kumar wants to merge 0 commit into
apache:masterfrom
rabi-kumar:HBASE-22927

Conversation

@rabi-kumar

Copy link
Copy Markdown
Contributor

No description provided.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
💙reexec3m 46sDocker mode activated.
_ Prechecks _
💚dupname0m 0sNo case conflicting files found.
💚@author0m 0sThe patch does not contain any @author tags.
💛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 _
💚mvninstall6m 18smaster passed
💚compile3m 20smaster passed
💚shadedjars4m 48sbranch has no errors when building our shaded downstream artifacts.
💚javadoc2m 51smaster passed
_ Patch Compile Tests _
💚mvninstall4m 56sthe patch passed
💚compile2m 55sthe patch passed
💚javac2m 55sthe patch passed
💚whitespace0m 0sThe patch has no whitespace issues.
💚xml0m 2sThe patch has no ill-formed XML file.
💔shadedjars4m 27spatch has 10 errors when building our shaded downstream artifacts.
💚hadoopcheck15m 29sPatch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚javadoc2m 48sthe patch passed
_ Other Tests _
💔unit311m 11sroot in the patch failed.
💚asflicense0m 41sThe patch does not generate ASF License warnings.
369m 43s
ReasonTests
Failed junit testshadoop.hbase.client.TestFromClientSide
hadoop.hbase.client.TestFromClientSideWithCoprocessor
SubsystemReport/Notes
DockerClient=19.03.2 Server=19.03.2 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-584/1/artifact/out/Dockerfile
GITHUB PR#584
Optional Testsdupname asflicense javac javadoc unit shadedjars hadoopcheck xml compile
unameLinux 742b07b3fcec 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-584/out/precommit/personality/provided.sh
git revisionmaster / 0d338a1
Default Java1.8.0_181
shadedjarshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-584/1/artifact/out/patch-shadedjars.txt
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-584/1/artifact/out/patch-unit-root.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-584/1/testReport/
Max. process+thread count4921 (vs. ulimit of 10000)
modulesC: . U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-584/1/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z)
Powered byApache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@Apache9

Copy link
Copy Markdown
Contributor

[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven-version) @ hbase-shaded-check-invariants ---
[INFO] Restricted to JDK 1.8 yet net.bytebuddy:byte-buddy:jar:1.9.0:provided contains module-info.class targeted to JDK 1.9
[INFO] Restricted to JDK 1.8 yet net.bytebuddy:byte-buddy-agent:jar:1.9.0:provided contains module-info.class targeted to JDK 1.9
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.EnforceBytecodeVersion failed with message:
HBase has unsupported dependencies.
HBase requires that all dependencies be compiled with version 1.8 or earlier
of the JDK to properly build from source. You appear to be using a newer dependency. You can use
either "mvn -version" or "mvn enforcer:display-info" to verify what version is active.
Non-release builds can temporarily build with a newer JDK version by setting the
'compileSource' property (eg. mvn -DcompileSource=1.8 clean package).
Found Banned Dependency: net.bytebuddy:byte-buddy:jar:1.9.0
Found Banned Dependency: net.bytebuddy:byte-buddy-agent:jar:1.9.0

So the new mockito just drops the support for java 8?

@rabi-kumar

rabi-kumar commented Sep 5, 2019

Copy link
Copy Markdown
ContributorAuthor

Comment on the similar issue raphw/byte-buddy#541 (comment). Work around for above can be to add module-info.class in . What do you think @Apache9??

@Apache9

Copy link
Copy Markdown
Contributor

Seems hadoop has already updated the mockito version to 2.23.4? And seems the UTs are fine so this maybe a too strict enforcer rule? @busbey PTAL.

And why not upgrade to 2.28.2? And also there is a 3.0.0 release now? What's is the difference 3.x and 2.x?

@busbey

busbey commented Sep 5, 2019

Copy link
Copy Markdown
Contributor

Seems hadoop has already updated the mockito version to 2.23.4? And seems the UTs are fine so this maybe a too strict enforcer rule? @busbey PTAL.

This sounded familiar so I dug about. This came up with a JRuby update on HBASE-20582 and is tracked in MENFORCER-300.

On HBASE-20582 we pinned our version of JRuby to avoid the issue (which is what it looks like the byte-buddy developer suggested as a workaround). Since then MENFORCER-300 has been updated to include an example of how to ignore the module-info class. We should probably do that. It might also be worth reopening MENFORCER-300 to discuss what that plugin should be doing about the class.

@busbey

Copy link
Copy Markdown
Contributor

Hadoop updating shouldn't be taken as an indicator of anything, IMHO. They only ensure a certain minimum JDK is used at build time; they don't have any checks to make sure generated artifacts will work with any particular JDK version.

@rabi-kumar

Copy link
Copy Markdown
ContributorAuthor

Checked out both HBASE-20582 and MENFORCER-300. Will follow the example of MENFORCER-300 and add module-info in ignoreclass section.

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
💙reexec0m 41sDocker mode activated.
_ Prechecks _
💚dupname0m 0sNo case conflicting files found.
💚@author0m 0sThe patch does not contain any @author tags.
💛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 _
💚mvninstall5m 44smaster passed
💚compile3m 7smaster passed
💚shadedjars4m 52sbranch has no errors when building our shaded downstream artifacts.
💚javadoc2m 59smaster passed
💛patch8m 1sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
💚mvninstall5m 4sthe patch passed
💚compile2m 55sthe patch passed
💚javac2m 55sthe patch passed
💚whitespace0m 0sThe patch has no whitespace issues.
💚xml0m 2sThe patch has no ill-formed XML file.
💔shadedjars0m 9spatch has 7 errors when building our shaded downstream artifacts.
💚hadoopcheck15m 40sPatch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚javadoc2m 55sthe patch passed
_ Other Tests _
💔unit240m 26sroot in the patch failed.
💚asflicense0m 49sThe patch does not generate ASF License warnings.
291m 54s
ReasonTests
Failed junit testshadoop.hbase.rsgroup.TestRSGroupsAdmin2
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-584/2/artifact/out/Dockerfile
GITHUB PR#584
Optional Testsdupname asflicense javac javadoc unit shadedjars hadoopcheck xml compile
unameLinux ff0541411fe9 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-584/out/precommit/personality/provided.sh
git revisionmaster / 0d338a1
Default Java1.8.0_181
shadedjarshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-584/2/artifact/out/patch-shadedjars.txt
unithttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-584/2/artifact/out/patch-unit-root.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-584/2/testReport/
Max. process+thread count5636 (vs. ulimit of 10000)
modulesC: . U: .
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-584/2/console
versionsgit=2.11.0 maven=2018-06-17T18:33:14Z)
Powered byApache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@busbey

Copy link
Copy Markdown
Contributor

Still working on this @ravowlga123 ?

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

@rabi-kumar@Apache-HBase@Apache9@busbey