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

HBASE-22890 Verify the files when RegionServer is starting and BucketCache is in file mode #528

Merged
merged 5 commits into from
Sep 16, 2019

Conversation

ZhaoBQ
Copy link
Contributor

@ZhaoBQ ZhaoBQ commented Aug 23, 2019

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 54 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 520 branch-1 passed
+1 compile 47 branch-1 passed with JDK v1.8.0_222
+1 compile 45 branch-1 passed with JDK v1.7.0_232
+1 checkstyle 95 branch-1 passed
+1 shadedjars 185 branch has no errors when building our shaded downstream artifacts.
+1 javadoc 40 branch-1 passed with JDK v1.8.0_222
+1 javadoc 43 branch-1 passed with JDK v1.7.0_232
0 spotbugs 181 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 177 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 135 the patch passed
+1 compile 42 the patch passed with JDK v1.8.0_222
+1 javac 42 the patch passed
+1 compile 47 the patch passed with JDK v1.7.0_232
+1 javac 47 the patch passed
-1 checkstyle 101 hbase-server: The patch generated 125 new + 45 unchanged - 0 fixed = 170 total (was 45)
+1 whitespace 0 The patch has no whitespace issues.
-1 shadedjars 134 patch has 10 errors when building our shaded downstream artifacts.
+1 hadoopcheck 333 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 32 the patch passed with JDK v1.8.0_222
+1 javadoc 42 the patch passed with JDK v1.7.0_232
+1 findbugs 182 the patch passed
_ Other Tests _
+1 unit 6988 hbase-server in the patch passed.
-1 asflicense 25 The patch generated 1 ASF License warnings.
9516
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/1/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 902fe2e10f3a 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / bb87e3a
Default Java 1.7.0_232
Multi-JDK versions /usr/lib/jvm/java-8-openjdk-amd64:1.8.0_222 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_232
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/1/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/1/artifact/out/patch-shadedjars.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/1/testReport/
asflicense https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/1/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 4529 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/1/console
versions git=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 44 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 500 branch-1 passed
+1 compile 39 branch-1 passed with JDK v1.8.0_222
+1 compile 43 branch-1 passed with JDK v1.7.0_232
+1 checkstyle 89 branch-1 passed
+1 shadedjars 174 branch has no errors when building our shaded downstream artifacts.
+1 javadoc 37 branch-1 passed with JDK v1.8.0_222
+1 javadoc 40 branch-1 passed with JDK v1.7.0_232
0 spotbugs 177 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 174 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 132 the patch passed
+1 compile 46 the patch passed with JDK v1.8.0_222
+1 javac 46 the patch passed
+1 compile 43 the patch passed with JDK v1.7.0_232
+1 javac 43 the patch passed
-1 checkstyle 87 hbase-server: The patch generated 18 new + 45 unchanged - 0 fixed = 63 total (was 45)
+1 whitespace 0 The patch has no whitespace issues.
-1 shadedjars 121 patch has 10 errors when building our shaded downstream artifacts.
+1 hadoopcheck 309 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 28 the patch passed with JDK v1.8.0_222
+1 javadoc 41 the patch passed with JDK v1.7.0_232
+1 findbugs 177 the patch passed
_ Other Tests _
-1 unit 1864 hbase-server in the patch failed.
-1 asflicense 19 The patch generated 1 ASF License warnings.
4241
Reason Tests
Failed junit tests hadoop.hbase.http.log.TestLogLevel
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/2/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux dd7edcac59a9 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528@2/out/precommit/personality/provided.sh
git revision branch-1 / bb87e3a
Default Java 1.7.0_232
Multi-JDK versions /usr/lib/jvm/java-8-openjdk-amd64:1.8.0_222 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_232
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/2/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/2/artifact/out/patch-shadedjars.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/2/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/2/testReport/
asflicense https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/2/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 728 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/2/console
versions git=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@ZhaoBQ ZhaoBQ changed the title HBASE 22890 Verify the files when RegionServer is starting and BucketCache is in file mode HBASE-22890 Verify the files when RegionServer is starting and BucketCache is in file mode Aug 23, 2019
@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 56 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 510 branch-1 passed
+1 compile 38 branch-1 passed with JDK v1.8.0_222
+1 compile 42 branch-1 passed with JDK v1.7.0_232
+1 checkstyle 91 branch-1 passed
+1 shadedjars 174 branch has no errors when building our shaded downstream artifacts.
+1 javadoc 36 branch-1 passed with JDK v1.8.0_222
+1 javadoc 39 branch-1 passed with JDK v1.7.0_232
0 spotbugs 169 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 166 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 119 the patch passed
+1 compile 38 the patch passed with JDK v1.8.0_222
+1 javac 38 the patch passed
+1 compile 43 the patch passed with JDK v1.7.0_232
+1 javac 43 the patch passed
-1 checkstyle 88 hbase-server: The patch generated 13 new + 45 unchanged - 0 fixed = 58 total (was 45)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 167 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 298 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 28 the patch passed with JDK v1.8.0_222
+1 javadoc 39 the patch passed with JDK v1.7.0_232
+1 findbugs 165 the patch passed
_ Other Tests _
+1 unit 6816 hbase-server in the patch passed.
+1 asflicense 25 The patch does not generate ASF License warnings.
9209
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/3/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux f07360850fc5 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / bb87e3a
Default Java 1.7.0_232
Multi-JDK versions /usr/lib/jvm/java-8-openjdk-amd64:1.8.0_222 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_232
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/3/artifact/out/diff-checkstyle-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/3/testReport/
Max. process+thread count 4644 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/3/console
versions git=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 78 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 539 branch-1 passed
+1 compile 49 branch-1 passed with JDK v1.8.0_222
+1 compile 50 branch-1 passed with JDK v1.7.0_232
+1 checkstyle 107 branch-1 passed
+1 shadedjars 206 branch has no errors when building our shaded downstream artifacts.
+1 javadoc 51 branch-1 passed with JDK v1.8.0_222
+1 javadoc 48 branch-1 passed with JDK v1.7.0_232
0 spotbugs 207 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 204 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 149 the patch passed
+1 compile 47 the patch passed with JDK v1.8.0_222
+1 javac 47 the patch passed
+1 compile 49 the patch passed with JDK v1.7.0_232
+1 javac 49 the patch passed
-1 checkstyle 94 hbase-server: The patch generated 9 new + 45 unchanged - 0 fixed = 54 total (was 45)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 202 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 365 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 40 the patch passed with JDK v1.8.0_222
+1 javadoc 50 the patch passed with JDK v1.7.0_232
+1 findbugs 194 the patch passed
_ Other Tests _
-1 unit 10763 hbase-server in the patch failed.
+1 asflicense 26 The patch does not generate ASF License warnings.
13564
Reason Tests
Failed junit tests hadoop.hbase.regionserver.TestRegionServerHostname
hadoop.hbase.client.replication.TestReplicationAdminWithClusters
hadoop.hbase.master.cleaner.TestHFileCleaner
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/4/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 546b410190ec 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / bb87e3a
Default Java 1.7.0_232
Multi-JDK versions /usr/lib/jvm/java-8-openjdk-amd64:1.8.0_222 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_232
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/4/artifact/out/diff-checkstyle-hbase-server.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/4/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/4/testReport/
Max. process+thread count 4195 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/4/console
versions git=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 42 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 488 branch-1 passed
+1 compile 46 branch-1 passed
+1 checkstyle 106 branch-1 passed
-1 shadedjars 14 branch has 10 errors when building our shaded downstream artifacts.
+1 javadoc 40 branch-1 passed
0 spotbugs 158 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 154 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 122 the patch passed
+1 compile 44 the patch passed
+1 javac 44 the patch passed
-1 checkstyle 110 hbase-server: The patch generated 9 new + 45 unchanged - 0 fixed = 54 total (was 45)
+1 whitespace 0 The patch has no whitespace issues.
-1 shadedjars 14 patch has 10 errors when building our shaded downstream artifacts.
+1 hadoopcheck 304 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 38 the patch passed
+1 findbugs 156 the patch passed
_ Other Tests _
-1 unit 7338 hbase-server in the patch failed.
+1 asflicense 29 The patch does not generate ASF License warnings.
9242
Reason Tests
Failed junit tests hadoop.hbase.master.TestMasterMetrics
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/5/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 4472991ec97d 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 3b07221
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/5/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/5/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/5/artifact/out/patch-shadedjars.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/5/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/5/testReport/
Max. process+thread count 4098 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/5/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 46 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 505 branch-1 passed
+1 compile 37 branch-1 passed with JDK v1.8.0_222
+1 compile 41 branch-1 passed with JDK v1.7.0_232
+1 checkstyle 89 branch-1 passed
+1 shadedjars 169 branch has no errors when building our shaded downstream artifacts.
+1 javadoc 38 branch-1 passed with JDK v1.8.0_222
+1 javadoc 39 branch-1 passed with JDK v1.7.0_232
0 spotbugs 169 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 166 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 118 the patch passed
+1 compile 36 the patch passed with JDK v1.8.0_222
+1 javac 36 the patch passed
+1 compile 41 the patch passed with JDK v1.7.0_232
+1 javac 41 the patch passed
-1 checkstyle 83 hbase-server: The patch generated 9 new + 45 unchanged - 0 fixed = 54 total (was 45)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 167 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 293 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 28 the patch passed with JDK v1.8.0_222
+1 javadoc 38 the patch passed with JDK v1.7.0_232
+1 findbugs 167 the patch passed
_ Other Tests _
+1 unit 7217 hbase-server in the patch passed.
+1 asflicense 38 The patch does not generate ASF License warnings.
9567
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/6/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux c72fa3650019 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / eba383d
Default Java 1.7.0_232
Multi-JDK versions /usr/lib/jvm/java-8-openjdk-amd64:1.8.0_222 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_232
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/6/artifact/out/diff-checkstyle-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/6/testReport/
Max. process+thread count 4531 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/6/console
versions git=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 53 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 507 branch-1 passed
+1 compile 40 branch-1 passed with JDK v1.8.0_222
+1 compile 44 branch-1 passed with JDK v1.7.0_232
+1 checkstyle 90 branch-1 passed
+1 shadedjars 181 branch has no errors when building our shaded downstream artifacts.
+1 javadoc 36 branch-1 passed with JDK v1.8.0_222
+1 javadoc 40 branch-1 passed with JDK v1.7.0_232
0 spotbugs 178 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 175 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 124 the patch passed
+1 compile 41 the patch passed with JDK v1.8.0_222
+1 javac 41 the patch passed
+1 compile 45 the patch passed with JDK v1.7.0_232
+1 javac 45 the patch passed
-1 checkstyle 87 hbase-server: The patch generated 9 new + 45 unchanged - 0 fixed = 54 total (was 45)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 173 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 305 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 30 the patch passed with JDK v1.8.0_222
+1 javadoc 40 the patch passed with JDK v1.7.0_232
+1 findbugs 179 the patch passed
_ Other Tests _
+1 unit 6977 hbase-server in the patch passed.
+1 asflicense 31 The patch does not generate ASF License warnings.
9421
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/8/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 690458557f14 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 8961315
Default Java 1.7.0_232
Multi-JDK versions /usr/lib/jvm/java-8-openjdk-amd64:1.8.0_222 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_232
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/8/artifact/out/diff-checkstyle-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/8/testReport/
Max. process+thread count 3974 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/8/console
versions git=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 47 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 507 branch-1 passed
+1 compile 43 branch-1 passed with JDK v1.8.0_222
+1 compile 47 branch-1 passed with JDK v1.7.0_232
+1 checkstyle 93 branch-1 passed
+1 shadedjars 181 branch has no errors when building our shaded downstream artifacts.
+1 javadoc 38 branch-1 passed with JDK v1.8.0_222
+1 javadoc 38 branch-1 passed with JDK v1.7.0_232
0 spotbugs 183 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 179 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 127 the patch passed
+1 compile 44 the patch passed with JDK v1.8.0_222
+1 javac 44 the patch passed
+1 compile 45 the patch passed with JDK v1.7.0_232
+1 javac 45 the patch passed
-1 checkstyle 88 hbase-server: The patch generated 9 new + 45 unchanged - 0 fixed = 54 total (was 45)
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedjars 178 patch has no errors when building our shaded downstream artifacts.
+1 hadoopcheck 318 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 33 the patch passed with JDK v1.8.0_222
+1 javadoc 42 the patch passed with JDK v1.7.0_232
+1 findbugs 182 the patch passed
_ Other Tests _
-1 unit 6863 hbase-server in the patch failed.
+1 asflicense 24 The patch does not generate ASF License warnings.
9340
Reason Tests
Failed junit tests hadoop.hbase.master.procedure.TestModifyNamespaceProcedure
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/9/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux d9cb1cf1076a 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 9ae12f5
Default Java 1.7.0_232
Multi-JDK versions /usr/lib/jvm/java-8-openjdk-amd64:1.8.0_222 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_232
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/9/artifact/out/diff-checkstyle-hbase-server.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/9/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/9/testReport/
Max. process+thread count 3938 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/9/console
versions git=1.9.1 maven=3.0.5 findbugs=3.0.1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 48 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 489 branch-1 passed
+1 compile 41 branch-1 passed
+1 checkstyle 108 branch-1 passed
-1 shadedjars 13 branch has 10 errors when building our shaded downstream artifacts.
+1 javadoc 40 branch-1 passed
0 spotbugs 151 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 149 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 122 the patch passed
+1 compile 48 the patch passed
+1 javac 48 the patch passed
-1 checkstyle 113 hbase-server: The patch generated 9 new + 45 unchanged - 0 fixed = 54 total (was 45)
+1 whitespace 0 The patch has no whitespace issues.
-1 shadedjars 11 patch has 10 errors when building our shaded downstream artifacts.
+1 hadoopcheck 298 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 33 the patch passed
+1 findbugs 148 the patch passed
_ Other Tests _
+1 unit 6879 hbase-server in the patch passed.
+1 asflicense 25 The patch does not generate ASF License warnings.
8766
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/10/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux bc06bad82366 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 9ae12f5
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/10/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/10/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/10/artifact/out/patch-shadedjars.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/10/testReport/
Max. process+thread count 4175 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/10/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 1569 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 512 branch-1 passed
+1 compile 48 branch-1 passed
+1 checkstyle 102 branch-1 passed
-1 shadedjars 15 branch has 10 errors when building our shaded downstream artifacts.
+1 javadoc 43 branch-1 passed
0 spotbugs 165 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 161 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 133 the patch passed
+1 compile 50 the patch passed
+1 javac 50 the patch passed
-1 checkstyle 96 hbase-server: The patch generated 7 new + 45 unchanged - 0 fixed = 52 total (was 45)
+1 whitespace 0 The patch has no whitespace issues.
-1 shadedjars 16 patch has 10 errors when building our shaded downstream artifacts.
+1 hadoopcheck 314 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 38 the patch passed
+1 findbugs 153 the patch passed
_ Other Tests _
-1 unit 9075 hbase-server in the patch failed.
+1 asflicense 34 The patch does not generate ASF License warnings.
12572
Reason Tests
Failed junit tests hadoop.hbase.procedure.TestFailedProcCleanup
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/11/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 09da945cfdb5 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 9ae12f5
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/11/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/11/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/11/artifact/out/patch-shadedjars.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/11/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/11/testReport/
Max. process+thread count 4435 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/11/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 39 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 513 branch-1 passed
+1 compile 45 branch-1 passed
+1 checkstyle 105 branch-1 passed
-1 shadedjars 14 branch has 10 errors when building our shaded downstream artifacts.
+1 javadoc 41 branch-1 passed
0 spotbugs 155 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 153 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 118 the patch passed
+1 compile 42 the patch passed
+1 javac 42 the patch passed
-1 checkstyle 103 hbase-server: The patch generated 7 new + 45 unchanged - 0 fixed = 52 total (was 45)
+1 whitespace 0 The patch has no whitespace issues.
-1 shadedjars 11 patch has 10 errors when building our shaded downstream artifacts.
+1 hadoopcheck 292 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 37 the patch passed
+1 findbugs 167 the patch passed
_ Other Tests _
+1 unit 6930 hbase-server in the patch passed.
+1 asflicense 29 The patch does not generate ASF License warnings.
8839
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/12/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux f092c8b308f1 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 /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / f240ca0
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/12/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/12/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/12/artifact/out/patch-shadedjars.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/12/testReport/
Max. process+thread count 3950 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/12/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 84 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 486 branch-1 passed
+1 compile 45 branch-1 passed
+1 checkstyle 105 branch-1 passed
-1 shadedjars 14 branch has 10 errors when building our shaded downstream artifacts.
+1 javadoc 43 branch-1 passed
0 spotbugs 166 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 163 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 130 the patch passed
+1 compile 49 the patch passed
+1 javac 49 the patch passed
-1 checkstyle 111 hbase-server: The patch generated 10 new + 51 unchanged - 0 fixed = 61 total (was 51)
+1 whitespace 0 The patch has no whitespace issues.
-1 shadedjars 12 patch has 10 errors when building our shaded downstream artifacts.
+1 hadoopcheck 302 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 35 the patch passed
-1 findbugs 151 hbase-server generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
_ Other Tests _
-1 unit 1700 hbase-server in the patch failed.
-1 asflicense 18 The patch generated 1 ASF License warnings.
3665
Reason Tests
FindBugs module:hbase-server
Write to static field org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.ALGORITHNAME from instance method new org.apache.hadoop.hbase.io.hfile.bucket.BucketCache(String, long, int, int[], int, int, String, int, Configuration) At BucketCache.java:from instance method new org.apache.hadoop.hbase.io.hfile.bucket.BucketCache(String, long, int, int[], int, int, String, int, Configuration) At BucketCache.java:[line 297]
Failed junit tests hadoop.hbase.io.hfile.bucket.TestVerifyBucketCacheFile
hadoop.hbase.io.hfile.bucket.TestBucketCache
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/14/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 8551c8bf0381 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 3d22604
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/14/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/14/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/14/artifact/out/patch-shadedjars.txt
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/14/artifact/out/new-findbugs-hbase-server.html
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/14/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/14/testReport/
asflicense https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/14/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 735 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/14/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 47 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 490 branch-1 passed
+1 compile 41 branch-1 passed
+1 checkstyle 101 branch-1 passed
-1 shadedjars 13 branch has 10 errors when building our shaded downstream artifacts.
+1 javadoc 40 branch-1 passed
0 spotbugs 148 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 146 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 107 the patch passed
+1 compile 39 the patch passed
+1 javac 39 the patch passed
-1 checkstyle 88 hbase-server: The patch generated 10 new + 51 unchanged - 0 fixed = 61 total (was 51)
+1 whitespace 0 The patch has no whitespace issues.
-1 shadedjars 12 patch has 10 errors when building our shaded downstream artifacts.
+1 hadoopcheck 275 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 30 the patch passed
-1 findbugs 134 hbase-server generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
_ Other Tests _
-1 unit 1629 hbase-server in the patch failed.
-1 asflicense 20 The patch generated 1 ASF License warnings.
3402
Reason Tests
FindBugs module:hbase-server
Write to static field org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.ALGORITHNAME from instance method new org.apache.hadoop.hbase.io.hfile.bucket.BucketCache(String, long, int, int[], int, int, String, int, Configuration) At BucketCache.java:from instance method new org.apache.hadoop.hbase.io.hfile.bucket.BucketCache(String, long, int, int[], int, int, String, int, Configuration) At BucketCache.java:[line 297]
Failed junit tests hadoop.hbase.io.hfile.bucket.TestVerifyBucketCacheFile
hadoop.hbase.client.TestClientClusterStatus
hadoop.hbase.io.hfile.bucket.TestBucketCache
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/15/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 2d6af0e71c7b 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 /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 30ab723
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/15/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/15/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/15/artifact/out/patch-shadedjars.txt
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/15/artifact/out/new-findbugs-hbase-server.html
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/15/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/15/testReport/
asflicense https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/15/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 781 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/15/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 66 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 512 branch-1 passed
+1 compile 53 branch-1 passed
+1 checkstyle 127 branch-1 passed
-1 shadedjars 15 branch has 10 errors when building our shaded downstream artifacts.
+1 javadoc 44 branch-1 passed
0 spotbugs 181 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 178 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 136 the patch passed
+1 compile 47 the patch passed
+1 javac 47 the patch passed
-1 checkstyle 114 hbase-server: The patch generated 10 new + 51 unchanged - 0 fixed = 61 total (was 51)
+1 whitespace 0 The patch has no whitespace issues.
-1 shadedjars 14 patch has 10 errors when building our shaded downstream artifacts.
+1 hadoopcheck 345 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 35 the patch passed
-1 findbugs 179 hbase-server generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
_ Other Tests _
-1 unit 1848 hbase-server in the patch failed.
-1 asflicense 20 The patch generated 1 ASF License warnings.
3976
Reason Tests
FindBugs module:hbase-server
Write to static field org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.ALGORITHNAME from instance method new org.apache.hadoop.hbase.io.hfile.bucket.BucketCache(String, long, int, int[], int, int, String, int, Configuration) At BucketCache.java:from instance method new org.apache.hadoop.hbase.io.hfile.bucket.BucketCache(String, long, int, int[], int, int, String, int, Configuration) At BucketCache.java:[line 297]
Failed junit tests hadoop.hbase.io.hfile.bucket.TestVerifyBucketCacheFile
hadoop.hbase.io.hfile.bucket.TestBucketCache
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/16/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux da21a8f0e924 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 /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 73e0304
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/16/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/16/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/16/artifact/out/patch-shadedjars.txt
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/16/artifact/out/new-findbugs-hbase-server.html
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/16/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/16/testReport/
asflicense https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/16/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 758 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/16/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 49 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 hbaseanti 0 Patch does not have any anti-patterns.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 mvninstall 475 branch-1 passed
+1 compile 40 branch-1 passed
+1 checkstyle 96 branch-1 passed
-1 shadedjars 14 branch has 10 errors when building our shaded downstream artifacts.
+1 javadoc 37 branch-1 passed
0 spotbugs 142 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 139 branch-1 passed
_ Patch Compile Tests _
+1 mvninstall 109 the patch passed
+1 compile 39 the patch passed
+1 javac 39 the patch passed
-1 checkstyle 89 hbase-server: The patch generated 10 new + 51 unchanged - 0 fixed = 61 total (was 51)
+1 whitespace 0 The patch has no whitespace issues.
-1 shadedjars 12 patch has 10 errors when building our shaded downstream artifacts.
+1 hadoopcheck 275 Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 javadoc 31 the patch passed
+1 findbugs 134 the patch passed
_ Other Tests _
-1 unit 1622 hbase-server in the patch failed.
-1 asflicense 21 The patch generated 1 ASF License warnings.
3371
Reason Tests
Failed junit tests hadoop.hbase.io.hfile.bucket.TestBucketCache
hadoop.hbase.io.hfile.bucket.TestVerifyBucketCacheFile
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/17/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 969edb48aacd 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 /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 73e0304
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/17/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/17/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/17/artifact/out/patch-shadedjars.txt
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/17/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/17/testReport/
asflicense https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/17/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 771 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/17/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@@ -242,6 +244,11 @@ public int compare(BlockCacheKey a, BlockCacheKey b) {
/** In-memory bucket size */
private float memoryFactor;

private String[] filePaths;
static final String FILE_VERIFY_ALGORITHM = "hbase.bucketcache.file.verify.algorithm";
static final String DEFAULT_FILE_VERIFY_ALGORITHM = "MD5";
Copy link
Contributor

Choose a reason for hiding this comment

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

Set them private, unless you use them somewhere outside package.

@@ -288,14 +294,15 @@ public BucketCache(String ioEngineName, long capacity, int blockSize, int[] buck
this.ramCache = new ConcurrentHashMap<BlockCacheKey, RAMQueueEntry>();

this.backingMap = new ConcurrentHashMap<BlockCacheKey, BucketEntry>((int) blockNumCapacity);

this.algorithm = conf.get(FILE_VERIFY_ALGORITHM,DEFAULT_FILE_VERIFY_ALGORITHM);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, space ,DEFAULT_FILE_VERIFY_ALGORITHM

} catch (NoSuchAlgorithmException e) {
LOG.error("No such algorithm : " + algorithm + "! Failed to persist data on exit",e);
} catch (Exception e) {
LOG.error("persist to file error"+e);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, space style "+e)

@@ -1056,6 +1069,7 @@ private void retrieveFromFile(int[] bucketSizes) throws IOException, BucketAlloc
"Attempt to restore non-persistent cache mappings!");
fis = new FileInputStream(persistencePath);
ois = new ObjectInputStream(fis);
ois.readUTF();
Copy link
Contributor

Choose a reason for hiding this comment

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

It breaks backward compatibility. For an upgrading rs, it should read an old persistent file.

public static String getPreFilesKey(String persistencePath) throws IOException {
FileInputStream fis = null;
ObjectInputStream ois = null;
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

Use try-with-resource style

init();
}

public void init() throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

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

this method should be private?

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class FileIOEngineUtils {
Copy link
Contributor

Choose a reason for hiding this comment

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

This class can be final

public class FileIOEngineUtils {

private FileIOEngineUtils() {

Copy link
Contributor

Choose a reason for hiding this comment

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

Useless new line

private FileIOEngineUtils() {

}
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

There should be a new line.

* @throws IOException something happened like file not exists
* @throws NoSuchAlgorithmException no such algorithm
*/
public static String getFilesKey(String[] filePaths, String algorithmName) throws IOException, NoSuchAlgorithmException {
Copy link
Contributor

Choose a reason for hiding this comment

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

This line is too long to match code style.

private String[] filePaths;
static final String FILE_VERIFY_ALGORITHM = "hbase.bucketcache.file.verify.algorithm";
static final String DEFAULT_FILE_VERIFY_ALGORITHM = "MD5";
private String algorithm;
Copy link
Contributor

Choose a reason for hiding this comment

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

Java doc for this new member, what is this algorithm for?

@@ -242,6 +244,11 @@ public int compare(BlockCacheKey a, BlockCacheKey b) {
/** In-memory bucket size */
private float memoryFactor;

private String[] filePaths;
static final String FILE_VERIFY_ALGORITHM = "hbase.bucketcache.file.verify.algorithm";
Copy link
Contributor

Choose a reason for hiding this comment

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

Please rename this parameters, "hbase.bucketcache.persistent.file.integrity.check.algorithm" for your reference.

Copy link
Contributor

@Reidddddd Reidddddd left a comment

Choose a reason for hiding this comment

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

Not a full review, but there're many code style problems(space, new line), please fix.

BTW, there one place breaking backward compatibility, it's a design problem.

Copy link
Contributor

@Reidddddd Reidddddd left a comment

Choose a reason for hiding this comment

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

+1 from me. And please raise a ticket to forward-port master, and branch-2.x.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 5m 2s Docker mode activated.
_ Prechecks _
💚 dupname 0m 0s No case conflicting files found.
💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
💚 @author 0m 0s The patch does not contain any @author tags.
💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
💚 mvninstall 8m 54s branch-1 passed
💚 compile 0m 58s branch-1 passed
💚 checkstyle 2m 10s branch-1 passed
💔 shadedjars 0m 16s branch has 10 errors when building our shaded downstream artifacts.
💚 javadoc 0m 46s branch-1 passed
💙 spotbugs 3m 13s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 3m 10s branch-1 passed
💛 patch 3m 17s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
💚 mvninstall 2m 21s the patch passed
💚 compile 0m 52s the patch passed
💚 javac 0m 52s the patch passed
💔 checkstyle 1m 56s hbase-server: The patch generated 2 new + 46 unchanged - 6 fixed = 48 total (was 52)
💚 whitespace 0m 0s The patch has no whitespace issues.
💔 shadedjars 0m 14s patch has 10 errors when building our shaded downstream artifacts.
💚 hadoopcheck 5m 37s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
💚 javadoc 0m 39s the patch passed
💔 findbugs 3m 0s hbase-server generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
_ Other Tests _
💔 unit 149m 29s hbase-server in the patch failed.
💚 asflicense 0m 25s The patch does not generate ASF License warnings.
190m 4s
Reason Tests
FindBugs module:hbase-server
org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.retrieveFromFile(int[]) ignores result of java.io.ObjectInputStream.read(byte[]) At BucketCache.java: At BucketCache.java:[line 1073]
org.apache.hadoop.hbase.io.hfile.bucket.FileIOEngine.readPersistenceChecksum(String) ignores result of java.io.ObjectInputStream.read(byte[]) At FileIOEngine.java: At FileIOEngine.java:[line 328]
Failed junit tests hadoop.hbase.client.TestReplicasClient
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/31/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux e80932aa045a 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 3f84591
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/31/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/31/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/31/artifact/out/patch-shadedjars.txt
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/31/artifact/out/new-findbugs-hbase-server.html
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/31/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/31/testReport/
Max. process+thread count 4553 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/31/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@@ -267,6 +318,98 @@ void refreshFileConnection(int accessFileNum, IOException ioe) throws IOExceptio
}
}

@Override
public byte[] readPersistenceChecksum(String persistencePath) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this can be called readPersistentCheckSum(). But do we need this API. Instead can we just do this internally under verifyCheckSum() or verifyFileIntegrity()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It has been modified. Thanks for giving advice.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 0m 55s Docker mode activated.
_ Prechecks _
💚 dupname 0m 0s No case conflicting files found.
💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
💚 @author 0m 0s The patch does not contain any @author tags.
💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
💚 mvninstall 8m 31s branch-1 passed
💚 compile 0m 49s branch-1 passed
💚 checkstyle 2m 4s branch-1 passed
💔 shadedjars 0m 14s branch has 10 errors when building our shaded downstream artifacts.
💚 javadoc 0m 45s branch-1 passed
💙 spotbugs 2m 49s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 2m 46s branch-1 passed
_ Patch Compile Tests _
💚 mvninstall 2m 19s the patch passed
💚 compile 0m 54s the patch passed
💚 javac 0m 54s the patch passed
💔 checkstyle 1m 52s hbase-server: The patch generated 2 new + 46 unchanged - 6 fixed = 48 total (was 52)
💚 whitespace 0m 0s The patch has no whitespace issues.
💔 shadedjars 0m 13s patch has 10 errors when building our shaded downstream artifacts.
💚 hadoopcheck 5m 34s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
💚 javadoc 0m 38s the patch passed
💔 findbugs 2m 53s hbase-server generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
_ Other Tests _
💚 unit 124m 59s hbase-server in the patch passed.
💚 asflicense 0m 30s The patch does not generate ASF License warnings.
159m 52s
Reason Tests
FindBugs module:hbase-server
org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.retrieveFromFile(int[]) ignores result of java.io.ObjectInputStream.read(byte[]) At BucketCache.java: At BucketCache.java:[line 1073]
org.apache.hadoop.hbase.io.hfile.bucket.FileIOEngine.readPersistenceChecksum(String) ignores result of java.io.ObjectInputStream.read(byte[]) At FileIOEngine.java: At FileIOEngine.java:[line 328]
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/32/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 75327fbb7d3e 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 /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 3f84591
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/32/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/32/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/32/artifact/out/patch-shadedjars.txt
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/32/artifact/out/new-findbugs-hbase-server.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/32/testReport/
Max. process+thread count 4733 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/32/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 0m 43s Docker mode activated.
_ Prechecks _
💚 dupname 0m 0s No case conflicting files found.
💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
💚 @author 0m 0s The patch does not contain any @author tags.
💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
💚 mvninstall 7m 58s branch-1 passed
💚 compile 0m 39s branch-1 passed
💚 checkstyle 1m 33s branch-1 passed
💔 shadedjars 0m 15s branch has 10 errors when building our shaded downstream artifacts.
💚 javadoc 0m 37s branch-1 passed
💙 spotbugs 2m 19s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 2m 17s branch-1 passed
_ Patch Compile Tests _
💚 mvninstall 1m 46s the patch passed
💚 compile 0m 39s the patch passed
💚 javac 0m 39s the patch passed
💔 checkstyle 1m 30s hbase-server: The patch generated 2 new + 46 unchanged - 6 fixed = 48 total (was 52)
💚 whitespace 0m 0s The patch has no whitespace issues.
💔 shadedjars 0m 12s patch has 10 errors when building our shaded downstream artifacts.
💚 hadoopcheck 4m 35s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
💚 javadoc 0m 30s the patch passed
💔 findbugs 2m 12s hbase-server generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
_ Other Tests _
💔 unit 116m 17s hbase-server in the patch passed.
💚 asflicense 0m 29s The patch does not generate ASF License warnings.
145m 23s
Reason Tests
FindBugs module:hbase-server
org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.retrieveFromFile(int[]) ignores result of java.io.ObjectInputStream.read(byte[]) At BucketCache.java: At BucketCache.java:[line 1073]
org.apache.hadoop.hbase.io.hfile.bucket.FileIOEngine.readPersistentChecksum(String) ignores result of java.io.ObjectInputStream.read(byte[]) At FileIOEngine.java: At FileIOEngine.java:[line 328]
Timed out junit tests org.apache.hadoop.hbase.fs.TestBlockReorderMultiBlocks
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/33/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux a7472d5fc164 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 /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 3f84591
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/33/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/33/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/33/artifact/out/patch-shadedjars.txt
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/33/artifact/out/new-findbugs-hbase-server.html
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/33/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/33/testReport/
Max. process+thread count 4800 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/33/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 0m 43s Docker mode activated.
_ Prechecks _
💚 dupname 0m 0s No case conflicting files found.
💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
💚 @author 0m 0s The patch does not contain any @author tags.
💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
💚 mvninstall 8m 0s branch-1 passed
💚 compile 1m 55s branch-1 passed
💚 checkstyle 1m 36s branch-1 passed
💔 shadedjars 0m 13s branch has 10 errors when building our shaded downstream artifacts.
💚 javadoc 0m 36s branch-1 passed
💙 spotbugs 2m 17s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 2m 16s branch-1 passed
_ Patch Compile Tests _
💚 mvninstall 1m 48s the patch passed
💚 compile 1m 42s the patch passed
💔 javac 1m 42s hbase-server generated 1 new + 193 unchanged - 1 fixed = 194 total (was 194)
💔 checkstyle 1m 29s hbase-server: The patch generated 2 new + 46 unchanged - 6 fixed = 48 total (was 52)
💚 whitespace 0m 0s The patch has no whitespace issues.
💔 shadedjars 0m 12s patch has 10 errors when building our shaded downstream artifacts.
💚 hadoopcheck 4m 38s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
💚 javadoc 0m 29s the patch passed
💔 findbugs 2m 15s hbase-server generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
_ Other Tests _
💚 unit 114m 25s hbase-server in the patch passed.
💚 asflicense 0m 32s The patch does not generate ASF License warnings.
146m 7s
Reason Tests
FindBugs module:hbase-server
org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.retrieveFromFile(int[]) ignores result of java.io.ObjectInputStream.read(byte[]) At BucketCache.java: At BucketCache.java:[line 1073]
org.apache.hadoop.hbase.io.hfile.bucket.FileIOEngine.readPersistentChecksum(String) ignores result of java.io.ObjectInputStream.read(byte[]) At FileIOEngine.java: At FileIOEngine.java:[line 328]
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/34/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux f74fe17088a8 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 /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 99e7f60
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/34/artifact/out/branch-shadedjars.txt
javac https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/34/artifact/out/diff-compile-javac-hbase-server.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/34/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/34/artifact/out/patch-shadedjars.txt
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/34/artifact/out/new-findbugs-hbase-server.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/34/testReport/
Max. process+thread count 4662 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/34/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@saintstack saintstack left a comment

Choose a reason for hiding this comment

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

Skimmed. LGTM. @ramkrish86 and @anoopsjohn ... is it good by you fellows? I see @Reidddddd gave it his blessing already.

private final String[] filePaths;
private final FileChannel[] fileChannels;
private final RandomAccessFile[] rafs;
private final ReentrantLock[] channelLocks;

private final long sizePerFile;
private final long capacity;
private final String algorithmName;
private boolean isOldVersion;
Copy link
Contributor

Choose a reason for hiding this comment

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

s/isOldVersion/oldVersion/

isOldVersion is name you'd use for the method that returns this boolean.


/**
* Whether the persistence file is old version, it's for back compatibility
* @return true if the persistence file is old version
Copy link
Contributor

Choose a reason for hiding this comment

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

Might say what 'old version' means... means it does not support this feature.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It has been modified. Thanks!

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 0m 38s Docker mode activated.
_ Prechecks _
💚 dupname 0m 0s No case conflicting files found.
💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
💚 @author 0m 0s The patch does not contain any @author tags.
💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
💚 mvninstall 8m 0s branch-1 passed
💚 compile 2m 5s branch-1 passed
💚 checkstyle 1m 44s branch-1 passed
💔 shadedjars 0m 12s branch has 10 errors when building our shaded downstream artifacts.
💚 javadoc 0m 36s branch-1 passed
💙 spotbugs 2m 24s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 2m 22s branch-1 passed
_ Patch Compile Tests _
💚 mvninstall 1m 52s the patch passed
💚 compile 1m 48s the patch passed
💚 javac 1m 48s the patch passed
💔 checkstyle 1m 43s hbase-server: The patch generated 2 new + 46 unchanged - 6 fixed = 48 total (was 52)
💚 whitespace 0m 0s The patch has no whitespace issues.
💔 shadedjars 0m 10s patch has 10 errors when building our shaded downstream artifacts.
💚 hadoopcheck 4m 41s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
💚 javadoc 0m 30s the patch passed
💔 findbugs 2m 28s hbase-server generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
_ Other Tests _
💔 unit 113m 12s hbase-server in the patch failed.
💚 asflicense 0m 31s The patch does not generate ASF License warnings.
145m 52s
Reason Tests
FindBugs module:hbase-server
org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.retrieveFromFile(int[]) ignores result of java.io.ObjectInputStream.read(byte[]) At BucketCache.java: At BucketCache.java:[line 1073]
org.apache.hadoop.hbase.io.hfile.bucket.FileIOEngine.readPersistentChecksum(String) ignores result of java.io.ObjectInputStream.read(byte[]) At FileIOEngine.java: At FileIOEngine.java:[line 328]
Failed junit tests hadoop.hbase.client.TestReplicasClient
hadoop.hbase.security.token.TestZKSecretWatcher
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/35/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux bcb00f4207a5 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 99e7f60
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/35/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/35/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/35/artifact/out/patch-shadedjars.txt
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/35/artifact/out/new-findbugs-hbase-server.html
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/35/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/35/testReport/
Max. process+thread count 4205 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/35/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 11m 11s Docker mode activated.
_ Prechecks _
💚 dupname 0m 0s No case conflicting files found.
💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
💚 @author 0m 0s The patch does not contain any @author tags.
💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
💚 mvninstall 8m 0s branch-1 passed
💚 compile 1m 53s branch-1 passed
💚 checkstyle 1m 34s branch-1 passed
💔 shadedjars 0m 14s branch has 10 errors when building our shaded downstream artifacts.
💚 javadoc 0m 37s branch-1 passed
💙 spotbugs 2m 24s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 2m 22s branch-1 passed
_ Patch Compile Tests _
💚 mvninstall 1m 47s the patch passed
💚 compile 1m 45s the patch passed
💚 javac 1m 45s the patch passed
💔 checkstyle 1m 57s hbase-server: The patch generated 2 new + 46 unchanged - 6 fixed = 48 total (was 52)
💚 whitespace 0m 0s The patch has no whitespace issues.
💔 shadedjars 0m 12s patch has 10 errors when building our shaded downstream artifacts.
💚 hadoopcheck 4m 36s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
💚 javadoc 0m 31s the patch passed
💔 findbugs 2m 27s hbase-server generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
_ Other Tests _
💚 unit 114m 44s hbase-server in the patch passed.
💚 asflicense 0m 32s The patch does not generate ASF License warnings.
157m 41s
Reason Tests
FindBugs module:hbase-server
org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.retrieveFromFile(int[]) ignores result of java.io.ObjectInputStream.read(byte[]) At BucketCache.java: At BucketCache.java:[line 1073]
org.apache.hadoop.hbase.io.hfile.bucket.FileIOEngine.readPersistentChecksum(String) ignores result of java.io.ObjectInputStream.read(byte[]) At FileIOEngine.java: At FileIOEngine.java:[line 328]
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/36/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux d9eec913af2b 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 /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 20d7da5
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/36/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/36/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/36/artifact/out/patch-shadedjars.txt
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/36/artifact/out/new-findbugs-hbase-server.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/36/testReport/
Max. process+thread count 4420 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/36/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

private static final Log LOG = LogFactory.getLog(FileIOEngine.class);
public static final String FILE_DELIMITER = ",";
private static final DuFileCommand du = new DuFileCommand(new String[] {"du", ""});
Copy link
Contributor

Choose a reason for hiding this comment

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

Upper case for static final member.

@Override
public byte[] calculateChecksum()
throws IOException, NoSuchAlgorithmException {

Copy link
Contributor

Choose a reason for hiding this comment

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

Unnecessary empty line.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 10m 13s Docker mode activated.
_ Prechecks _
💚 dupname 0m 0s No case conflicting files found.
💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
💚 @author 0m 0s The patch does not contain any @author tags.
💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ branch-1 Compile Tests _
💚 mvninstall 8m 1s branch-1 passed
💚 compile 2m 3s branch-1 passed
💚 checkstyle 1m 44s branch-1 passed
💔 shadedjars 0m 11s branch has 10 errors when building our shaded downstream artifacts.
💚 javadoc 0m 36s branch-1 passed
💙 spotbugs 2m 24s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 2m 22s branch-1 passed
_ Patch Compile Tests _
💚 mvninstall 1m 50s the patch passed
💚 compile 1m 47s the patch passed
💚 javac 1m 47s the patch passed
💔 checkstyle 1m 39s hbase-server: The patch generated 2 new + 46 unchanged - 6 fixed = 48 total (was 52)
💚 whitespace 0m 0s The patch has no whitespace issues.
💔 shadedjars 0m 10s patch has 10 errors when building our shaded downstream artifacts.
💚 hadoopcheck 4m 43s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
💚 javadoc 0m 30s the patch passed
💔 findbugs 2m 22s hbase-server generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
_ Other Tests _
💚 unit 110m 35s hbase-server in the patch passed.
💚 asflicense 0m 25s The patch does not generate ASF License warnings.
152m 31s
Reason Tests
FindBugs module:hbase-server
org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.retrieveFromFile(int[]) ignores result of java.io.ObjectInputStream.read(byte[]) At BucketCache.java: At BucketCache.java:[line 1073]
org.apache.hadoop.hbase.io.hfile.bucket.FileIOEngine.readPersistentChecksum(String) ignores result of java.io.ObjectInputStream.read(byte[]) At FileIOEngine.java: At FileIOEngine.java:[line 328]
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/37/artifact/out/Dockerfile
GITHUB PR #528
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux a1f4cc976144 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-528/out/precommit/personality/provided.sh
git revision branch-1 / 20d7da5
Default Java 1.8.0_222
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/37/artifact/out/branch-shadedjars.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/37/artifact/out/diff-checkstyle-hbase-server.txt
shadedjars https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/37/artifact/out/patch-shadedjars.txt
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/37/artifact/out/new-findbugs-hbase-server.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/37/testReport/
Max. process+thread count 4157 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-528/37/console
versions git=1.9.1 maven=3.0.5 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@Reidddddd Reidddddd merged commit 5bf60ec into apache:branch-1 Sep 16, 2019
if (!ioEngine.isPersistent()) {
throw new IOException("Attempt to persist non-persistent cache mappings!");
}
fos = new FileOutputStream(persistencePath, false);
oos = new ObjectOutputStream(fos);
if (ioEngine instanceof PersistentIOEngine) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If we are in this persistToFile() , it means it is PersistentIOEngine. May be an assert and direct casting is better way than if check.

fis = new FileInputStream(persistencePath);
ois = new ObjectInputStream(fis);
// for backward compatibility
if (ioEngine instanceof PersistentIOEngine &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above comment. See above
if (!ioEngine.isPersistent()) throw new IOException().
Just after that line itself you can do the typecast.

@@ -1078,9 +1097,8 @@ private void retrieveFromFile(int[] bucketSizes) throws IOException, BucketAlloc
bucketAllocator = allocator;
deserialiserMap = deserMap;
backingMap = backingMapFromFile;
blockNumber.set(backingMap.size());
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change? Is it related to this jira directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When retrieve successfully from file, the "Block Count" in WebUI would be 0 if blockNumber is not changed. But it's have blocks actually.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. So this is an existing bug. Its a one liner change. Still can be done as another bug jira may be.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

ois.read(PBMagic);
int length = ois.readInt();
byte[] persistenceChecksum = new byte[length];
ois.read(persistenceChecksum);
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually we are reading persistentChecksum twice in this flow. At FileIOE create time as part of verify call and here too. Here we are doing as a skip way. So why can't we do it here only? We have verifyFileIntegrity() in PersistentIOEngine interface and we can call that from here? It looks bit odd. The oldVersion check can be done here also based on he PBMagic matching.
isOldVersion() API itself not needed in the FileIOE. We process the persisted meta info here and based on that recreate the backingMap etc here in BC. So knowing whether checksum also persisted and if so verify that all can be here. I mean the actual verify imp can be in FileIOE but the call to that should be from here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about your thoughts. If we want to read it once, we should pass ObjectInputStream object "ois" to the verifyFileIntegrity() method. If it's an old version persistent file, the ois object should be reset, but reset() method is not support. We can recreate an ObjectInputStream without using try-with-resource statement, but this may be a bit unsightly......

Copy link
Contributor

Choose a reason for hiding this comment

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

May be we need to close and reopen for the read. My biggest worry is where we do this verify. See my below comment. Now we are doing it while creation of FileIOE. If the verify fails, we are not allowing the FileIOE to be created and do its future work. My point is this. We should create the FileIOE. And then the Bucket Cache is trying to retrieve the already cached data from persistent store and for that its recreating the cache meta. At that step we should be doing the verification right. First see whether the checksum for verify is present already and if so verify. If verify ok and then try to recreate the cache meta data. Or else just forget abt that existing persisted cache data and may be do the necessary cleanup. All these work of Bucket Cache. It can ask the FileIOE to do actual verify. But should be initiated by the BucketCache. You get my mind clearly now? Sorry for not saying in detail at 1st step itself.
Ya may be we need close the file and reopen in case of old style with no pb magic. Or else consider it as 4 bytes and read next 4 bytes and make out the 8 bytes long number. But that may be having challenges wrt the platform. I dont think it is an issue to just reopen the file if no pbmagic. Comments. @Reidddddd

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I got your point already. In fact, if the verification fails, FileIOE can still be created. If verification fails, we would throw IOException, then cache the IOException and do some cleanup, but the creation of FileIOE will continue. Below is the code for the cache:
catch (IOException ioex) { LOG.error("File verification failed because of ", ioex); // delete cache files and backingMap persistent file. deleteCacheDataFile(); new File(persistentPath).delete(); }
However, I totally agree with what you said, I will modify it immediately.

if (!Bytes.equals(persistentChecksum, calculateChecksum)) {
LOG.warn("The persistent checksum is " + Bytes.toString(persistentChecksum) +
", but the calculate checksum is " + Bytes.toString(calculateChecksum));
throw new IOException();
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually if the checksum do not match, we can still continue with RS operation. We can not regain the old cached data. But now as this throw IOE happens while construction of the FileIOEngine, we can no longer use the IOEngine itself. That is wrong. One more reason not to do this verify as part of constructor but at a later time as part of retrieve from persisted meta data.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The IOException will be cached, and then do the delete operation. So the IOEngine can use after that.

}
} else {
// not configure persistent path
deleteCacheDataFile();
Copy link
Contributor

Choose a reason for hiding this comment

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

Where we will create the cache files again then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The cache files would be created in init() method. rafs[i] = new RandomAccessFile(filePath, "rw"); will create new file if it not exist.

/**
* Delete bucketcache files
*/
void deleteCacheDataFile();
Copy link
Contributor

Choose a reason for hiding this comment

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

Even this also not needed in Interface at least as of now. If we verify the checksum in BucketCache (as above comment) and then decide to do this delete, ya then it is needed. But in flow when and where we create it again?

@ZhaoBQ
Copy link
Contributor Author

ZhaoBQ commented Sep 17, 2019

Hello, @Reidddddd @anoopsjohn , I have created a new pull request. HBASE-22890

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.

6 participants