DomGarguilo commented on code in PR #4242:
URL: https://github.com/apache/accumulo/pull/4242#discussion_r1490095844


##########
core/src/main/java/org/apache/accumulo/core/fate/accumulo/AccumuloStore.java:
##########
@@ -259,7 +259,8 @@ public void push(Repo<T> repo) throws 
StackOverflowException {
         throw new StackOverflowException("Repo stack size too large");
       }
 
-      FateMutator<T> fateMutator = newMutator(fateId);
+      FateMutator<T> fateMutator =
+          newMutator(fateId).requireStatus(TStatus.IN_PROGRESS, TStatus.NEW);

Review Comment:
   ```
   java.lang.IllegalStateException: Failed to write mutation REJECTED 
org.apache.accumulo.core.data.ConditionalMutation@36923a7c
        at 
org.apache.accumulo.core.fate.accumulo.FateMutatorImpl.mutate(FateMutatorImpl.java:170)
 ~[classes/:?]
        at 
org.apache.accumulo.core.fate.accumulo.AccumuloStore$FateTxStoreImpl.push(AccumuloStore.java:264)
 ~[classes/:?]
        at 
org.apache.accumulo.core.fate.WrappedFateTxStore.push(WrappedFateTxStore.java:45)
 ~[classes/:?]
        at 
org.apache.accumulo.core.logging.FateLogger$LoggingFateTxStore.push(FateLogger.java:57)
 ~[classes/:?]
        at org.apache.accumulo.core.fate.Fate.seedTransaction(Fate.java:347) 
~[classes/:?]
        at 
org.apache.accumulo.manager.FateServiceHandler.executeFateOperation(FateServiceHandler.java:254)
 ~[classes/:?]
        at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
 ~[?:?]
        at java.base/java.lang.reflect.Method.invoke(Method.java:577) ~[?:?]
        at 
org.apache.accumulo.core.trace.TraceUtil.lambda$wrapService$0(TraceUtil.java:202)
 ~[classes/:?]
        at jdk.proxy2/jdk.proxy2.$Proxy27.executeFateOperation(Unknown Source) 
~[?:?]
        at 
org.apache.accumulo.core.manager.thrift.FateService$Processor$executeFateOperation.getResult(FateService.java:561)
   ```



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