Skip to content

Conversation

Bouncheck
Copy link
Collaborator

I still need to further test this, but code is more or less how I want to do this.

Limits number of reprepares done within single SpeculativeExecution.
In case of going over the limit sets an exception and lets RequestHandler
act accordingly to RetryPolicy.
Should help break endless loops of repreparing statements.
@dkropachev
Copy link
Collaborator

@Bouncheck , let's review it, it looks good, only my concern is that RequestHandler.onSet is run for different connections and requests and if between these requests RequestHandler keeps state you are going to have problem with accumulating errors are reaching limit, which is going to make this instance of RequestHandler unoperational.

@dkropachev dkropachev force-pushed the scylla-3.x branch 5 times, most recently from 4484961 to 1f490ee Compare August 21, 2025 14:52
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