Skip to content
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

HADOOP-16596. [pb-upgrade] Use shaded protobuf classes from hadoop-thirdparty dependency #1635

Merged
merged 8 commits into from
Feb 7, 2020

Conversation

vinayakumarb
Copy link
Contributor

Use the shaded protobuf classes from "hadoop-thirdparty" in hadoop codebase.

Depends on apache/hadoop-thirdparty#1 for the hadoop-thordparty dependency

@vinayakumarb vinayakumarb self-assigned this Oct 10, 2019
@vinayakumarb
Copy link
Contributor Author

This has to be changed all modules together to avoid the compilation errors due to internal dependency on the hadoop-common's generated protobuf messages.

So, expecting Yetus to complete precommit checks within 5 hrs(timeout) is not a feasible idea.
I have compiled the project from root locally.

@vinayakumarb
Copy link
Contributor Author

vinayakumarb commented Jan 14, 2020

Summary of changes

Using hadoop-shaded-protobuf_3_7 artifact

  • Using 1.0.0-SNAPSHOT version of hadoop-shaded-protobuf_3_7 artifact from hadoop-thirdparty
    Will be replaced with release artifact version once released in follow-up task.

replacer plugin to replace tokens (com.google.protobuf to o.a.h.thirdparty.protobuf_3_7)

  • Configured replacer plugin to replace tokens in generated-sources, generated-test-sources, sources , test-sources in hadoop-project/pom.xml.
  • All these executions of replacer plugin skip by default, and each module wherever protobuf is used these executions will be turned on.
  • Changed files due to replacer execution of source and test-sources are committed. And some files are manually edited to fix checkstyle comments due to line length.
  • This replacement should be done for all modules together due to high inter dependency

Restored protobuf.version property to 2.5.0 and added to classpath.

  • adding back 2.5.0 protobuf into classpath fixes the hbase timelineserver tests.
  • No classes of protobuf 2.5.0 will be referred by Hadoop code any more. So this jar just stays back not to break downstream classpath

Increased timeout in Jenkinsfile

  • Increased the timeout to 16 hours to avoid build gets aborted in cases changes are in root directory of hadoop code base. This can be reverted if not required to commit.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 34m 26s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 10s No case conflicting files found.
