This is an automated email from the ASF dual-hosted git repository. maedhroz pushed a commit to branch cep-15-accord in repository https://gitbox.apache.org/repos/asf/cassandra.git
commit ab1ffc85c325728d75bf8cd3e8d789a8f2b9c503 Author: David Capwell <dcapw...@apache.org> AuthorDate: Fri Dec 16 11:18:47 2022 -0800 Ninja for CASSANDRA-17719: When AccordCommand.setPartialTxn is called, make sure to update this.kind in order to make tests stable --- src/java/org/apache/cassandra/service/accord/AccordCommand.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/org/apache/cassandra/service/accord/AccordCommand.java b/src/java/org/apache/cassandra/service/accord/AccordCommand.java index f27b45bb4c..2b4f36863d 100644 --- a/src/java/org/apache/cassandra/service/accord/AccordCommand.java +++ b/src/java/org/apache/cassandra/service/accord/AccordCommand.java @@ -497,6 +497,8 @@ public class AccordCommand extends Command implements AccordState<TxnId> public void setPartialTxn(PartialTxn txn) { this.partialTxn.set(txn); + //TODO remove. This was added to fix tests after Partial Replication was added, this was added for tests + this.kind.set(txn.kind()); } @Override --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org