Commit 22e0a8ae authored by mhellka's avatar mhellka
Browse files

Increase timeout for requests to ES.

10 seconds proved to be too short for large bulk requests.
parent e910d409
Pipeline #133752 passed with stages
in 8 minutes and 11 seconds
......@@ -2,6 +2,7 @@ package de.gwdg.cdstar.ext.elastic;
import java.time.Duration;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
......@@ -42,7 +43,7 @@ public class ElasticIngestJob implements AutoCloseable {
private static final Logger log = LoggerFactory.getLogger(ElasticIngestJob.class);
private int maxBulk = 32;
private long msTimeout = 10000;
private long msTimeout = Duration.ofSeconds(60).toMillis();
private static TikaHelper tika = new TikaHelper();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment