Skip to content
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

Misleading error when using nonexistent DC #747

Open
Lorak-mmk opened this issue Jun 20, 2023 · 1 comment · May be fixed by #825
Open

Misleading error when using nonexistent DC #747

Lorak-mmk opened this issue Jun 20, 2023 · 1 comment · May be fixed by #825
Labels
good first issue Good for newcomers

Comments

@Lorak-mmk
Copy link
Collaborator

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

@samuelorji
Copy link
Contributor

stab: #825

@Lorak-mmk Lorak-mmk self-assigned this Nov 15, 2023
@Lorak-mmk Lorak-mmk removed their assignment Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants