Skip to content

Conversation

@swamirishi
Copy link
Contributor

What changes were proposed in this pull request?

As part of the OM Double Buffer flush, an entry corresponding to each transaction flushed should be added to the flushedTransactionsTable in OM rocksdb.

What is the link to the Apache JIRA

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

How was this patch tested?

Additional unit test to be added.

…h write

Change-Id: I65444c0155b471c31ea1283d563d9a948f5e4005
…impact

Change-Id: I3b34e1bb6ca7587243f6eef176c396ca0132dbc3
Change-Id: Iab23d0b1316eac9c376fd06226d234b97e908b4f
Change-Id: I74fed5aebb5c0588cbf97f70a0f9acf94edfa87c
… rocksdb

Change-Id: Ic123641dcb78c53917d9db922cdaace9649d12b0
…Flush

Change-Id: I6effb3bd53ad0c29884d2c32d900a17ebb501243
@adoroszlai
Copy link
Contributor

adoroszlai commented Jul 10, 2025

Please wait for the other PR (#8778) to be merged before opening the dependent one. PRs should not be sitting in the queue.

Comment on lines +348 to +349
omMetadataManager.getFlushedTransactionsTable().deleteRangeWithBatch(batchOperation, 0L,
Math.max(lastTransaction.getIndex() - maxFlushedTransactionGap, 0L));
Copy link
Contributor Author

@swamirishi swamirishi Nov 10, 2025

Choose a reason for hiding this comment

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

This can be used in event notification design as well.

() -> response.checkAndUpdateDB(omMetadataManager, batchOperation));
addToBatchWithTrace(omResponse, () -> {
response.checkAndUpdateDB(omMetadataManager, batchOperation);
omMetadataManager.getFlushedTransactionsTable().putWithBatch(batchOperation, entry.termIndex.getIndex(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

flush as part of double buffer batch

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.

2 participants