Driver is unable to re-prepare request after host became UP

Description

Recently we began to use prepared requests. Everything works fine, requests preparing and executing correctly.

The problem is when cassandra node is restarted, the driver throws an error when trying to re-prepare previously prepared and executed request.

 

 

The error says that we haven't specified keyspace for the request, but it was specified for the whole session. And somehow the driver was able to execute the query in the first place.

At the same time, it seems that everything is OK. Maybe because prepared statement was still in Cassandra's cache even after restart (I didn't know that):

 

 

Environment

Cassandra 3.11.4

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Лев Димов

Labels

None

Reproduced in

3.11.0

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

Pull Request

None

Epic Link

None

Sprint

None

Size

None

Affects versions

Priority

Major
Configure