belliottsmith commented on code in PR #168:
URL: https://github.com/apache/cassandra-accord/pull/168#discussion_r1954108426


##########
accord-core/src/main/java/accord/coordinate/ExecuteTxn.java:
##########
@@ -192,11 +198,25 @@ protected Action process(Id from, ReadReply reply)
         CommitOrReadNack nack = (CommitOrReadNack) reply;
         switch (nack)
         {
-            default: throw new IllegalStateException();
+            default: throw new UnhandledEnum(nack);
+            case Waiting:
+                if (from.id != node.id().id)
+                    throw new UnhandledEnum(nack);

Review Comment:
   (That said, I could just `break` as it is totally fine to ignore this reply 
from another node really)



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