Skip to content

HBASE-22283 Print row and table information when failed to get region location - #181

Merged
carp84 merged 3 commits into
apache:masterfrom
carp84:hbase-22283
Apr 24, 2019
Merged

HBASE-22283 Print row and table information when failed to get region location#181
carp84 merged 3 commits into
apache:masterfrom
carp84:hbase-22283

Conversation

@carp84

Copy link
Copy Markdown
Member

What is the purpose of the change

This PR refines the client logging message on RpcRetryingCallerWithReadReplicas.getRegionLocations for easier debugging.

Brief change log

  • Add row and table name into the logging message of RpcRetryingCallerWithReadReplicas.getRegionLocations when failed to get region location or the location got is null.

Verifying this change

This change could be verified by existing tests.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
  • The runtime code path (performance sensitive): (no)
  • Anything that affects deployment or recovery: AssignmentManager, WAL system, ZooKeeper: (no)
  • File system relative (HDFS/S3): (no)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)

@Apache-HBase

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec276Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
-0test4tests0The 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.
_ master Compile Tests _
+1mvninstall323master passed
+1compile30master passed
+1checkstyle40master passed
+1shadedjars337branch has no errors when building our shaded downstream artifacts.
+1findbugs77master passed
+1javadoc27master passed
_ Patch Compile Tests _
+1mvninstall313the patch passed
+1compile31the patch passed
+1javac31the patch passed
-1checkstyle40hbase-client: The patch generated 1 new + 7 unchanged - 1 fixed = 8 total (was 8)
+1whitespace0The patch has no whitespace issues.
+1shadedjars341patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck642Patch does not cause any errors with Hadoop 2.7.4 or 3.0.0.
+1findbugs87the patch passed
+1javadoc28the patch passed
_ Other Tests _
+1unit229hbase-client in the patch passed.
+1asflicense13The patch does not generate ASF License warnings.
2900
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-181/1/artifact/out/Dockerfile
GITHUB PR#181
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux f95f81aa8034 4.4.0-145-generic #171-Ubuntu SMP Tue Mar 26 12:43:40 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / b0075a1
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
checkstylehttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-181/1/artifact/out/diff-checkstyle-hbase-client.txt
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-181/1/testReport/
Max. process+thread count293 (vs. ulimit of 10000)
modulesC: hbase-client U: hbase-client
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-181/1/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@carp84

Copy link
Copy Markdown
MemberAuthor

Checking hbase-checkstyle/src/main/resources/hbase/checkstyle.xml we could see the rule is to put all shaded classes at end of the class, which was not the case of RpcRetryingCallerWithReadReplicas, and we will fix it in this PR.

 <module name="ImportOrder">
<property name="groups" value="*,org.apache.hbase.thirdparty,org.apache.hadoop.hbase.shaded"/>
<property name="option" value="top" />
<property name="ordered" value="true"/>
<property name="sortStaticImportsAlphabetically" value="true"/>
</module>

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec52Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
-0test4tests0The 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.
_ master Compile Tests _
+1mvninstall299master passed
+1compile29master passed
+1checkstyle38master passed
+1shadedjars338branch has no errors when building our shaded downstream artifacts.
+1findbugs76master passed
+1javadoc27master passed
_ Patch Compile Tests _
+1mvninstall310the patch passed
+1compile30the patch passed
+1javac30the patch passed
+1checkstyle39hbase-client: The patch generated 0 new + 5 unchanged - 3 fixed = 5 total (was 8)
+1whitespace0The patch has no whitespace issues.
+1shadedjars347patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck645Patch does not cause any errors with Hadoop 2.7.4 or 3.0.0.
+1findbugs88the patch passed
+1javadoc28the patch passed
_ Other Tests _
+1unit226hbase-client in the patch passed.
+1asflicense13The patch does not generate ASF License warnings.
2654
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-181/2/artifact/out/Dockerfile
GITHUB PR#181
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 7fc026d3d4d4 4.4.0-145-generic #171-Ubuntu SMP Tue Mar 26 12:43:40 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / b0075a1
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-181/2/testReport/
Max. process+thread count295 (vs. ulimit of 10000)
modulesC: hbase-client U: hbase-client
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-181/2/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@carp84

Copy link
Copy Markdown
MemberAuthor

pre-commit check looks good, waiting for review, thanks.

@saintstacksaintstack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Patch looks good except for part where we are pre-making error string though we only use it when a problem. Do we have to do this? Can we not just make the error string when an error? Thanks @carp84

@carp84

Copy link
Copy Markdown
MemberAuthor

Thanks for review @saintstack, have just updated the PR following the suggestion.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
0reexec45Docker mode activated.
_ Prechecks _
+1hbaseanti0Patch does not have any anti-patterns.
+1@author0The patch does not contain any @author tags.
-0test4tests0The 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.
_ master Compile Tests _
+1mvninstall317master passed
+1compile30master passed
+1checkstyle39master passed
+1shadedjars340branch has no errors when building our shaded downstream artifacts.
+1findbugs78master passed
+1javadoc28master passed
_ Patch Compile Tests _
+1mvninstall307the patch passed
+1compile31the patch passed
+1javac31the patch passed
+1checkstyle37hbase-client: The patch generated 0 new + 5 unchanged - 3 fixed = 5 total (was 8)
+1whitespace0The patch has no whitespace issues.
+1shadedjars345patch has no errors when building our shaded downstream artifacts.
+1hadoopcheck625Patch does not cause any errors with Hadoop 2.7.4 or 3.0.0.
+1findbugs89the patch passed
+1javadoc26the patch passed
_ Other Tests _
+1unit236hbase-client in the patch passed.
+1asflicense12The patch does not generate ASF License warnings.
2647
SubsystemReport/Notes
DockerClient=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-181/3/artifact/out/Dockerfile
GITHUB PR#181
Optional Testsdupname asflicense javac javadoc unit findbugs shadedjars hadoopcheck hbaseanti checkstyle compile
unameLinux 8bbd881fa6f8 4.4.0-145-generic #171-Ubuntu SMP Tue Mar 26 12:43:40 UTC 2019 x86_64 GNU/Linux
Build toolmaven
Personality/testptch/patchprocess/precommit/personality/provided.sh
git revisionmaster / 1584d24
mavenversion: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Default Java1.8.0_181
findbugsv3.1.11
Test Resultshttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-181/3/testReport/
Max. process+thread count294 (vs. ulimit of 10000)
modulesC: hbase-client U: hbase-client
Console outputhttps://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-181/3/console
Powered byApache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@saintstacksaintstack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, it dupes code but this is better I think. Thanks @carp84

@carp84
carp84 merged commit ab3d6cf into apache:masterApr 24, 2019
@carp84

Copy link
Copy Markdown
MemberAuthor

Thanks @saintstack, merged into master and manually pushed into branch-1/branch-2

Sign up for freeto 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.

3 participants

@carp84@Apache-HBase@saintstack