aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2021-08-29 11:38:19 +0200
committerMartin Stockhammer <martin_s@apache.org>2021-08-29 11:38:19 +0200
commit699920cb8958b4436cbb16d27616d30ca98ba59b (patch)
tree9194b522391c6d4dad47d74b0a22b23fca3dc032 /archiva-modules
parent502280dbbdc9ff31183183400b71bb98e770789f (diff)
downloadarchiva-699920cb8958b4436cbb16d27616d30ca98ba59b.tar.gz
archiva-699920cb8958b4436cbb16d27616d30ca98ba59b.zip
Fixing timeout value and adding thread output to maven build
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java b/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java
index 5b5da70e3..085f3e205 100644
--- a/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java
+++ b/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java
@@ -38,6 +38,7 @@ import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.inject.Inject;
+import java.time.Duration;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@@ -185,7 +186,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 )
+ .withDuration( DefaultDriverOption.REQUEST_TIMEOUT, Duration.ofSeconds( 10 ) )
.build( );
{