diff --git a/CHANGES.txt b/CHANGES.txt index 4c0c4d8496..10fedf4bbc 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -26,6 +26,7 @@ 2.0.5 + * Add ks.cf names to tombstone logging (CASSANDRA-6597) * Use LOCAL_QUORUM for LWT operations at LOCAL_SERIAL (CASSANDRA-6495) * Wait for gossip to settle before accepting client connections (CASSANDRA-4288) * Delete unfinished compaction incrementally (CASSANDRA-6086) diff --git a/src/java/org/apache/cassandra/db/filter/SliceQueryFilter.java b/src/java/org/apache/cassandra/db/filter/SliceQueryFilter.java index 52fbb04393..300a21d276 100644 --- a/src/java/org/apache/cassandra/db/filter/SliceQueryFilter.java +++ b/src/java/org/apache/cassandra/db/filter/SliceQueryFilter.java @@ -207,7 +207,8 @@ public class SliceQueryFilter implements IDiskAtomFilter if (respectTombstoneThresholds() && columnCounter.ignored() > DatabaseDescriptor.getTombstoneFailureThreshold()) { Tracing.trace("Scanned over {} tombstones; query aborted (see tombstone_fail_threshold)", DatabaseDescriptor.getTombstoneFailureThreshold()); - logger.error("Scanned over {} tombstones; query aborted (see tombstone_fail_threshold)", DatabaseDescriptor.getTombstoneFailureThreshold()); + logger.error("Scanned over {} tombstones in {}.{}; query aborted (see tombstone_fail_threshold)", + DatabaseDescriptor.getTombstoneFailureThreshold(), container.metadata().ksName, container.metadata().cfName); throw new TombstoneOverwhelmingException(); } @@ -216,7 +217,8 @@ public class SliceQueryFilter implements IDiskAtomFilter Tracing.trace("Read {} live and {} tombstoned cells", columnCounter.live(), columnCounter.ignored()); if (respectTombstoneThresholds() && columnCounter.ignored() > DatabaseDescriptor.getTombstoneWarnThreshold()) - logger.warn("Read {} live and {} tombstoned cells (see tombstone_warn_threshold)", columnCounter.live(), columnCounter.ignored()); + logger.warn("Read {} live and {} tombstoned cells in {}.{} (see tombstone_warn_threshold)", + columnCounter.live(), columnCounter.ignored(), container.metadata().ksName, container.metadata().cfName); } protected boolean respectTombstoneThresholds()