-
Notifications
You must be signed in to change notification settings - Fork 495
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
Session: Fixes token being sent if request had a different consistency level on Gateway mode #2965
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "requestHasConsistencySet" needs to check whether it is read-only operation (or that condition needs to be added to sessionConsistency calculation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks!
Description
On Gateway mode, if the account is Session consistency but the user is sending a request where the
ItemRequestOptions
has a ConsistencyLevel != Session, we were sending the session token anyway.This PR makes it so the request level configuration is honored over the account level configuration only on read requests.
Type of change
Please delete options that are not relevant.