-
Notifications
You must be signed in to change notification settings - Fork 60
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
Do not choose less busy connection if query is LWT #208
Do not choose less busy connection if query is LWT #208
Conversation
I thought it might be better to have |
Out of all the LWT fixes this one is the least urgent, imo we can do it properly. What are the problems that you faced? |
I just wasn't sure how to mock |
One thing to consider; is |
@sylwiaszunejko , why we should not do that with LTW queries ? is there core issue on that or something that have details on reasoning ? |
I think I found answer, please correct me if I am wrong, but related issues are: |
bcf5d54
to
a76df35
Compare
I guess that in most cases you can just pass nil |
Greate idea, but it would be better to address it in separate PR since not only connpicker is currently not a publicly availalbe, but also we will have to somehow provide API that would suggest to use certain conn picker in certain conditions, or, maybe have one connpicker to handle all the cases. |
a76df35
to
14ad573
Compare
@sylwiaszunejko, I made attempt to make |
I wasnt suggesting to make it publicly available. If it isn't - great, we don't have to worry about breaking changes. |
14ad573
to
3d415ec
Compare
@dkropachev I used the code proposed by you just changed two lines to simplify |
There is a code in gocql that selects another connection to a node if chosen connection is too busy (has less than half available stream ids). We should not do this with LWT.
3d415ec
to
39010d2
Compare
There is a code in gocql that selects another connection to a node if chosen connection is too busy (has less than half available stream ids).
We should not do this with LWT.