dcapwell commented on code in PR #3785:
URL: https://github.com/apache/cassandra/pull/3785#discussion_r1913636450


##########
src/java/org/apache/cassandra/db/filter/RowFilter.java:
##########
@@ -536,7 +536,7 @@ protected ByteBuffer getValue(TableMetadata metadata, 
DecoratedKey partitionKey,
                     return row.clustering().bufferAt(column.position());
                 default:
                     Cell<?> cell = row.getCell(column);
-                    return cell == null ? null : cell.buffer();
+                    return cell == null || cell.isTombstone() || 
!cell.isLive(nowInSec) ? null : cell.buffer();

Review Comment:
   backport
   
   ```
   commit 4fc8bb29fcda935728d8863a4499fa0e9d924b82
   Author: Sunil Ramchandra Pawar <[email protected]>
   Date:   Tue Jan 7 08:58:48 2025 -0800
   
       IndexOutOfBoundsException when accessing partition where the column was 
deleted
   
       patch by Sunil Ramchandra Pawar; reviewed by Caleb Rackliffe, David 
Capwell for CASSANDRA-20108
   ```
   
   as these tests detect this issue



-- 
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]

Reply via email to