]> source.dussan.org Git - archiva.git/commitdiff
Trying to increase the driver timeout for cassandra
authorMartin Stockhammer <martin_s@apache.org>
Sun, 29 Aug 2021 09:27:28 +0000 (11:27 +0200)
committerMartin Stockhammer <martin_s@apache.org>
Sun, 29 Aug 2021 09:27:28 +0000 (11:27 +0200)
archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java

index 7678031ef719ff39635a42a304a2142989e22739..5b5da70e3fb93214c456981247653c14acf53d14 100644 (file)
@@ -185,6 +185,7 @@ public class DefaultCassandraArchivaManager
                 .withInt( DefaultDriverOption.CONNECTION_POOL_REMOTE_SIZE, maxActive )
                 //.withInt( DefaultDriverOption.CONNECTION_MAX_REQUESTS, maxActive )
                 .withString( DefaultDriverOption.REQUEST_CONSISTENCY, readConsistencyLevel )
+                .withInt( DefaultDriverOption.REQUEST_TIMEOUT, 10 )
                 .build( );
 
         {