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



##########
File path: 
server/tserver/src/main/java/org/apache/accumulo/tserver/ThriftClientHandler.java
##########
@@ -1433,8 +1431,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 (though it tries to ignore them as a reason 
to throw this error.) ",
+                  extent + "Possible overlapping tablets:\n" + "Unopened 
tablet:  {}\n",
+                  unopenedOverlapping + "Opening tablet:   {}\n",
+                  openingOverlapping + "Online tablet:    {}\n", 
onlineOverlapping);

Review comment:
       I don't think this will print out how I think you intend it to. This 
might be closer to what you want:
   ```suggestion
       log.error(
           "Tablet {} overlaps a previously assigned tablet. It is possibly due 
to a recent split. "
               + "Possible overlapping tablets:\nUnopened tablet:  {}\nOpening 
tablet:   {}"
               + "\nOnline tablet:    {}",
           extent, unopenedOverlapping, openingOverlapping, onlineOverlapping);
   ```
   With my changes, the output will look like this:
   ```
   ERROR: Tablet EXTENT overlaps a previously assigned tablet. It is possibly 
due to a recent split. Possible overlapping tablets:
   Unopened tablet:  UNOPENED
   Opening tablet:   OPENING
   Online tablet:    ONLINE
   ```




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to