Skip to content

Conversation

@swamirishi
Copy link
Contributor

What changes were proposed in this pull request?

Currently in prepare batch to verify if an operation is still valid an O(n)check is performed on each and every deleteRange op that has occured after the operation. This is done for each operation in the batch and if all deleteRanges are going to be stacked at the end then the prepare batch can become an O(n2) operation making it unoptimal. This patch aims to create Index data structure to track all the deleteRange operations and provide an efficient way to check if a delete range operation exists or not. The delete ranges would also be popped out of the index structure as and when the delete range op gets executed.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14245

How was this patch tested?

Added unit tests

…nges and simple logic

Change-Id: I7a06f5a427ba7d1c4f760ff70fcb4093abaa3cbd
…earch using prefix count index structure

Change-Id: I704dab8380d1dd35faa2b9453ef90b439937e95b
@swamirishi swamirishi requested a review from jojochuang January 29, 2026 11:34
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.

1 participant