Exceptions during automatic re-preparation are not converted to "nice" exceptions

Description

To reproduce, do the following:

  • Prepare a statement

  • Drop the table that the statement acts on

  • Execute the prepared statement

  • A cassandra.protocol.InvalidRequestException will be raised instead of a cassandra.InvalidRequest

I believe the correct fix is to conditionally call response.to_exception() in ResponseFuture._execute_after_prepare(), similar to what we do in RF._set_result().

Environment

None

Pull Requests

None

Activity

Show:
Adam Holmberg
May 11, 2015, 7:58 PM
Michael Penick
May 15, 2015, 8:53 PM

+1

Fixed

Assignee

Adam Holmberg

Reporter

Tyler Hobbs

Fix versions

Labels

None

Reproduced in

None

PM Priority

C

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Pull Request

None

Priority

Minor
Configure