cshannon commented on code in PR #3331:
URL: https://github.com/apache/accumulo/pull/3331#discussion_r1180745990


##########
server/manager/src/main/java/org/apache/accumulo/manager/TabletGroupWatcher.java:
##########
@@ -924,7 +925,8 @@ private void getAssignmentsFromBalancer(TabletLists tLists,
                   lastLocation.getHostPort());
             }
 
-            tLists.assignments.add(new Assignment(assignment.getKey(), 
assignment.getValue()));
+            tLists.assignments.add(new Assignment(assignment.getKey(), 
assignment.getValue(),
+                lastLocation != null ? Location.last(lastLocation) : null));

Review Comment:
   I updated the PR to use the lastLocation value that is part of 
TabletLocationState when doing the metadata updates. Before the change the 
value was always coming from getServer() which is returning getLocation() and 
that could be current, future or last so this makes sure to always use the last 
value from metadata. The old value (getServer()) is still being tracked now as 
I created an UnassignedTablet class to track both that value and lastLocation 
as they are used for different things.



-- 
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