Fix compilation in RecoverySourceHandlerTests

This error arose after the signature of a method was changed.
This commit is contained in:
Jason Tedor 2017-02-03 08:48:29 -05:00
parent 6e9940283b
commit 01871e4def
1 changed files with 3 additions and 1 deletions

View File

@ -45,6 +45,7 @@ import org.elasticsearch.common.lucene.store.IndexOutputOutputStream;
import org.elasticsearch.common.lucene.uid.Versions; import org.elasticsearch.common.lucene.uid.Versions;
import org.elasticsearch.common.settings.ClusterSettings; import org.elasticsearch.common.settings.ClusterSettings;
import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.xcontent.XContentType;
import org.elasticsearch.index.IndexSettings; import org.elasticsearch.index.IndexSettings;
import org.elasticsearch.index.engine.Engine; import org.elasticsearch.index.engine.Engine;
import org.elasticsearch.index.engine.SegmentsStats; import org.elasticsearch.index.engine.SegmentsStats;
@ -211,7 +212,8 @@ public class RecoverySourceHandlerTests extends ESTestCase {
document.add(seqID.seqNoDocValue); document.add(seqID.seqNoDocValue);
document.add(seqID.primaryTerm); document.add(seqID.primaryTerm);
final BytesReference source = new BytesArray(new byte[] { 1 }); final BytesReference source = new BytesArray(new byte[] { 1 });
final ParsedDocument doc = new ParsedDocument(versionField, seqID, id, type, null, Arrays.asList(document), source, null); final ParsedDocument doc =
new ParsedDocument(versionField, seqID, id, type, null, Arrays.asList(document), source, XContentType.JSON, null);
return new Engine.Index(new Term("_uid", doc.uid()), doc); return new Engine.Index(new Term("_uid", doc.uid()), doc);
} }