User Question:
I met “Lost connection to remote peer” exception when query data from scylla synchronously which will break the main client process. At the time of exception happened, seems one node became down but other nodes were working well. Do I need to switch to asynchronous access? CQL deriver version is 4.14.1
Exception in thread "main" com.datastax.oss.driver.api.core.connection.ClosedConnectionException: Lost connection to remote peer
at com.datastax.oss.driver.api.core.connection.ClosedConnectionException.copy(ClosedConnectionException.java:51)
at com.datastax.oss.driver.internal.core.util.concurrent.CompletableFutures.getUninterruptibly(CompletableFutures.java:149)
at com.datastax.oss.driver.internal.core.cql.CqlRequestSyncProcessor.process(CqlRequestSyncProcessor.java:53)
at com.datastax.oss.driver.internal.core.cql.CqlRequestSyncProcessor.process(CqlRequestSyncProcessor.java:30)
at com.datastax.oss.driver.internal.core.session.DefaultSession.execute(DefaultSession.java:237)
at com.datastax.oss.driver.api.core.cql.SyncCqlSession.execute(SyncCqlSession.java:54)