Elia-Renzoni opened a new pull request, #1670: URL: https://github.com/apache/ratis/pull/1670
## What changes were proposed in this pull request? This PR introduces a fail-fast mechanism for linearizable reads and adds a new configuration option to enable it. The mechanism is based on the difference between `lastAppliedIndex` and `readIndex`. If this difference is greater than or equal to the configured gap threshold Ratis throws an exception, causing the read operation to fail. The goal is to mitigate edge cases where a linearizable read may block for too long while waiting to be processed, potentially occupying a handler thread and affecting other queued read and write requests. ## What is the link to the Apache JIRA https://issues.apache.org/jira/projects/RATIS/issues/RATIS-2377?filter=allopenissues ## How was this patch tested? unit tests -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
