dkropachev opened a new pull request, #1266:
URL: https://github.com/apache/cassandra-python-driver/pull/1266

   ## Summary
   
   When a connection is closed or becomes defunct, include the `last_error` in 
the `ConnectionShutdown` exception message.
   
   **Before:**
   ```
   cassandra.connection.ConnectionShutdown: Connection to 10.12.33.86:9042 is 
defunct
   ```
   
   **After:**
   ```
   cassandra.connection.ConnectionShutdown: Connection to 10.12.33.86:9042 is 
defunct: [Errno 9] Bad file descriptor
   ```
   
   This helps investigate #614 by preserving the original error reason when 
subsequent operations try to use a closed connection.
   
   ## Test plan
   
   - [x] Added unit tests for `send_msg()` and `wait_for_responses()` verifying 
`last_error` is included
   - [x] All existing unit tests pass


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to