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

Make sure policies are not reused between sessions #1594

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

martin-sucha
Copy link
Contributor

Sharing a policy between sessions is not supported because the policy
receives state updates from the session.

Let's update the documentation and add a panic in TokenAwareHostPolicy
constructor. It is better to panic early than to have races and
undefined behavior later.

See also discussion in scylladb#94

Sharing a policy between sessions is not supported because the policy
receives state updates from the session.

Let's update the documentation and add a panic in TokenAwareHostPolicy
constructor. It is better to panic early than to have races and
undefined behavior later.

See also discussion in scylladb#94
@martin-sucha martin-sucha merged commit dfa3d5e into apache:master Apr 13, 2022
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.

None yet

2 participants