+0 🆗 shelldocs 0m 10s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 31 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 1m 53s Maven dependency ordering for branch
+1 💚 mvninstall 24m 43s trunk passed
+1 💚 compile 20m 4s trunk passed
+1 💚 checkstyle 4m 51s trunk passed
+1 💚 mvnsite 18m 18s trunk passed
+1 💚 shadedclient 14m 3s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 7m 9s trunk passed
+0 🆗 spotbugs 30m 1s Used deprecated FindBugs config; considering switching to SpotBugs.
+0 🆗 findbugs 0m 18s branch/hadoop-project no findbugs output file (findbugsXml.xml)
+0 🆗 findbugs 0m 23s branch/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests no findbugs output file (findbugsXml.xml)
-1 ❌ findbugs 0m 42s hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests in trunk has 1 extant findbugs warnings.
-1 ❌ findbugs 29m 55s root in trunk has 9 extant findbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 33s Maven dependency ordering for patch
+1 💚 mvninstall 34m 2s the patch passed
+1 💚 compile 17m 34s the patch passed
+1 💚 javac 17m 34s the patch passed
+1 💚 checkstyle 4m 3s root: The patch generated 0 new + 3353 unchanged - 1 fixed = 3353 total (was 3354)
+1 💚 mvnsite 20m 9s the patch passed
+1 💚 shellcheck 0m 0s There were no new shellcheck issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 xml 0m 32s The patch has no ill-formed XML file.
+1 💚 shadedclient 18m 30s patch has no errors when building and testing our client artifacts.
-1 ❌ javadoc 7m 7s root generated 959 new + 4205 unchanged - 0 fixed = 5164 total (was 4205)
+0 🆗 findbugs 0m 21s hadoop-project has no data from findbugs
+0 🆗 findbugs 0m 32s hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests has no data from findbugs
_ Other Tests _
-1 ❌ unit 686m 37s root in the patch passed.
-1 ❌ asflicense 2m 13s The patch generated 1 ASF License warnings.
1055m 24s
Reason Tests
Failed junit tests hadoop.hdfs.TestSafeModeWithStripedFileWithRandomECPolicy
hadoop.hdfs.server.namenode.TestCacheDirectives
hadoop.hdfs.server.namenode.TestAddOverReplicatedStripedBlocks
hadoop.hdfs.server.namenode.TestRedudantBlocks
hadoop.mapred.gridmix.TestGridmixSubmission
hadoop.yarn.applications.distributedshell.TestDistributedShell
hadoop.yarn.server.timelineservice.storage.TestTimelineWriterHBaseDown
hadoop.mapred.TestSpecialCharactersInOutputPath
Subsystem Report/Notes
Docker Client=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/8/artifact/out/Dockerfile
GITHUB PR #1635
Optional Tests dupname asflicense shellcheck shelldocs compile javac javadoc mvninstall mvnsite unit shadedclient xml findbugs checkstyle
uname Linux eb8d4f971187 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 1c51f36
Default Java 1.8.0_232
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/8/artifact/out/branch-findbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-timelineservice-hbase-tests-warnings.html
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/8/artifact/out/branch-findbugs-root-warnings.html
javadoc https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/8/artifact/out/diff-javadoc-javadoc-root.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/8/artifact/out/patch-unit-root.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/8/testReport/
asflicense https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/8/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 3198 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-common hadoop-common-project/hadoop-kms hadoop-common-project/hadoop-registry hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs hadoop-hdfs-project/hadoop-hdfs-httpfs hadoop-hdfs-project/hadoop-hdfs-rbf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase-tests hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core hadoop-tools/hadoop-distcp hadoop-tools/hadoop-fs2img . U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/8/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@vinayakumarb vinayakumarb force-pushed the HADOOP-13363/HADOOP-16596 branch 2 times, most recently from a293e23 to aa789f6 Compare January 16, 2020 18:32
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 25m 38s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 15s No case conflicting files found.
+0 🆗 shelldocs 0m 15s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 31 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 1m 14s Maven dependency ordering for branch
+1 💚 mvninstall 18m 27s trunk passed
+1 💚 compile 16m 40s trunk passed
+1 💚 checkstyle 4m 45s trunk passed
+1 💚 mvnsite 16m 7s trunk passed
+1 💚 shadedclient 12m 58s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 7m 6s trunk passed
+0 🆗 spotbugs 27m 35s Used deprecated FindBugs config; considering switching to SpotBugs.
+0 🆗 findbugs 0m 21s branch/hadoop-project no findbugs output file (findbugsXml.xml)
+0 🆗 findbugs 0m 30s branch/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests no findbugs output file (findbugsXml.xml)
-1 ❌ findbugs 27m 30s root in trunk has 9 extant findbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 37s Maven dependency ordering for patch
-1 ❌ mvninstall 0m 42s hadoop-yarn-api in the patch failed.
-1 ❌ mvninstall 0m 30s hadoop-yarn-common in the patch failed.
-1 ❌ mvninstall 0m 26s hadoop-yarn-server-common in the patch failed.
-1 ❌ mvninstall 0m 27s hadoop-yarn-server-nodemanager in the patch failed.
-1 ❌ mvninstall 0m 22s hadoop-yarn-server-applicationhistoryservice in the patch failed.
-1 ❌ mvninstall 0m 29s hadoop-yarn-server-resourcemanager in the patch failed.
-1 ❌ mvninstall 0m 22s hadoop-yarn-server-tests in the patch failed.
-1 ❌ mvninstall 0m 29s hadoop-yarn-client in the patch failed.
-1 ❌ mvninstall 0m 25s hadoop-mapreduce-client-common in the patch failed.
-1 ❌ mvninstall 0m 21s hadoop-mapreduce-client-shuffle in the patch failed.
-1 ❌ mvninstall 0m 23s hadoop-mapreduce-client-hs in the patch failed.
-1 ❌ mvninstall 0m 25s hadoop-yarn-services-core in the patch failed.
-1 ❌ mvninstall 4m 4s root in the patch failed.
+1 💚 compile 16m 21s the patch passed
+1 💚 javac 16m 21s the patch passed
+1 💚 checkstyle 4m 49s root: The patch generated 0 new + 3348 unchanged - 1 fixed = 3348 total (was 3349)
+1 💚 mvnsite 17m 39s the patch passed
+1 💚 shellcheck 0m 1s There were no new shellcheck issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 xml 0m 30s The patch has no ill-formed XML file.
-1 ❌ shadedclient 5m 11s patch has errors when building and testing our client artifacts.
-1 ❌ javadoc 5m 39s root generated 767 new + 4206 unchanged - 0 fixed = 4973 total (was 4206)
+0 🆗 findbugs 0m 21s hadoop-project has no data from findbugs
-1 ❌ findbugs 0m 36s hadoop-yarn-common in the patch failed.
-1 ❌ findbugs 0m 32s hadoop-yarn-server-common in the patch failed.
-1 ❌ findbugs 0m 33s hadoop-yarn-server-nodemanager in the patch failed.
-1 ❌ findbugs 0m 28s hadoop-yarn-server-applicationhistoryservice in the patch failed.
-1 ❌ findbugs 0m 34s hadoop-yarn-server-resourcemanager in the patch failed.
-1 ❌ findbugs 0m 27s hadoop-yarn-server-tests in the patch failed.
-1 ❌ findbugs 0m 34s hadoop-yarn-client in the patch failed.
-1 ❌ findbugs 0m 31s hadoop-mapreduce-client-common in the patch failed.
-1 ❌ findbugs 0m 28s hadoop-mapreduce-client-shuffle in the patch failed.
-1 ❌ findbugs 0m 28s hadoop-mapreduce-client-hs in the patch failed.
-1 ❌ findbugs 0m 31s hadoop-yarn-services-core in the patch failed.
_ Other Tests _
-1 ❌ unit 563m 57s root in the patch passed.
-1 ❌ asflicense 1m 44s The patch generated 1 ASF License warnings.
845m 49s
Reason Tests
Failed junit tests hadoop.yarn.applications.distributedshell.TestDistributedShell
hadoop.yarn.sls.TestSLSRunner
hadoop.hdfs.server.namenode.TestRedudantBlocks
hadoop.hdfs.TestDeadNodeDetection
hadoop.mapreduce.v2.TestSpeculativeExecutionWithMRApp
Subsystem Report/Notes
Docker Client=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/Dockerfile
GITHUB PR #1635
Optional Tests dupname asflicense shellcheck shelldocs compile javac javadoc mvninstall mvnsite unit shadedclient xml findbugs checkstyle
uname Linux d1249e8dc8c3 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / b8518e6
Default Java 1.8.0_232
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/branch-findbugs-root-warnings.html
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-api.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-common.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-common.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-nodemanager.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-applicationhistoryservice.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-tests.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-client.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-common.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-shuffle.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-hs.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-applications_hadoop-yarn-services_hadoop-yarn-services-core.txt
mvninstall https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-mvninstall-root.txt
javadoc https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/diff-javadoc-javadoc-root.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-findbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-common.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-findbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-common.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-findbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-nodemanager.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-findbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-applicationhistoryservice.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-findbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-findbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-tests.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-findbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-client.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-findbugs-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-common.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-findbugs-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-shuffle.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-findbugs-hadoop-mapreduce-project_hadoop-mapreduce-client_hadoop-mapreduce-client-hs.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-findbugs-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-applications_hadoop-yarn-services_hadoop-yarn-services-core.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-unit-root.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/testReport/
asflicense https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 4761 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-common hadoop-common-project/hadoop-kms hadoop-common-project/hadoop-registry hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs hadoop-hdfs-project/hadoop-hdfs-httpfs hadoop-hdfs-project/hadoop-hdfs-rbf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core hadoop-tools/hadoop-distcp hadoop-tools/hadoop-fs2img . U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/9/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 35s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 15s No case conflicting files found.
+0 🆗 shelldocs 0m 15s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 31 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 1m 12s Maven dependency ordering for branch
+1 💚 mvninstall 18m 27s trunk passed
+1 💚 compile 16m 53s trunk passed
+1 💚 checkstyle 4m 54s trunk passed
+1 💚 mvnsite 16m 18s trunk passed
+1 💚 shadedclient 12m 49s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 7m 9s trunk passed
+0 🆗 spotbugs 27m 37s Used deprecated FindBugs config; considering switching to SpotBugs.
+0 🆗 findbugs 0m 23s branch/hadoop-project no findbugs output file (findbugsXml.xml)
+0 🆗 findbugs 0m 30s branch/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests no findbugs output file (findbugsXml.xml)
-1 ❌ findbugs 27m 31s root in trunk has 9 extant findbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 34s Maven dependency ordering for patch
+1 💚 mvninstall 32m 55s the patch passed
+1 💚 compile 16m 42s the patch passed
+1 💚 javac 16m 42s the patch passed
+1 💚 checkstyle 5m 1s root: The patch generated 0 new + 3513 unchanged - 1 fixed = 3513 total (was 3514)
+1 💚 mvnsite 17m 59s the patch passed
+1 💚 shellcheck 0m 0s There were no new shellcheck issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 xml 0m 29s The patch has no ill-formed XML file.
+1 💚 shadedclient 14m 39s patch has no errors when building and testing our client artifacts.
-1 ❌ javadoc 5m 45s root generated 959 new + 4206 unchanged - 0 fixed = 5165 total (was 4206)
+0 🆗 findbugs 0m 22s hadoop-project has no data from findbugs
+0 🆗 findbugs 0m 30s hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests has no data from findbugs
_ Other Tests _
-1 ❌ unit 568m 5s root in the patch passed.
-1 ❌ asflicense 1m 46s The patch generated 1 ASF License warnings.
861m 30s
Reason Tests
Failed junit tests hadoop.yarn.applications.distributedshell.TestDistributedShell
hadoop.hdfs.server.namenode.TestRedudantBlocks
hadoop.hdfs.server.balancer.TestBalancer
hadoop.mapreduce.v2.TestSpeculativeExecutionWithMRApp
Subsystem Report/Notes
Docker Client=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/11/artifact/out/Dockerfile
GITHUB PR #1635
Optional Tests dupname asflicense shellcheck shelldocs compile javac javadoc mvninstall mvnsite unit shadedclient xml findbugs checkstyle
uname Linux 02da15beb44d 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 263413e
Default Java 1.8.0_232
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/11/artifact/out/branch-findbugs-root-warnings.html
javadoc https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/11/artifact/out/diff-javadoc-javadoc-root.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/11/artifact/out/patch-unit-root.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/11/testReport/
asflicense https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/11/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 4532 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-common hadoop-common-project/hadoop-kms hadoop-common-project/hadoop-registry hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs hadoop-hdfs-project/hadoop-hdfs-httpfs hadoop-hdfs-project/hadoop-hdfs-rbf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core hadoop-tools/hadoop-distcp hadoop-tools/hadoop-fs2img . U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/11/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@steveloughran steveloughran left a comment

