Swaminathan Balachandran created HDDS-14239:
-----------------------------------------------
Summary: Simplify Prepare Batch looping for DeleteRange Op
processing in RDBBatchOperation
Key: HDDS-14239
URL: https://issues.apache.org/jira/browse/HDDS-14239
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Swaminathan Balachandran
Assignee: Swaminathan Balachandran
Currently the PrepareBatchOperation looping is very convoluted. It also misses
a case where a putKey/deleteKey can get added even though a deleteRange has
been executed in the next batch after the following continuousDeleteRange
batch. The following example will explain the scenario better.
1) Put Key1
2) DeleteRange Key2 - Key5
3) Put Key2
4) DeleteRange Key1 - Key4
Here the operation 1 should ideally be cancelled by Op4. But currently both Op1
& OP4 gets executed however it would be more optimal to just execute Op4 & Op1
is redundant.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]