Skip to content

HBASE-24174 Fix findbugs warning in branch-1#1494

Merged
Reidddddd merged 1 commit intoapache:branch-1from
Reidddddd:HBASE-24174
Apr 17, 2020
Merged

HBASE-24174 Fix findbugs warning in branch-1#1494
Reidddddd merged 1 commit intoapache:branch-1from
Reidddddd:HBASE-24174

Conversation

@Reidddddd
Copy link
Contributor

No description provided.

Copy link
Contributor

@virajjasani virajjasani left a comment

Choose a reason for hiding this comment

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

+1, pending QA

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 39s 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 _
+1 💚 mvninstall 8m 38s branch-1 passed
+1 💚 compile 0m 40s branch-1 passed with JDK v1.8.0_242
+1 💚 compile 0m 45s branch-1 passed with JDK v1.7.0_252
+1 💚 checkstyle 1m 39s branch-1 passed
+1 💚 shadedjars 2m 56s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 41s branch-1 passed with JDK v1.8.0_242
+1 💚 javadoc 0m 40s branch-1 passed with JDK v1.7.0_252
+0 🆗 spotbugs 2m 53s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 2m 50s hbase-server in branch-1 has 1 extant findbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 54s the patch passed
+1 💚 compile 0m 43s the patch passed with JDK v1.8.0_242
+1 💚 javac 0m 43s the patch passed
+1 💚 compile 0m 44s the patch passed with JDK v1.7.0_252
+1 💚 javac 0m 44s the patch passed
+1 💚 checkstyle 1m 31s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 2m 51s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 4m 50s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚 javadoc 0m 31s the patch passed with JDK v1.8.0_242
+1 💚 javadoc 0m 41s the patch passed with JDK v1.7.0_252
+1 💚 findbugs 2m 52s hbase-server generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
_ Other Tests _
+1 💚 unit 126m 26s hbase-server in the patch passed.
+1 💚 asflicense 0m 29s The patch does not generate ASF License warnings.
166m 39s
Subsystem Report/Notes
Docker Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/1/artifact/out/Dockerfile
GITHUB PR #1494
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux ef51446d83a6 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/Base-PreCommit-GitHub-PR_PR-1494/out/precommit/personality/provided.sh
git revision branch-1 / 7b12709
Default Java 1.7.0_252
Multi-JDK versions /usr/lib/jvm/zulu-8-amd64:1.8.0_242 /usr/lib/jvm/zulu-7-amd64:1.7.0_252
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/1/artifact/out/branch-findbugs-hbase-server-warnings.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/1/testReport/
Max. process+thread count 4107 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/1/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.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 8m 24s 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 _
+1 💚 mvninstall 9m 0s branch-1 passed
+1 💚 compile 0m 47s branch-1 passed with JDK v1.8.0_242
+1 💚 compile 0m 48s branch-1 passed with JDK v1.7.0_252
+1 💚 checkstyle 1m 52s branch-1 passed
+1 💚 shadedjars 3m 25s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 45s branch-1 passed with JDK v1.8.0_242
+1 💚 javadoc 0m 51s branch-1 passed with JDK v1.7.0_252
+0 🆗 spotbugs 3m 14s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 3m 10s hbase-server in branch-1 has 1 extant findbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 2m 14s the patch passed
+1 💚 compile 0m 43s the patch passed with JDK v1.8.0_242
+1 💚 javac 0m 43s the patch passed
+1 💚 compile 0m 46s the patch passed with JDK v1.7.0_252
+1 💚 javac 0m 46s the patch passed
+1 💚 checkstyle 1m 48s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 3m 14s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 5m 26s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚 javadoc 0m 33s the patch passed with JDK v1.8.0_242
+1 💚 javadoc 0m 43s the patch passed with JDK v1.7.0_252
+1 💚 findbugs 3m 14s hbase-server generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
_ Other Tests _
+1 💚 unit 127m 45s hbase-server in the patch passed.
+1 💚 asflicense 0m 34s The patch does not generate ASF License warnings.
179m 45s
Subsystem Report/Notes
Docker Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/2/artifact/out/Dockerfile
GITHUB PR #1494
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 27d4285c051c 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/Base-PreCommit-GitHub-PR_PR-1494/out/precommit/personality/provided.sh
git revision branch-1 / 7b12709
Default Java 1.7.0_252
Multi-JDK versions /usr/lib/jvm/zulu-8-amd64:1.8.0_242 /usr/lib/jvm/zulu-7-amd64:1.7.0_252
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/2/artifact/out/branch-findbugs-hbase-server-warnings.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/2/testReport/
Max. process+thread count 4765 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/2/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.

