Skip to content

Conversation

@HorizonNet
Copy link
Contributor

Backport of #968 to branch-1.

@Apache-HBase

This comment has been minimized.

Copy link
Contributor

@busbey busbey left a comment

Choose a reason for hiding this comment

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

If we want to do the binary incompatible changes we need a draft release note for how we'll call them out. otherwise please update to remove binary incompatible changes.

try {
m = fs.getClass().getDeclaredMethod("setStoragePolicy",
new Class<?>[] { Path.class, String.class });
m = fs.getClass().getDeclaredMethod("setStoragePolicy", Path.class, String.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

branch-1's minimum hadoop version is 2.8.5, so for that branch we can remove this reflection as well. Note to potential further backporters: the method is not in Hadoop 2.7, we'll need this reflection in branch-1.4 and branch-1.3.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed the reflection part. Will create additional backports for branch-1.4 and branch-1.3.

"more information see the 'ArchivalStorage' docs for your Hadoop release.");
}
// check for lack of HDFS-7228
if (e instanceof InvocationTargetException) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that we're not using reflection, this should be a direct check for RemoteException because it won't be wrapped in the reflection invocation exception.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the changes to unwrap the InvocationTargetException check.

@Apache-HBase

This comment has been minimized.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 18s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-0 ⚠️ test4tests 0m 0s The 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.
_ branch-1 Compile Tests _
+0 🆗 mvndep 1m 22s Maven dependency ordering for branch
+1 💚 mvninstall 7m 53s branch-1 passed
+1 💚 compile 0m 27s branch-1 passed with JDK v1.8.0_232
+1 💚 compile 0m 35s branch-1 passed with JDK v1.7.0_242
+1 💚 checkstyle 5m 27s branch-1 passed
+1 💚 shadedjars 2m 49s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 32s branch-1 passed with JDK v1.8.0_232
+1 💚 javadoc 0m 35s branch-1 passed with JDK v1.7.0_242
+0 🆗 spotbugs 1m 1s Used deprecated FindBugs config; considering switching to SpotBugs.
+0 🆗 findbugs 0m 23s branch/hbase-checkstyle no findbugs output file (findbugsXml.xml)
_ Patch Compile Tests _
+0 🆗 mvndep 0m 15s Maven dependency ordering for patch
+1 💚 mvninstall 2m 3s the patch passed
+1 💚 compile 0m 28s the patch passed with JDK v1.8.0_232
+1 💚 javac 0m 28s the patch passed
+1 💚 compile 0m 36s the patch passed with JDK v1.7.0_242
+1 💚 javac 0m 36s the patch passed
+1 💚 checkstyle 4m 56s root: The patch generated 0 new + 25 unchanged - 16 fixed = 25 total (was 41)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
-1 ❌ xml 0m 0s The patch has 1 ill-formed XML file(s).
+1 💚 shadedjars 2m 43s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 4m 54s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚 javadoc 0m 28s the patch passed with JDK v1.8.0_232
+1 💚 javadoc 0m 35s the patch passed with JDK v1.7.0_242
+0 🆗 findbugs 0m 13s hbase-checkstyle has no data from findbugs
_ Other Tests _
+1 💚 unit 0m 13s hbase-checkstyle in the patch passed.
+1 💚 unit 2m 35s hbase-common in the patch passed.
+1 💚 asflicense 0m 23s The patch does not generate ASF License warnings.
47m 32s
Reason Tests
XML Parsing Error(s):
hbase-checkstyle/src/main/resources/hbase/checkstyle-suppressions.xml
Subsystem Report/Notes
Docker Client=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1034/3/artifact/out/Dockerfile
GITHUB PR #1034
Optional Tests dupname asflicense checkstyle javac javadoc unit xml spotbugs findbugs shadedjars hadoopcheck hbaseanti compile
uname Linux 74e10a56bffe 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/Base-PreCommit-GitHub-PR_PR-1034/out/precommit/personality/provided.sh
git revision branch-1 / b5d0da7
Default Java 1.7.0_242
Multi-JDK versions /usr/lib/jvm/zulu-8-amd64:1.8.0_232 /usr/lib/jvm/zulu-7-amd64:1.7.0_242
xml https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1034/3/artifact/out/xml.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1034/3/testReport/
Max. process+thread count 181 (vs. ulimit of 10000)
modules C: hbase-checkstyle hbase-common U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1034/3/console
versions git=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

