HDDS-15065. Reduce Ratis snapshot gap to fix SCM flush delay.#10100
HDDS-15065. Reduce Ratis snapshot gap to fix SCM flush delay.#10100priyeshkaratha wants to merge 2 commits intoapache:masterfrom
Conversation
aaff6af to
e34f417
Compare
|
@sumitagrawl , for HDDS-8508(#4683), what was the consideration at that time, that triggers snapshot instead of calls transactionBuffer.flush() in SCMHATransactionBufferMonitorTask.run() ? |
There is a discussion for setting up to '1' but after discussion with @szetszwo , its not practical scenario to have less than 1024 transaction to be flushed as it keeps having updated. @szetszwo Please share your opinion |
|
@sumitagrawl @ChenSammi @szetszwo The The fix is to either:
|
|
@priyeshkaratha , can you try call transactionBuffer.flush() in SCMHATransactionBufferMonitorTask.run()? per the offline discussion with Sumit. |
@sumitagrawl , What was the discussion? Could you remind me? |
0bc0dfe to
9a8d822
Compare
What changes were proposed in this pull request?
This change addresses the SCM flush delay caused by the minimum transaction gap enforced in Apache Ratis.
Previously, even with the timer-based flush mechanism, DB updates were effectively delayed due to the default snapshot creation gap (~1024 transactions).
Changes:
Impact:
What is the link to the Apache JIRA
HDDS-15065
How was this patch tested?
Tested using modified testcases.