Open Lorak-mmk opened 1 year ago
When using DefaultPolicy::builder().prefer_datacenter(dc) with nonexistent datacenter the driver returns a very misleading erro when trying to execute a query: Error: ProtocolError("Empty query plan - driver bug!").
DefaultPolicy::builder().prefer_datacenter(dc)
Error: ProtocolError("Empty query plan - driver bug!")
Full reproducer: https://github.com/fee-mendes/rust-driver-example/blob/main/metric-collector Driver version: 0.8.1, as can be seen in above reproducer.
To reproduce, simply run cargo run --bin metric-collector <scylla_ip> this_dc_does_not_exist
cargo run --bin metric-collector <scylla_ip> this_dc_does_not_exist
stab: https://github.com/scylladb/scylla-rust-driver/pull/825
When using
DefaultPolicy::builder().prefer_datacenter(dc)
with nonexistent datacenter the driver returns a very misleading erro when trying to execute a query:Error: ProtocolError("Empty query plan - driver bug!")
.Full reproducer: https://github.com/fee-mendes/rust-driver-example/blob/main/metric-collector Driver version: 0.8.1, as can be seen in above reproducer.
To reproduce, simply run
cargo run --bin metric-collector <scylla_ip> this_dc_does_not_exist