You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "keith-turner (via GitHub)" <gi...@apache.org> on 2023/08/31 22:14:41 UTC

[GitHub] [accumulo] keith-turner commented on a diff in pull request #3728: No chop and no split deletions

keith-turner commented on code in PR #3728:
URL: https://github.com/apache/accumulo/pull/3728#discussion_r1312336399


##########
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java:
##########
@@ -649,16 +648,6 @@ TabletGoalState getGoalState(TabletLocationState tls, MergeInfo mergeInfo) {
               break;
             case STARTED:
             case SPLITTING:
-              return TabletGoalState.HOSTED;
-            case WAITING_FOR_CHOPPED:
-              if (tls.getState(tserverSet.getCurrentServers()).equals(TabletState.HOSTED)) {
-                if (tls.chopped) {
-                  return TabletGoalState.UNASSIGNED;
-                }
-              } else if (tls.chopped && tls.walogs.isEmpty()) {
-                return TabletGoalState.UNASSIGNED;
-              }
-

Review Comment:
   > Unfortunately, we (inconveniently) chose to use the ordinal to serialize the merge info for fate operations, so we have to be very careful not to cause a problem by changing the ordinals and interpreting them incorrectly across an upgrade. If we hadn't done that (which, in general, is a bad idea), then we could have just removed it entirely, since it's only used internally, and we expect all the jars we use to be upgraded at the same time.
   
   Accumulo used to not upgrade if there are outstanding FATE ops. Reasoning about FATEs operations running across an upgrade is not easy to do, its also really difficult to test.  So we should be able to remove this enum.  If Accumulo is no longer preventing upgrade when there are outstanding FATE ops, then I would consider that a bug.



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