scylladb / latte

Latency Tester for Apache Cassandra
Apache License 2.0
3 stars 1 forks source link

Clarify 'Overloaded when executing query' error #22

Open mykaul opened 1 week ago

mykaul commented 1 week ago
Stress command completed with bad status 128: 2024-11-18 14:19:23.779: [ERROR][Attempt 10/10] Overloaded when executing query "SELECT id, guild_id, name, topic, position, type, permission_overwrites, bitrate, user_limit, last_pin_timestamp, last_message_id, nsfw, rate_limit_per_user, parent_id, rtc_region, video_quality_mode, default_auto_archive_duration, recipients, owner_id, icon_hash, application_id, thread_metadata, message_count, member_count, flags, proto_data, total_message_sent, total_message_deleted, version FROM custom_d1_w2.channels WHERE id = :id LIMIT 1" with params [BigInt(7203667404725542908)]: Database returned an error: Not enough nodes responded to the read request in time to satisfy required consistency level (consistency: LocalQuorum, received: 1, required: 2, data_present: true), Error message: Operation timed out for custom_d1_w2.channels - received only 1 responses from 2 CL=LOCAL_QUORUM.
error: Function custom returned error: "Failed to execute 'custom' queries: QueryRetriesExceeded: Max retry attempts (10) reached"

What does it mean 'overloaded' ? Is that https://github.com/scylladb/scylladb/blob/master/docs/dev/protocol-extensions.md#rate-limit-error ?

I think it comes from https://github.com/scylladb/latte/blob/67ba5121cd0c072e369158d6c87724054b6576d3/src/scripting/cass_error.rs#L54 but I did not pursue it further.

mykaul commented 1 week ago

And now I see https://github.com/scylladb/scylla-rust-driver/blob/12ceb62140e4c9489d77a376656a87b0fbe37d66/scylla-cql/src/frame/response/error.rs#L215