ifesdjeen commented on code in PR #4227:
URL: https://github.com/apache/cassandra/pull/4227#discussion_r2192520325


##########
src/java/org/apache/cassandra/service/accord/AccordService.java:
##########
@@ -243,18 +243,23 @@ public synchronized static void startup(NodeId tcmId)
         }
         instance = as;
 
-        replayJournal(as);
+        // If we hit an error during journal replay, we need to mark ourselves 
unsafe to read, perform full data repair,
+        // and trigger RX before we can continue serving traffic
+        if (replayJournal(as) && 
ClusterMetadata.current().directory.allJoinedEndpoints().size() > 1)
+            
AsyncChains.awaitUninterruptibly(as.node().commandStores().rebootstrap(as.node()));
     }
 
     @VisibleForTesting
-    public static void replayJournal(AccordService as)
+    public static boolean replayJournal(AccordService as)

Review Comment:
   sure good point, inverted this and called the variable `success` instead



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to