Skip to content

PHOENIX-5615 Index read repair should delete all the cells of an inva…#652

Closed
kadirozde wants to merge 1 commit intoapache:masterfrom
kadirozde:5615
Closed

PHOENIX-5615 Index read repair should delete all the cells of an inva…#652
kadirozde wants to merge 1 commit intoapache:masterfrom
kadirozde:5615

Conversation

@kadirozde
Copy link
Copy Markdown
Contributor

…lid unverified row

@kadirozde kadirozde requested a review from gjacoby126 December 12, 2019 13:10
Delete del = new Delete(indexRowKey, ts);
if (specific) {
// Get all the cells of this row
deleteRowScan.withStartRow(indexRowKey, true);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is safer to retrieve the columns to find out their timestamps and delete markers for these timestamps, at least for now. We can think about your suggestion in future.

@kadirozde kadirozde closed this Dec 12, 2019
@kadirozde kadirozde deleted the 5615 branch December 12, 2019 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants