belliottsmith commented on code in PR #4518:
URL: https://github.com/apache/cassandra/pull/4518#discussion_r2606138351


##########
src/java/org/apache/cassandra/batchlog/BatchlogManager.java:
##########
@@ -451,9 +453,12 @@ public void finish(Set<UUID> hintedNodes)
             {
                 if (accordResult != null)
                 {
-                    TxnResult.Kind kind = accordResult.awaitAndGet().kind();
+                    TxnResult result = accordResult.awaitAndGet();
+                    TxnResult.Kind kind = result.kind();
                     if (kind == retry_new_protocol)
                         throw new RetryOnDifferentSystemException();
+                    if (result.kind() == txn_data)
+                        ((TxnData) result).checkAndThrowValidationException();

Review Comment:
   I haven't looked at this carefully, but are we sure batch replay wants to 
throw an exception here? I'm not sure what the correct semantics are, and I 
won't worry about them much, just want to make sure this is considered.



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