Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-prepare statement throttle #143

Draft
wants to merge 2 commits into
base: scylla-3.x
Choose a base branch
from

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.

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