You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by dc...@apache.org on 2022/12/19 21:14:23 UTC
[cassandra] 01/04: Ninja for CASSANDRA-17719: When AccordCommand.setPartialTxn is called, make sure to update this.kind in order to make tests stable
This is an automated email from the ASF dual-hosted git repository.
dcapwell pushed a commit to branch cep-15-accord
in repository https://gitbox.apache.org/repos/asf/cassandra.git
commit 31d5d73b32c201ec6acee4b521ddf0967a1f1cbb
Author: David Capwell <dc...@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-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org