You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2020/12/02 18:16:17 UTC
[cassandra] branch cassandra-3.0 updated: Ninja fix CASSANDRA-16225
and update changes.
This is an automated email from the ASF dual-hosted git repository.
brandonwilliams pushed a commit to branch cassandra-3.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git
The following commit(s) were added to refs/heads/cassandra-3.0 by this push:
new 2bcbd92 Ninja fix CASSANDRA-16225 and update changes.
2bcbd92 is described below
commit 2bcbd92a25c420b30cc8cc0eb8b266d9889ea973
Author: Brandon Williams <br...@apache.org>
AuthorDate: Wed Dec 2 12:13:40 2020 -0600
Ninja fix CASSANDRA-16225 and update changes.
---
CHANGES.txt | 1 +
src/java/org/apache/cassandra/db/lifecycle/LogTransaction.java | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/CHANGES.txt b/CHANGES.txt
index bb968e8..1955168 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
3.0.24:
+ * Synchronize transaction logs for JBOD (CASSANDRA-16225)
* Fix the counting of cells per partition (CASSANDRA-16259)
* Fix serial read/non-applying CAS linearizability (CASSANDRA-12126)
* Avoid potential NPE in JVMStabilityInspector (CASSANDRA-16294)
diff --git a/src/java/org/apache/cassandra/db/lifecycle/LogTransaction.java b/src/java/org/apache/cassandra/db/lifecycle/LogTransaction.java
index 5d858a9..da92fa2 100644
--- a/src/java/org/apache/cassandra/db/lifecycle/LogTransaction.java
+++ b/src/java/org/apache/cassandra/db/lifecycle/LogTransaction.java
@@ -151,7 +151,10 @@ class LogTransaction extends Transactional.AbstractTransactional implements Tran
*/
void untrackNew(SSTable table)
{
- txnFile.remove(table);
+ synchronized (lock)
+ {
+ txnFile.remove(table);
+ }
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org