-
Notifications
You must be signed in to change notification settings - Fork 129
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
Expose request coordinator #1287
base: main
Are you sure you want to change the base?
Conversation
It was a leftover from the deserialization refactor.
|
7a45481
to
c2860f5
Compare
Why did you introduce new struct ( |
|
Just |
Is there really an API in cpp-driver to retrieve a shard that the request was sent to? |
No, I might have phrased it wrong. Now that I think of it, I did, because there are no shards in Cassandra. What I meant is just that the request coordinator is identified via ip + port ( |
Than I don't understand why |
We can of course consider wrapping |
But the |
Thanks for spotting the bug! |
Is it a bug? |
Is it not? Is the assumption that all nodes in the cluster expose the same port correct? |
I don't know. If it is not, how can we discover other ports? |
OK, so in an internal discussion we established that all nodes shall follow the same configuration, including the native_transport_port. Thus, this is not a bug. |
|
This draft is the first attempt to implement #1030. For now, only address is exposed; host ID is not, as it's not accessible in Connection (yet?).
Fixes: #1030
Pre-review checklist
./docs/source/
.Fixes:
annotations to PR description.