maedhroz commented on a change in pull request #1199:
URL: https://github.com/apache/cassandra/pull/1199#discussion_r708713985
##########
File path: src/java/org/apache/cassandra/db/SinglePartitionReadCommand.java
##########
@@ -957,6 +958,23 @@ private ClusteringIndexNamesFilter
reduceFilter(ClusteringIndexNamesFilter filte
}
NavigableSet<Clustering<?>> toRemove = null;
+
+ DeletionInfo deletionInfo = result.deletionInfo();
+
+ if (deletionInfo.hasRanges())
+ {
+ for (Clustering<?> clustering : clusterings)
+ {
+ RangeTombstone rt = deletionInfo.rangeCovering(clustering);
+ if (rt != null && rt.deletionTime().deletes(sstableTimestamp))
+ {
+ if (toRemove == null)
+ toRemove = new TreeSet<>(result.metadata().comparator);
+ toRemove.add(clustering);
+ }
+ }
+ }
Review comment:
This is required because there are row deletions that were converted to
range tombstones in CASSANDRA-15369, and therefore aren't picked up by the
logic in `isRowComplete()`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]