Open wprzytula opened 1 month ago
This should be in line with #738 requirements about enforcing a particular coordinator.
This can already be done by setting a custom LBP on the query, which yields only 1 element.
This can already be done by setting a custom LBP on the query, which yields only 1 element.
Yes, it can be done, but it's fairly inconvenient. The driver's duty is to provide convenient and shorthands to operate with Scylla, and by cpp-driver's documentation (see Motivation) the shorthand for setting an explicit coordinator for a statement is useful.
Motivation
cpp-driver provides an option to explicitly set a node to be coordinator for a specific request. It argues for that option this way:
Solution
Let's expose a setter for explicit coordinator - consider identifying by address or host_id. If an explicit coordinator is set for a statement, then:
RetryNextNode
decisions should be then changed intoRetrySameNode
or intoDontRetry
).