Skip to content

Commit

Permalink
increases close timeout to 2 minutes
Browse files Browse the repository at this point in the history
refs #7545
  • Loading branch information
robfrank committed Aug 4, 2017
1 parent bdb6901 commit 3ea25a2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void init(String indexName, String indexType, OIndexDefinition indexDefin
if (metadata.containsField("closeAfterInterval")) {
closeAfterInterval = Integer.valueOf(metadata.<Integer>field("closeAfterInterval")).longValue();
} else {
closeAfterInterval = 20000l;
closeAfterInterval = 120000l;
}

if (metadata.containsField("firstFlushAfter")) {
Expand All @@ -203,12 +203,10 @@ public boolean cancel() {
public void run() {

if (System.currentTimeMillis() - lastAccess.get() > closeAfterInterval) {

// OLogManager.instance().info(this, " Closing index:: " + indexName());
close();
}
if (!closed.get()) {

// OLogManager.instance().info(this, " Flushing index:: " + indexName());
flush();
}
Expand Down

0 comments on commit 3ea25a2

Please sign in to comment.