This is an automated email from the ASF dual-hosted git repository.
ycai pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-sidecar.git
The following commit(s) were added to refs/heads/trunk by this push:
new 109d9ab CASSANDRASC-62: Fix the uncaught exception in client when
processing response
109d9ab is described below
commit 109d9abf8d2c7816378ed078b6151baa50fc4ab8
Author: Yifan Cai <[email protected]>
AuthorDate: Tue Jun 27 15:44:08 2023 -0700
CASSANDRASC-62: Fix the uncaught exception in client when processing
response
patch by Yifan Cai; reviewed by Dinesh Joshi, Francisco Guerrero for
CASSANDRASC-62
---
.../java/org/apache/cassandra/sidecar/client/RequestExecutor.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git
a/client/src/main/java/org/apache/cassandra/sidecar/client/RequestExecutor.java
b/client/src/main/java/org/apache/cassandra/sidecar/client/RequestExecutor.java
index 84c7702..64b5700 100644
---
a/client/src/main/java/org/apache/cassandra/sidecar/client/RequestExecutor.java
+++
b/client/src/main/java/org/apache/cassandra/sidecar/client/RequestExecutor.java
@@ -18,7 +18,6 @@
package org.apache.cassandra.sidecar.client;
-import java.io.IOException;
import java.util.Iterator;
import java.util.Objects;
import java.util.concurrent.CancellationException;
@@ -415,9 +414,9 @@ public class RequestExecutor implements AutoCloseable
future.complete((T) response.contentAsString());
}
}
- catch (IOException e)
+ catch (Throwable t)
{
- future.completeExceptionally(e);
+ future.completeExceptionally(t);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]