You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ma...@apache.org on 2021/10/04 20:18:28 UTC

[cassandra] branch cassandra-4.0 updated (3660a58 -> 1aae946)

This is an automated email from the ASF dual-hosted git repository.

maedhroz pushed a change to branch cassandra-4.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git.


    from 3660a58  Merge branch 'cassandra-3.11' into cassandra-4.0
     new 35446dc  Elaborate on why we need to recycle CL segments when dropping tables
     new a136517  Merge branch 'cassandra-3.0' into cassandra-3.11
     new 1aae946  Merge branch 'cassandra-3.11' into cassandra-4.0

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../cassandra/db/commitlog/AbstractCommitLogSegmentManager.java       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


[cassandra] 01/01: Merge branch 'cassandra-3.11' into cassandra-4.0

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

maedhroz pushed a commit to branch cassandra-4.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git

commit 1aae9468ed3b061232c06f17091e0be1a8e50960
Merge: 3660a58 a136517
Author: Caleb Rackliffe <ca...@gmail.com>
AuthorDate: Mon Oct 4 15:03:01 2021 -0500

    Merge branch 'cassandra-3.11' into cassandra-4.0

 .../cassandra/db/commitlog/AbstractCommitLogSegmentManager.java       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --cc src/java/org/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager.java
index 28462ff,18b4374..cdf96cd
--- a/src/java/org/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager.java
+++ b/src/java/org/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager.java
@@@ -277,9 -279,11 +277,11 @@@ public abstract class AbstractCommitLog
      /**
       * Switch to a new segment, regardless of how much is left in the current one.
       *
-      * Flushes any dirty CFs for this segment and any older segments, and then discards the segments
+      * Flushes any dirty CFs for this segment and any older segments, and then discards the segments.
+      * This is necessary to avoid resurrecting data during replay if a user creates a new table with
+      * the same name and ID. See CASSANDRA-16986 for more details.
       */
 -    void forceRecycleAll(Iterable<UUID> droppedCfs)
 +    void forceRecycleAll(Iterable<TableId> droppedTables)
      {
          List<CommitLogSegment> segmentsToRecycle = new ArrayList<>(activeSegments);
          CommitLogSegment last = segmentsToRecycle.get(segmentsToRecycle.size() - 1);

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org