m.invoke(fs, path, storagePolicy);

// check for lack of HDFS-7228
final Throwable exception = e.getCause();
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is correct. wouldn't e be the RemoteException?

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, you're right. I removed the part of getting the cause.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 30s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-0 ⚠️ test4tests 0m 0s The 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.
_ branch-1 Compile Tests _
+0 🆗 mvndep 1m 21s Maven dependency ordering for branch
+1 💚 mvninstall 7m 29s branch-1 passed
+1 💚 compile 0m 30s branch-1 passed with JDK v1.8.0_232
+1 💚 compile 0m 35s branch-1 passed with JDK v1.7.0_242
+1 💚 checkstyle 6m 8s branch-1 passed
+1 💚 shadedjars 3m 11s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 29s branch-1 passed with JDK v1.8.0_232
+1 💚 javadoc 0m 35s branch-1 passed with JDK v1.7.0_242
+0 🆗 spotbugs 1m 8s Used deprecated FindBugs config; considering switching to SpotBugs.
+0 🆗 findbugs 0m 24s branch/hbase-checkstyle no findbugs output file (findbugsXml.xml)
_ Patch Compile Tests _
+0 🆗 mvndep 0m 16s Maven dependency ordering for patch
+1 💚 mvninstall 2m 8s the patch passed
+1 💚 compile 0m 27s the patch passed with JDK v1.8.0_232
+1 💚 javac 0m 27s the patch passed
+1 💚 compile 0m 33s the patch passed with JDK v1.7.0_242
+1 💚 javac 0m 33s the patch passed
+1 💚 checkstyle 5m 55s root: The patch generated 0 new + 25 unchanged - 16 fixed = 25 total (was 41)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
-1 ❌ xml 0m 0s The patch has 1 ill-formed XML file(s).
+1 💚 shadedjars 3m 11s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 5m 16s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚 javadoc 0m 25s the patch passed with JDK v1.8.0_232
+1 💚 javadoc 0m 32s the patch passed with JDK v1.7.0_242
+0 🆗 findbugs 0m 13s hbase-checkstyle has no data from findbugs
_ Other Tests _
+1 💚 unit 0m 11s hbase-checkstyle in the patch passed.
+1 💚 unit 2m 36s hbase-common in the patch passed.
+1 💚 asflicense 0m 21s The patch does not generate ASF License warnings.
50m 23s
Reason Tests
XML Parsing Error(s):
hbase-checkstyle/src/main/resources/hbase/checkstyle-suppressions.xml
Subsystem Report/Notes
Docker Client=19.03.5 Server=19.03.5 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1034/4/artifact/out/Dockerfile
GITHUB PR #1034
Optional Tests dupname asflicense checkstyle javac javadoc unit xml spotbugs findbugs shadedjars hadoopcheck hbaseanti compile
uname Linux 6820c854d6f2 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 /home/jenkins/jenkins-slave/workspace/Base-PreCommit-GitHub-PR_PR-1034/out/precommit/personality/provided.sh
git revision branch-1 / b5d0da7
Default Java 1.7.0_242
Multi-JDK versions /usr/lib/jvm/zulu-8-amd64:1.8.0_232 /usr/lib/jvm/zulu-7-amd64:1.7.0_242
xml https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1034/4/artifact/out/xml.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1034/4/testReport/
Max. process+thread count 171 (vs. ulimit of 10000)
modules C: hbase-checkstyle hbase-common U: .
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1034/4/console
versions git=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@HorizonNet
Copy link
Contributor Author

Problem in the build seems to be related to HBASE-22732.

@HorizonNet HorizonNet merged commit 99a59cf into apache:branch-1 Jan 19, 2020
@HorizonNet HorizonNet deleted the HBASE-23622_branch-1 branch January 19, 2020 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants