Handle prepared id mismatch when repreparing on the fly

Description

CASSANDRA-15252: if you switched keyspace after a statement was prepared, and the statement needs to get reprepared on the fly, the id doesn't match and the driver goes into a reprepare loop.

We're adding a check to fail fast in the driver:

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Joao Reis

Labels

None

Reproduced in

None

PM Priority

None

Fix versions

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Epic Link

None

Sprint

Size

None

Priority

Major
Configure