ctubbsii commented on code in PR #3896:
URL: https://github.com/apache/accumulo/pull/3896#discussion_r1373956430
##########
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java:
##########
@@ -632,7 +632,11 @@ TabletGoalState getGoalState(TabletMetadata tm) {
}
if (tm.hasCurrent() &&
serversToShutdown.contains(tm.getLocation().getServerInstance())) {
- return TabletGoalState.SUSPENDED;
+ if (tgw.canSuspendTablets()) {
+ return TabletGoalState.SUSPENDED;
+ } else {
+ return TabletGoalState.UNASSIGNED;
+ }
Review Comment:
Style tip only (feel free to ignore):
```suggestion
return tgw.canSuspendTablets() ? TabletGoalState.SUSPENDED :
TabletGoalState.UNASSIGNED;
```
--
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]