Choose a reason for hiding this comment

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

Big diff -but needs to go in everywhere.

  1. Its unfortunate it mixes org.apache import with others, but we had the same problem with the SLF4J update -we just have to accept it.
  2. should we have the protobuf version in the imports? A new upgrade will force a complete roll. What about "protobuf_current"?

maven

  • switch to a property to drive testIgnore

The new exclusion from hadoop-common complicates life.

Modules should just be able to explicitly pull in hadoop-common and pick up the shaded protobuf JAR; no need to exclude the dependency there & then explicitly declare it later.

@vinayakumarb
Copy link
Contributor Author

Big diff -but needs to go in everywhere.

  1. Its unfortunate it mixes org.apache import with others, but we had the same problem with the SLF4J update -we just have to accept it.
  2. should we have the protobuf version in the imports? A new upgrade will force a complete roll. What about "protobuf_current"?

Yes, its a very good point, Thanks.
I added based on the discussion thread input, but didn't think about upgrade. Having version in package name will create more problems than ease of use during upgrade.
Whatever package name we use here, same package name should be used inside shaded protobuf artifact. So in that case all versions of shaded artifact need to have "protobuf_current" itself.
Instead

  1. how about just changing to "protobuf3" to support protobuf 3.x release line, and have "protobuf4" for 4.x in future? This can support co-existence of both protobuf 3.x and protobuf 4.x shaded libs if any module requires during transition.
    or
  2. Just "protobuf" to have minimal change in upgrade to any version (excluding the compilation incompatibilities if any introduced) No co-existence can be supported for future versions.

