Runtian commented on code in PR #4358:
URL: https://github.com/apache/cassandra/pull/4358#discussion_r2360866654


##########
src/java/org/apache/cassandra/service/paxos/PaxosRepair.java:
##########
@@ -294,8 +299,14 @@ else if (isAcceptedButNotCommitted || 
isPromisedButNotAccepted || latestWitnesse
                 // Since this operation is not urgent, and we can piggy-back 
on other paxos operations
                 if (logger.isTraceEnabled())
                     logger.trace("PaxosRepair of {} found incomplete promise 
or proposal; preparing stale ballot {}", partitionKey(), 
Ballot.toString(ballot));
+                SinglePartitionReadCommand readCommand = null;
+                if (isAcceptedButNotCommitted && table.strictMVEnabled() && 
!latestAccepted.update.isEmpty())
+                {
+                    assert latestAccepted.update.rowCount() == 1 : "latest 
accepted with multiple rows: " + latestAccepted.update.rowCount();

Review Comment:
   It is possible in case of bugs only.



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