diff --git a/server/src/main/java/org/elasticsearch/index/engine/LuceneBatchChangesSnapshot.java b/server/src/main/java/org/elasticsearch/index/engine/LuceneBatchChangesSnapshot.java index 77c52bf82ec6d..fad0ea3dcb9a1 100644 --- a/server/src/main/java/org/elasticsearch/index/engine/LuceneBatchChangesSnapshot.java +++ b/server/src/main/java/org/elasticsearch/index/engine/LuceneBatchChangesSnapshot.java @@ -44,8 +44,8 @@ import java.util.concurrent.atomic.AtomicBoolean; import static org.elasticsearch.index.engine.LuceneChangesSnapshot.getLeafDocIDs; -import static org.elasticsearch.index.engine.LuceneChangesSnapshot.loadFromStoredFields; import static org.elasticsearch.index.engine.LuceneChangesSnapshot.loadFromSourceLoader; +import static org.elasticsearch.index.engine.LuceneChangesSnapshot.loadFromStoredFields; /** * A {@link Translog.Snapshot} implementation that retrieves changes from a Lucene index in batches. @@ -167,7 +167,7 @@ public Translog.Operation next() throws IOException { } if (op != null) { assert fromSeqNo <= op.seqNo() && op.seqNo() <= toSeqNo && lastSeenSeqNo < op.seqNo() - : "Unexpected operation; " + : "Unexpected operation; " + "last_seen_seqno [" + lastSeenSeqNo + "], from_seqno [" 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 2a2c568e9eeea..f2c86021add6a 100644 --- a/server/src/main/java/org/elasticsearch/index/engine/LuceneChangesSnapshot.java +++ b/server/src/main/java/org/elasticsearch/index/engine/LuceneChangesSnapshot.java @@ -388,7 +388,7 @@ static int[] getLeafDocIDs(ScoreDoc[] scoreDocs, int startIndex, int docBase, in scoreDocs, startIndex, scoreDocs.length, - new ScoreDoc(docBase+maxDoc, Float.NaN, -1), + new ScoreDoc(docBase + maxDoc, Float.NaN, -1), Comparator.comparingInt(a -> a.doc) ); if (rightIndex < 0) { diff --git a/server/src/main/java/org/elasticsearch/index/mapper/SourceFieldMapper.java b/server/src/main/java/org/elasticsearch/index/mapper/SourceFieldMapper.java index 5a06351b3ed21..c5dbac1516077 100644 --- a/server/src/main/java/org/elasticsearch/index/mapper/SourceFieldMapper.java +++ b/server/src/main/java/org/elasticsearch/index/mapper/SourceFieldMapper.java @@ -202,7 +202,7 @@ public Builder( this.indexMode = indexMode; this.supportsNonDefaultParameterValues = supportsCheckForNonDefaultParams == false || settings.getAsBoolean(LOSSY_PARAMETERS_ALLOWED_SETTING_NAME, true); - this.enableRecoverySource = indexMode == IndexMode.LOGSDB ? false : enableRecoverySource; + this.enableRecoverySource = indexMode == IndexMode.LOGSDB ? false : enableRecoverySource; } public Builder setSynthetic() {