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-23230 Enforce member visibility in HRegionServer #806

Conversation

ndimiduk
Copy link
Member

@ndimiduk ndimiduk commented Nov 8, 2019

A backport of #775 to branch-2.

 * Clean up a bunch of private variable leakage into other
   classes. Reduces visibility as much as possible, providing getters
   where access remains necessary or making use of getters that
   already exist. There remains an insidious relationship between
   `HRegionServer` and `RSRpcServices`.
 * Rename `fs` to `dataFs`, `rootDir` as `dataRootDir` so as to
   distinguish from the new `walFs`, `walRootDir` (and make it easier
   to spot bugs).
 * Cleanup or delete a bunch of lack-luster javadoc comments.
 * Delete a handful of methods that are unused according to static
   analysis.
 * Reduces the warning count as reported by IntelliJ from 100 to 7.

Signed-off-by: stack <stack@apache.org>
@Apache-HBase
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
💙 reexec 0m 50s 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 13 new or modified test files.
_ branch-2 Compile Tests _
💚 mvninstall 6m 48s branch-2 passed
💚 compile 1m 10s branch-2 passed
💚 checkstyle 1m 47s branch-2 passed
💚 shadedjars 5m 18s branch has no errors when building our shaded downstream artifacts.
💚 javadoc 0m 43s branch-2 passed
💙 spotbugs 4m 5s Used deprecated FindBugs config; considering switching to SpotBugs.
💚 findbugs 4m 1s branch-2 passed
_ Patch Compile Tests _
💚 mvninstall 6m 29s the patch passed
💚 compile 1m 7s the patch passed
💔 javac 1m 7s hbase-server generated 1 new + 3 unchanged - 3 fixed = 4 total (was 6)
💔 checkstyle 1m 44s hbase-server: The patch generated 5 new + 286 unchanged - 41 fixed = 291 total (was 327)
💚 whitespace 0m 0s The patch has no whitespace issues.
💚 shadedjars 5m 25s patch has no errors when building our shaded downstream artifacts.
💚 hadoopcheck 20m 21s Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.
💚 javadoc 0m 40s the patch passed
💚 findbugs 4m 7s the patch passed
_ Other Tests _
💚 unit 172m 46s hbase-server in the patch passed.
💚 asflicense 0m 34s The patch does not generate ASF License warnings.
242m 1s
Subsystem Report/Notes
Docker Client=19.03.4 Server=19.03.4 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-806/1/artifact/out/Dockerfile
GITHUB PR #806
Optional Tests dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
uname Linux 2ca3fa813acc 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-806/out/precommit/personality/provided.sh
git revision branch-2 / d1864ae
Default Java 1.8.0_181
javac https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-806/1/artifact/out/diff-compile-javac-hbase-server.txt
checkstyle https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-806/1/artifact/out/diff-checkstyle-hbase-server.txt
Test Results https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-806/1/testReport/
Max. process+thread count 4251 (vs. ulimit of 10000)
modules C: hbase-server U: hbase-server
Console output https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-806/1/console
versions git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11
Powered by Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.

@ndimiduk ndimiduk merged commit f42b2aa into apache:branch-2 Nov 8, 2019
@ndimiduk ndimiduk deleted the 23230-hregionserver-member-visibility-branch-2 branch November 8, 2019 21:56
infraio pushed a commit to infraio/hbase that referenced this pull request Aug 17, 2020
…pache#806)

* Clean up a bunch of private variable leakage into other
   classes. Reduces visibility as much as possible, providing getters
   where access remains necessary or making use of getters that
   already exist. There remains an insidious relationship between
   `HRegionServer` and `RSRpcServices`.
 * Rename `fs` to `dataFs`, `rootDir` as `dataRootDir` so as to
   distinguish from the new `walFs`, `walRootDir` (and make it easier
   to spot bugs).
 * Cleanup or delete a bunch of lack-luster javadoc comments.
 * Delete a handful of methods that are unused according to static
   analysis.
 * Reduces the warning count as reported by IntelliJ from 100 to 7.

Signed-off-by: stack <stack@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants