Skip to content

Re-preparing of prepared statements should be throttled and limited #126

Open
@avelanarius

Description

@avelanarius

As we observed in issue #124, if there is some problem server-side with preparing statements, the driver will infinitely retry preparing the statement, without any delays between retries.

This could happen in two cases: if there is a bug in Scylla/Cassandra (like scylladb/scylladb#10440) or if the prepared statement cache is too small to hold all prepared statements of a batch statement.

In such cases, the driver should throw an Exception, instead of endlessly looping and causing a massive load onto Scylla.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions