-
Notifications
You must be signed in to change notification settings - Fork 59
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
Use newFramerWithExts
instead of newFramer
to utilize protocol extensions
#173
Use newFramerWithExts
instead of newFramer
to utilize protocol extensions
#173
Conversation
One small nit, a couple suggestions regarding the commit description:
The commit title is a bit too long (for example longer than 50/72 rule), but I admit that it's hard to word it better due to long
Suggestion: When LWT optimization was implemented in gocql (PR number), all
Nit:
Nit: it's not immediately clear that "that" refers to |
Maybe it would be good to open an issue for it and set this PR as fixing it. |
fee3bb2
to
e9f8eab
Compare
@avelanarius I made the changes to the commit and PR description. I am not sure how to change the title to be short but meaningful, do you have any suggestions or should I leave it as it is? |
@roydahan I have created an issue. |
…ions When LWT optimization was implemented in gocql (scylladb#49), all `newFramer` calls were replaced with `newFramerWithExts` calls. Previously, during the upstream merging the code using `newFramer` was added (scylladb#109) and it was forgotten to replace it with `newFramerWithExts`. That way, the `flagLWT` field was set to `0` by default, causing the driver to consider every query executed as a LWT query. The issue was not immediately noticed because the only difference in behavior occurs when we want to use `ShuffleReplicas()` in `TokenAwareHostPolicy`. This commit fixes the issue by replacing `newFramer` with `newFramerWithExts`. Fixes: scylladb#174
e9f8eab
to
5b70c0c
Compare
@avelanarius Should I make some more changes to this PR or can we merge it as it is? |
@sylwiaszunejko - can you quantify the performance impact? Is it something we've measured? |
@mykaul We do not have any measure for the performance impact. As stated in the PR description, the only difference in behavior occurs when we use |
When LWT optimization was implemented in gocql (#49), all
newFramer
calls were replaced withnewFramerWithExts
calls.Previously, during the upstream merging the code using
newFramer
was added (#109) and it was forgotten to replace it withnewFramerWithExts
. That way, theflagLWT
field was set to0
by default, causing the driver to consider every query executed as a LWT query.The issue was not immediately noticed because the only difference in behavior occurs when we want to use
ShuffleReplicas()
inTokenAwareHostPolicy
.This PR fixes the issue by replacing
newFramer
withnewFramerWithExts
.Fixes: #174