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

Alan Boudreault

Fix versions

None

Labels

None

Reproduced in

None

PM Priority

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

Size

None

Sprint

Priority

Major
Configure