Anyway to change this, first need to change in hadoop-thirdparty module.

@vinayakumarb
Copy link
Contributor Author

Updated with review comments fix.
@steveloughran please review.

@aajisaka
Copy link
Member

LGTM, +1 pending Steve's approval.

I'm +1 for the option 2. Now I don't think both protobuf 3.x and protobuf 4.x shaded libs co-exist. We can upgrade the libs in all the modules at once.

Copy link
Member

@ayushtkn ayushtkn left a comment

Choose a reason for hiding this comment

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

Thanx @vinayakumarb for the work here, Overall LGTM.
Optional Stuff : We can add in the POM test-sources also for the modules which doesn't use as of now like hdfs-client, would prevent extra effort of others understanding this change and doing similarlly in future if they tend to use in future.

Conflicts need to be resolved, Post Getting Build results, Do revert back the changes done just for build.

+1

…irdparty dependency

   1. Ignoring test failures to continue to next module
   2. Restoring protobuf.version property to 2.5.0 for backward compatibility, using hadoop.protobuf.version instead in pom xmls.
   3. Fixed hbase timeline server tests by restoring 2.5.0 protobuf in classpath
…irdparty dependency

increasing precommit run time
…irdparty dependency.

 Resolved conflicts
 Added replace-test-sources
@vinayakumarb
Copy link
Contributor Author

