gjacoby126 commented on a change in pull request #652: PHOENIX-5615 Index read
repair should delete all the cells of an inva…
URL: https://github.com/apache/phoenix/pull/652#discussion_r357237983
##########
File path:
phoenix-core/src/main/java/org/apache/phoenix/index/GlobalIndexChecker.java
##########
@@ -245,6 +247,14 @@ private void deleteRowIfAgedEnough(byte[] indexRowKey,
List<Cell> row, long ts,
if ((EnvironmentEdgeManager.currentTimeMillis() - ts) >
ageThreshold) {
Delete del = new Delete(indexRowKey, ts);
if (specific) {
+ // Get all the cells of this row
+ deleteRowScan.withStartRow(indexRowKey, true);
Review comment:
hmm...if you knew for sure what the CFs were you could probbaly do
addFamilyVersion in a loop instead, possibly saving yourself a Scan. You
wouldn't have to worry about dynamic columns (can't be indexed), but you'd need
a PTable for getColumnFamilies, and to know for sure it was up to date as of
the timestamp you're deleting.
I'm going to approve as-is, just thinking out loud here.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services