You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2021/11/16 19:21:05 UTC

[GitHub] [accumulo] milleruntime commented on a change in pull request #2349: Improve logging message and comments if tablet overlap occurs.

milleruntime commented on a change in pull request #2349:
URL: https://github.com/apache/accumulo/pull/2349#discussion_r750581288



##########
File path: server/tserver/src/main/java/org/apache/accumulo/tserver/ThriftClientHandler.java
##########
@@ -1433,8 +1432,11 @@ public void loadTablet(TInfo tinfo, TCredentials credentials, String lock,
             all.remove(extent);
 
             if (!all.isEmpty()) {
-              log.error("Tablet {} overlaps previously assigned {} {} {}", extent,
-                  unopenedOverlapping, openingOverlapping, onlineOverlapping + " " + all);
+              log.error(
+                  "Tablet {} overlaps a previously assigned tablet. It is possibly due to a recent split. "
+                      + "Possible overlapping tablets:\n" + "Unopened tablet:  {}\n"
+                      + "Opening tablet:   {}\n" + "Online tablet:    {}",

Review comment:
       I think it is generally good practice to keep the log message to one line. Some tools may expect log messages to be on one line. If you did that, you could shorten the message a lot, not having to worry about including extra spaces and when you list the "Possible overlapping tablets" you don't need print "tablet" for each type.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org