Thanks @aajisaka and @ayushtkn for reviews.
I have rebased and updated.
@steveloughran please take a look at the final update (before removing the Jenkinsfile change and squash).

Thanks

Jenkinsfile Outdated
@@ -23,7 +23,8 @@ pipeline {

options {
buildDiscarder(logRotator(numToKeepStr: '5'))
timeout (time: 5, unit: 'HOURS')
//Increasing to 20 hours temporarily to allow precommit to run for all modules.
timeout (time: 20, unit: 'HOURS')
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we change this timeout to a lower value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. as said in earlier comments this is only temporary since this PR have changes in all modules and need lot of time.
will be restored back to 5 hours before final merge.

Copy link
Contributor

Choose a reason for hiding this comment

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

sounds good to me :)

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 5m 47s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 13s No case conflicting files found.
+0 🆗 shelldocs 0m 13s Shelldocs was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 31 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 1m 40s Maven dependency ordering for branch
+1 💚 mvninstall 23m 20s trunk passed
+1 💚 compile 20m 28s trunk passed
+1 💚 checkstyle 5m 1s trunk passed
+1 💚 mvnsite 19m 26s trunk passed
+1 💚 shadedclient 14m 54s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 7m 49s trunk passed
+0 🆗 spotbugs 27m 13s Used deprecated FindBugs config; considering switching to SpotBugs.
+0 🆗 findbugs 0m 20s branch/hadoop-project no findbugs output file (findbugsXml.xml)
+0 🆗 findbugs 0m 30s branch/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests no findbugs output file (findbugsXml.xml)
-1 ❌ findbugs 27m 7s root in trunk has 9 extant findbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 36s Maven dependency ordering for patch
+1 💚 mvninstall 32m 28s the patch passed
+1 💚 compile 16m 30s the patch passed
+1 💚 javac 16m 30s the patch passed
+1 💚 checkstyle 4m 59s root: The patch generated 0 new + 3520 unchanged - 1 fixed = 3520 total (was 3521)
+1 💚 mvnsite 17m 50s the patch passed
+1 💚 shellcheck 0m 0s There were no new shellcheck issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 xml 0m 29s The patch has no ill-formed XML file.
+1 💚 shadedclient 14m 36s patch has no errors when building and testing our client artifacts.
-1 ❌ javadoc 5m 44s root generated 959 new + 4206 unchanged - 0 fixed = 5165 total (was 4206)
+0 🆗 findbugs 0m 22s hadoop-project has no data from findbugs
+0 🆗 findbugs 0m 31s hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests has no data from findbugs
_ Other Tests _
-1 ❌ unit 628m 43s root in the patch passed.
-1 ❌ asflicense 1m 48s The patch generated 1 ASF License warnings.
940m 42s
Reason Tests
Failed junit tests hadoop.hdfs.server.federation.router.TestRouterFaultTolerant
hadoop.hdfs.server.balancer.TestBalancerRPCDelay
hadoop.hdfs.server.namenode.ha.TestDelegationTokensWithHA
hadoop.hdfs.TestDeadNodeDetection
hadoop.hdfs.server.datanode.TestBlockRecovery
hadoop.yarn.server.resourcemanager.security.TestDelegationTokenRenewer
hadoop.yarn.server.resourcemanager.TestRMEmbeddedElector
hadoop.yarn.server.timelineservice.storage.TestTimelineWriterHBaseDown
hadoop.yarn.applications.distributedshell.TestDistributedShell
Subsystem Report/Notes
Docker Client=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/14/artifact/out/Dockerfile
GITHUB PR #1635
Optional Tests dupname asflicense shellcheck shelldocs compile javac javadoc mvninstall mvnsite unit shadedclient xml findbugs checkstyle
uname Linux 24e165fc9fa1 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 825db8f
Default Java 1.8.0_232
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/14/artifact/out/branch-findbugs-root-warnings.html
javadoc https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/14/artifact/out/diff-javadoc-javadoc-root.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/14/artifact/out/patch-unit-root.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/14/testReport/
asflicense https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/14/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 3810 (vs. ulimit of 5500)
modules C: hadoop-project hadoop-common-project/hadoop-common hadoop-common-project/hadoop-kms hadoop-common-project/hadoop-registry hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs hadoop-hdfs-project/hadoop-hdfs-httpfs hadoop-hdfs-project/hadoop-hdfs-rbf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core hadoop-tools/hadoop-distcp hadoop-tools/hadoop-fs2img . U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1635/14/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@vinayakumarb
Copy link
Contributor Author

Hi @steveloughran, Please check the latest update and let us know are you fine with latest update? fixed all your comments.
Thanks.

@apache apache deleted a comment from hadoop-yetus Feb 6, 2020
@apache apache deleted a comment from hadoop-yetus Feb 6, 2020
@apache apache deleted a comment from hadoop-yetus Feb 6, 2020
@apache apache deleted a comment from hadoop-yetus Feb 6, 2020
@apache apache deleted a comment from hadoop-yetus Feb 6, 2020
@apache apache deleted a comment from hadoop-yetus Feb 6, 2020
@steveloughran
Copy link
Contributor

+1 from me

@vinayakumarb
Copy link
Contributor Author

Thanks @steveloughran and @aajisaka for reviews.
Waiting for @oza for review as he has asked to hold.

@oza
Copy link
Contributor

oza commented Feb 7, 2020

Thank you for waiting. Tests passed on my local.

+1

(I commented on https://issues.apache.org/jira/browse/HADOOP-16596 today.)

@vinayakumarb
Copy link
Contributor Author

Thanks @oza for confirmation.
Also thanks @ayushtkn for reviews.

@vinayakumarb vinayakumarb merged commit 7dac7e1 into apache:trunk Feb 7, 2020
@vinayakumarb
Copy link
Contributor Author

Merged to trunk, Thanks Everyone for reviews.

RogPodge pushed a commit to RogPodge/hadoop that referenced this pull request Mar 25, 2020
…irdparty dependency (apache#1635). Contributed by Vinayakumar B.
Sign up for free to 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.

7 participants