Skip to content
Snippets Groups Projects
Commit c6912734 authored by mbrodhu's avatar mbrodhu
Browse files

Set lifetime of restoken to 24 hours

parent 134837cb
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,7 @@
<artifactId>json</artifactId>
<version>20190722</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream -->
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
......
......@@ -97,7 +97,7 @@ public abstract class RecordListDelivererAbstract implements RecordListDeliverer
if (resumptionToken != null) {
SearchScrollRequest scrollRequest = new SearchScrollRequest(resumptionToken);
scrollRequest.scroll(TimeValue.timeValueSeconds(LIFETIME_RES_TOKEN));
scrollRequest.scroll(TimeValue.timeValueHours(24L));
try {
scrollResp = OAI_ESClient.getEsClient().scroll(scrollRequest, RequestOptions.DEFAULT);
......@@ -107,7 +107,7 @@ public abstract class RecordListDelivererAbstract implements RecordListDeliverer
}
} else {
searchRequest.source(searchSourceBuilder);
searchRequest.scroll(TimeValue.timeValueMinutes(LIFETIME_RES_TOKEN));
searchRequest.scroll(TimeValue.timeValueHours(24L));
try {
scrollResp = OAI_ESClient.getEsClient().search(searchRequest,RequestOptions.DEFAULT);
} catch (IOException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment