You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "dlmarion (via GitHub)" <gi...@apache.org> on 2023/07/06 21:12:03 UTC
[GitHub] [accumulo] dlmarion commented on a diff in pull request #3571: Fix TabletGroupWatcher shutdown order
dlmarion commented on code in PR #3571:
URL: https://github.com/apache/accumulo/pull/3571#discussion_r1254924464
##########
server/manager/src/main/java/org/apache/accumulo/manager/TabletGroupWatcher.java:
##########
@@ -257,11 +257,24 @@ public void run() {
if (state == TabletState.ASSIGNED) {
goal = TabletGoalState.HOSTED;
}
+ if (Manager.log.isTraceEnabled()) {
+ Manager.log.trace(
+ "[{}] Shutting down all Tservers: {}, dependentCount: {} Extent: {}, state: {}, goal: {}",
+ store.name(), manager.serversToShutdown.equals(currentTServers.keySet()),
+ dependentWatcher == null ? "null" : dependentWatcher.assignedOrHosted(), tls.extent,
+ state, goal);
+ }
// if we are shutting down all the tabletservers, we have to do it in order
if ((goal == TabletGoalState.SUSPENDED && state == TabletState.HOSTED)
&& manager.serversToShutdown.equals(currentTServers.keySet())) {
- if (dependentWatcher != null && dependentWatcher.assignedOrHosted() > 0) {
+ // If the stats object in the dependentWatcher is empty, then no tablets
Review Comment:
everything is fine == the tablet state change iterator didn't return anything == nothing needs to be done.
So, in this case nothing was returned in the previous iterator of the metadata table TGW, so `stats` was empty. In this iteration of the root table TGW dependentWatcher == the metadata table TGW and `assignedOrHosted` == 0. So, this conditional is skipped and the root tablet is unloaded.
--
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