From 345b4961facc6ac0f0cff81bbfe88fd69709a5a6 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Mon, 28 May 2018 10:30:47 -0400 Subject: [PATCH] Replace nocommit by norelease The temporary fix was marked incorrectly with nocommit. It should be marked with norelease. --- .../org/elasticsearch/index/engine/LuceneChangesSnapshot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/index/engine/LuceneChangesSnapshot.java b/server/src/main/java/org/elasticsearch/index/engine/LuceneChangesSnapshot.java index 3834f8d93b309..1d55a834e4723 100644 --- a/server/src/main/java/org/elasticsearch/index/engine/LuceneChangesSnapshot.java +++ b/server/src/main/java/org/elasticsearch/index/engine/LuceneChangesSnapshot.java @@ -165,7 +165,7 @@ private TopDocs searchOperations(IndexSearcher searcher) throws IOException { new SortedNumericSortField(SeqNoFieldMapper.NAME, SortField.Type.LONG), new SortedNumericSortField(SeqNoFieldMapper.PRIMARY_TERM_NAME, SortField.Type.LONG, true) ); - // nocommit - limits the number of hits + // norelease - limits the number of hits final long numHits = Math.min((toSeqNo + 1 - fromSeqNo) * 2, Integer.MAX_VALUE - 1); return searcher.search(rangeQuery, Math.toIntExact(numHits), sortedBySeqNoThenByTerm); }