@virajjasani
Copy link
Contributor

@Reidddddd in branch-2+, this has been suppressed with

  @edu.umd.cs.findbugs.annotations.SuppressWarnings(value="IS2_INCONSISTENT_SYNC",
      justification="Start is synchronized so authManager creation is single-threaded")
  protected ServiceAuthorizationManager authManager;

as part of HBASE-20069

@Reidddddd Reidddddd force-pushed the HBASE-24174 branch 2 times, most recently from fec95bc to 9ebc179 Compare April 13, 2020 05:44

@Override
public void onConfigurationChange(Configuration newConf) {
public synchronized void onConfigurationChange(Configuration newConf) {
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 want to make this change, it should go to master, branch-2 first right?

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 saw the warning in branch-1 only after HBASE-24174. I can forward-port to branch-2 and master. But as you said it is supressed, dilemma...

Copy link
Contributor

Choose a reason for hiding this comment

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

Right, it is suppressed there. Either we can backport suppressed one or forward port this to branch-2+ and remove suppression there. Sure, let's see QA 👍

@Reidddddd
Copy link
Contributor Author

Let's see if the warning fade, after this commit..

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 41s 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 _
+1 💚 mvninstall 8m 35s branch-1 passed
+1 💚 compile 0m 44s branch-1 passed with JDK v1.8.0_242
+1 💚 compile 0m 45s branch-1 passed with JDK v1.7.0_252
+1 💚 checkstyle 1m 43s branch-1 passed
+1 💚 shadedjars 3m 13s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 42s branch-1 passed with JDK v1.8.0_242
+1 💚 javadoc 0m 40s branch-1 passed with JDK v1.7.0_252
+0 🆗 spotbugs 2m 52s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 2m 48s hbase-server in branch-1 has 1 extant findbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 55s the patch passed
+1 💚 compile 0m 44s the patch passed with JDK v1.8.0_242
+1 💚 javac 0m 44s the patch passed
+1 💚 compile 0m 43s the patch passed with JDK v1.7.0_252
+1 💚 javac 0m 43s the patch passed
+1 💚 checkstyle 1m 31s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 2m 50s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 5m 9s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚 javadoc 0m 35s the patch passed with JDK v1.8.0_242
+1 💚 javadoc 0m 46s the patch passed with JDK v1.7.0_252
+1 💚 findbugs 3m 21s hbase-server generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
_ Other Tests _
-1 ❌ unit 146m 20s hbase-server in the patch failed.
+1 💚 asflicense 0m 32s The patch does not generate ASF License warnings.
188m 10s
Reason Tests
Failed junit tests hadoop.hbase.mapreduce.TestLoadIncrementalHFilesUseSecurityEndPoint
Subsystem Report/Notes
Docker Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/4/artifact/out/Dockerfile
GITHUB PR #1494
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 49ba15a0205d 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/Base-PreCommit-GitHub-PR_PR-1494/out/precommit/personality/provided.sh
git revision branch-1 / 7b12709
Default Java 1.7.0_252
Multi-JDK versions /usr/lib/jvm/zulu-8-amd64:1.8.0_242 /usr/lib/jvm/zulu-7-amd64:1.7.0_252
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/4/artifact/out/branch-findbugs-hbase-server-warnings.html
unit https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/4/artifact/out/patch-unit-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/4/testReport/
Max. process+thread count 3983 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/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.

@Reidddddd
Copy link
Contributor Author

Let me check how does the branch-2 suppress the warning...(

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 8m 16s 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 _
+1 💚 mvninstall 8m 40s branch-1 passed
+1 💚 compile 0m 46s branch-1 passed with JDK v1.8.0_242
+1 💚 compile 0m 45s branch-1 passed with JDK v1.7.0_252
+1 💚 checkstyle 1m 39s branch-1 passed
+1 💚 shadedjars 2m 58s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 41s branch-1 passed with JDK v1.8.0_242
+1 💚 javadoc 0m 40s branch-1 passed with JDK v1.7.0_252
+0 🆗 spotbugs 3m 0s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 2m 57s hbase-server in branch-1 has 1 extant findbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 57s the patch passed
+1 💚 compile 0m 44s the patch passed with JDK v1.8.0_242
+1 💚 javac 0m 44s the patch passed
+1 💚 compile 0m 45s the patch passed with JDK v1.7.0_252
+1 💚 javac 0m 45s the patch passed
+1 💚 checkstyle 1m 34s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 2m 53s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 4m 57s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚 javadoc 0m 31s the patch passed with JDK v1.8.0_242
+1 💚 javadoc 0m 42s the patch passed with JDK v1.7.0_252
+1 💚 findbugs 2m 58s hbase-server generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
_ Other Tests _
+1 💚 unit 129m 49s hbase-server in the patch passed.
+1 💚 asflicense 0m 34s The patch does not generate ASF License warnings.
178m 25s
Subsystem Report/Notes
Docker Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/5/artifact/out/Dockerfile
GITHUB PR #1494
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux b976b8aefc52 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/Base-PreCommit-GitHub-PR_PR-1494/out/precommit/personality/provided.sh
git revision branch-1 / 03d73f1
Default Java 1.7.0_252
Multi-JDK versions /usr/lib/jvm/zulu-8-amd64:1.8.0_242 /usr/lib/jvm/zulu-7-amd64:1.7.0_252
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/5/artifact/out/branch-findbugs-hbase-server-warnings.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/5/testReport/
Max. process+thread count 4769 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/5/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.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 50s 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 1s 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 _
+1 💚 mvninstall 8m 59s branch-1 passed
+1 💚 compile 0m 41s branch-1 passed with JDK v1.8.0_242
+1 💚 compile 0m 46s branch-1 passed with JDK v1.7.0_252
+1 💚 checkstyle 1m 38s branch-1 passed
+1 💚 shadedjars 2m 59s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 41s branch-1 passed with JDK v1.8.0_242
+1 💚 javadoc 0m 41s branch-1 passed with JDK v1.7.0_252
+0 🆗 spotbugs 2m 57s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 2m 54s hbase-server in branch-1 has 1 extant findbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 2m 2s the patch passed
+1 💚 compile 0m 41s the patch passed with JDK v1.8.0_242
+1 💚 javac 0m 41s the patch passed
+1 💚 compile 0m 45s the patch passed with JDK v1.7.0_252
+1 💚 javac 0m 45s the patch passed
+1 💚 checkstyle 1m 34s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 2m 51s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 5m 1s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚 javadoc 0m 32s the patch passed with JDK v1.8.0_242
+1 💚 javadoc 0m 41s the patch passed with JDK v1.7.0_252
+1 💚 findbugs 2m 58s hbase-server generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
_ Other Tests _
+1 💚 unit 134m 18s hbase-server in the patch passed.
+1 💚 asflicense 0m 42s The patch does not generate ASF License warnings.
176m 1s
Subsystem Report/Notes
Docker Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/6/artifact/out/Dockerfile
GITHUB PR #1494
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 6efa22da7960 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/Base-PreCommit-GitHub-PR_PR-1494/out/precommit/personality/provided.sh
git revision branch-1 / 03d73f1
Default Java 1.7.0_252
Multi-JDK versions /usr/lib/jvm/zulu-8-amd64:1.8.0_242 /usr/lib/jvm/zulu-7-amd64:1.7.0_252
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/6/artifact/out/branch-findbugs-hbase-server-warnings.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/6/testReport/
Max. process+thread count 4829 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/6/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.

@Reidddddd
Copy link
Contributor Author

The suppress doesn't work?... o_0

@virajjasani
Copy link
Contributor

@Reidddddd in branch-2+, this has been suppressed with

  @edu.umd.cs.findbugs.annotations.SuppressWarnings(value="IS2_INCONSISTENT_SYNC",
      justification="Start is synchronized so authManager creation is single-threaded")
  protected ServiceAuthorizationManager authManager;

as part of HBASE-20069

Oh ok, it seems we will have to put it over where we define authManager. Interesting!
Let's see if this works :)

@Reidddddd
Copy link
Contributor Author

Oh ok, it seems we will have to put it over where we define authManager. Interesting!
Let's see if this works :)

Tried, the previous commit...

@Reidddddd
Copy link
Contributor Author

the 2nd commit suppressed on definition

@virajjasani
Copy link
Contributor

Oh ok, it seems we will have to put it over where we define authManager. Interesting!
Let's see if this works :)

Tried, the previous commit...

oops, missed previous commit. This is weird, how come it is not getting suppressed on branch-1

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 39s 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.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 💚 mvninstall 8m 40s branch-1 passed
+1 💚 compile 0m 41s branch-1 passed with JDK v1.8.0_242
+1 💚 compile 0m 44s branch-1 passed with JDK v1.7.0_252
+1 💚 checkstyle 1m 39s branch-1 passed
+1 💚 shadedjars 2m 53s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 40s branch-1 passed with JDK v1.8.0_242
+1 💚 javadoc 0m 39s branch-1 passed with JDK v1.7.0_252
+0 🆗 spotbugs 2m 51s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 2m 48s hbase-server in branch-1 has 1 extant findbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 53s the patch passed
+1 💚 compile 0m 40s the patch passed with JDK v1.8.0_242
+1 💚 javac 0m 40s the patch passed
+1 💚 compile 0m 45s the patch passed with JDK v1.7.0_252
+1 💚 javac 0m 45s the patch passed
+1 💚 checkstyle 1m 32s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 2m 48s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 4m 55s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚 javadoc 0m 31s the patch passed with JDK v1.8.0_242
+1 💚 javadoc 0m 42s the patch passed with JDK v1.7.0_252
+1 💚 findbugs 2m 53s hbase-server generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
_ Other Tests _
+1 💚 unit 129m 45s hbase-server in the patch passed.
+1 💚 asflicense 0m 34s The patch does not generate ASF License warnings.
169m 57s
Subsystem Report/Notes
Docker Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/7/artifact/out/Dockerfile
GITHUB PR #1494
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 5373cc4d1f77 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/Base-PreCommit-GitHub-PR_PR-1494/out/precommit/personality/provided.sh
git revision branch-1 / 0d86835
Default Java 1.7.0_252
Multi-JDK versions /usr/lib/jvm/zulu-8-amd64:1.8.0_242 /usr/lib/jvm/zulu-7-amd64:1.7.0_252
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/7/artifact/out/branch-findbugs-hbase-server-warnings.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/7/testReport/
Max. process+thread count 4536 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/7/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.

@Reidddddd
Copy link
Contributor Author

so buggy........having no clue..

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 36s 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.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 💚 mvninstall 8m 34s branch-1 passed
+1 💚 compile 0m 41s branch-1 passed with JDK v1.8.0_242
+1 💚 compile 0m 44s branch-1 passed with JDK v1.7.0_252
+1 💚 checkstyle 1m 41s branch-1 passed
+1 💚 shadedjars 2m 57s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 40s branch-1 passed with JDK v1.8.0_242
+1 💚 javadoc 0m 41s branch-1 passed with JDK v1.7.0_252
+0 🆗 spotbugs 2m 54s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 2m 51s hbase-server in branch-1 has 1 extant findbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 53s the patch passed
+1 💚 compile 0m 40s the patch passed with JDK v1.8.0_242
+1 💚 javac 0m 40s the patch passed
+1 💚 compile 0m 45s the patch passed with JDK v1.7.0_252
+1 💚 javac 0m 45s the patch passed
+1 💚 checkstyle 1m 33s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 2m 47s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 4m 49s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚 javadoc 0m 31s the patch passed with JDK v1.8.0_242
+1 💚 javadoc 0m 40s the patch passed with JDK v1.7.0_252
+1 💚 findbugs 2m 51s hbase-server generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
_ Other Tests _
+1 💚 unit 119m 33s hbase-server in the patch passed.
+1 💚 asflicense 0m 33s The patch does not generate ASF License warnings.
159m 34s
Subsystem Report/Notes
Docker Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/8/artifact/out/Dockerfile
GITHUB PR #1494
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 541c12860bea 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/Base-PreCommit-GitHub-PR_PR-1494/out/precommit/personality/provided.sh
git revision branch-1 / f80c4c2
Default Java 1.7.0_252
Multi-JDK versions /usr/lib/jvm/zulu-8-amd64:1.8.0_242 /usr/lib/jvm/zulu-7-amd64:1.7.0_252
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/8/artifact/out/branch-findbugs-hbase-server-warnings.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/8/testReport/
Max. process+thread count 4015 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/8/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.

@Reidddddd
Copy link
Contributor Author

I just found the findbug's line number doesn't match.

@virajjasani
Copy link
Contributor

I just found the findbug's line number doesn't match.

Oh, where can we see that? Are you referring to this one: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/8/artifact/out/branch-findbugs-hbase-server-warnings.xml ?

<BugInstance type="IS2_INCONSISTENT_SYNC" priority="2" rank="17" abbrev="IS" category="MT_CORRECTNESS">
<Class classname="org.apache.hadoop.hbase.ipc.RpcServer">
<SourceLine classname="org.apache.hadoop.hbase.ipc.RpcServer" start="164" end="2882" sourcefile="RpcServer.java" sourcepath="org/apache/hadoop/hbase/ipc/RpcServer.java"/>
</Class>
<Field classname="org.apache.hadoop.hbase.ipc.RpcServer" name="authManager" signature="Lorg/apache/hadoop/security/authorize/ServiceAuthorizationManager;" isStatic="false">
<SourceLine classname="org.apache.hadoop.hbase.ipc.RpcServer" sourcefile="RpcServer.java" sourcepath="org/apache/hadoop/hbase/ipc/RpcServer.java"/>
</Field>
<Int value="66" role="INT_SYNC_PERCENT"/>
<SourceLine classname="org.apache.hadoop.hbase.ipc.RpcServer" start="2270" end="2270" startBytecode="37" endBytecode="37" sourcefile="RpcServer.java" sourcepath="org/apache/hadoop/hbase/ipc/RpcServer.java" role="SOURCE_LINE_UNSYNC_ACCESS"/>
<SourceLine classname="org.apache.hadoop.hbase.ipc.RpcServer" start="2271" end="2271" startBytecode="44" endBytecode="44" sourcefile="RpcServer.java" sourcepath="org/apache/hadoop/hbase/ipc/RpcServer.java" role="SOURCE_LINE_UNSYNC_ACCESS"/>
<SourceLine classname="org.apache.hadoop.hbase.ipc.RpcServer" start="2347" end="2347" startBytecode="46" endBytecode="46" sourcefile="RpcServer.java" sourcepath="org/apache/hadoop/hbase/ipc/RpcServer.java" role="SOURCE_LINE_SYNC_ACCESS"/>
<SourceLine classname="org.apache.hadoop.hbase.ipc.RpcServer" start="2348" end="2348" startBytecode="54" endBytecode="54" sourcefile="RpcServer.java" sourcepath="org/apache/hadoop/hbase/ipc/RpcServer.java" role="SOURCE_LINE_SYNC_ACCESS"/>
<SourceLine classname="org.apache.hadoop.hbase.ipc.RpcServer" start="2359" end="2359" startBytecode="1" endBytecode="1" sourcefile="RpcServer.java" sourcepath="org/apache/hadoop/hbase/ipc/RpcServer.java" role="SOURCE_LINE_SYNC_ACCESS"/>
<SourceLine classname="org.apache.hadoop.hbase.ipc.RpcServer" start="2640" end="2640" startBytecode="21" endBytecode="21" sourcefile="RpcServer.java" sourcepath="org/apache/hadoop/hbase/ipc/RpcServer.java" role="SOURCE_LINE_SYNC_ACCESS"/>
</BugInstance>

@virajjasani
Copy link
Contributor

so buggy........having no clue..

yeah, agree...

@Reidddddd
Copy link
Contributor Author

This

Inconsistent synchronization of org.apache.hadoop.hbase.ipc.RpcServer.authManager;
locked 66% of time
Bug type IS2_INCONSISTENT_SYNC (click for details)
In class org.apache.hadoop.hbase.ipc.RpcServerField org.apache.hadoop.hbase.ipc.RpcServer.authManagerSynchronized 66% of the time
Unsynchronized access at RpcServer.java:[line 2270]
Unsynchronized access at RpcServer.java:[line 2271]

2270 and 2271 line is the original code without patch.

@virajjasani
Copy link
Contributor

This

Inconsistent synchronization of org.apache.hadoop.hbase.ipc.RpcServer.authManager;
locked 66% of time
Bug type IS2_INCONSISTENT_SYNC (click for details)
In class org.apache.hadoop.hbase.ipc.RpcServerField org.apache.hadoop.hbase.ipc.RpcServer.authManagerSynchronized 66% of the time
Unsynchronized access at RpcServer.java:[line 2270]
Unsynchronized access at RpcServer.java:[line 2271]

2270 and 2271 line is the original code without patch.

wow, then it's not even looking in the patch, weird...

@busbey
Copy link
Contributor

busbey commented Apr 16, 2020

that's the findbugs report for the branch, before the patch. the report for after the patch says there is no issue. so it's correctly reporting exactly what you're trying to fix here.

@busbey
Copy link
Contributor

busbey commented Apr 16, 2020

-1 ❌ findbugs 2m 51s hbase-server in branch-1 has 1 extant findbugs warnings.

+1 💚 findbugs 2m 51s hbase-server generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)

(I am purposefully only commenting on what qabot is saying, not on wether or not ignoring this warning is a good idea.)

@Reidddddd
Copy link
Contributor Author

Thanks @busbey ! Oh, there're two findbugs..., oversight.
OK, let me remove the suppress and if the fix works.

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 0s Docker mode activated.
-1 ❌ docker 6m 32s Docker failed to build yetus/hbase:41990ba20a.
Subsystem Report/Notes
GITHUB PR #1494
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/9/console
versions git=2.17.1
Powered by Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

@Reidddddd
Copy link
Contributor Author

Rebased branch-1

@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 39s 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.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ branch-1 Compile Tests _
+1 💚 mvninstall 9m 52s branch-1 passed
+1 💚 compile 0m 41s branch-1 passed with JDK v1.8.0_242
+1 💚 compile 0m 44s branch-1 passed with JDK v1.7.0_252
+1 💚 checkstyle 1m 39s branch-1 passed
+1 💚 shadedjars 2m 53s branch has no errors when building our shaded downstream artifacts.
+1 💚 javadoc 0m 42s branch-1 passed with JDK v1.8.0_242
+1 💚 javadoc 0m 40s branch-1 passed with JDK v1.7.0_252
+0 🆗 spotbugs 2m 54s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 2m 51s hbase-server in branch-1 has 1 extant findbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 1m 56s the patch passed
+1 💚 compile 0m 40s the patch passed with JDK v1.8.0_242
+1 💚 javac 0m 40s the patch passed
+1 💚 compile 0m 45s the patch passed with JDK v1.7.0_252
+1 💚 javac 0m 45s the patch passed
+1 💚 checkstyle 1m 30s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedjars 2m 46s patch has no errors when building our shaded downstream artifacts.
+1 💚 hadoopcheck 5m 2s Patch does not cause any errors with Hadoop 2.8.5 2.9.2.
+1 💚 javadoc 0m 34s the patch passed with JDK v1.8.0_242
+1 💚 javadoc 0m 42s the patch passed with JDK v1.7.0_252
+1 💚 findbugs 2m 52s hbase-server generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
_ Other Tests _
+1 💚 unit 122m 21s hbase-server in the patch passed.
+1 💚 asflicense 0m 31s The patch does not generate ASF License warnings.
163m 55s
Subsystem Report/Notes
Docker Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/10/artifact/out/Dockerfile
GITHUB PR #1494
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux e92de0aa6775 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/Base-PreCommit-GitHub-PR_PR-1494/out/precommit/personality/provided.sh
git revision branch-1 / d4b64c2
Default Java 1.7.0_252
Multi-JDK versions /usr/lib/jvm/zulu-8-amd64:1.8.0_242 /usr/lib/jvm/zulu-7-amd64:1.7.0_252
findbugs https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/10/artifact/out/branch-findbugs-hbase-server-warnings.html
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/10/testReport/
Max. process+thread count 4060 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1494/10/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.

@virajjasani
Copy link
Contributor

Yup, we are good :)

hbase-server generated 0 new + 0 unchanged - 1 fixed = 0 total (was 1)
--

System.setProperty("hadoop.policy.file", "hbase-policy.xml");
synchronized (authManager) {
authManager.refresh(newConf, new HBasePolicyProvider());
if (authorize) {
Copy link
Contributor

Choose a reason for hiding this comment

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

btw, this if condition is an enhancement for this patch? is it necessary?

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, it is, to avoid unnecessary refresh. If authorization is disabled, then no need to refresh it which it is time consuming.

We should forward-port this patch to branch-2+ and master as well, quite some changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@virajjasani virajjasani left a comment

Choose a reason for hiding this comment

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

+1

@Reidddddd
Copy link
Contributor Author

Thanks @virajjasani , we finally get here.

@Reidddddd Reidddddd merged commit 1eeff37 into apache:branch-1 Apr 17, 2020
asfgit pushed a commit that referenced this pull request Apr 17, 2020
Signed-off-by: Viraj Jasani <vjasani@apache.org>
Reidddddd added a commit to Reidddddd/hbase that referenced this pull request Apr 22, 2020
udaynpusa pushed a commit to mapr/hbase that referenced this pull request Jan 30, 2024
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.

4 participants