@@ -116,7 +116,7 @@ public void testNoopEngineWithInvalidTranslogUUID() throws IOException {
116116 for (int i = 0 ; i < numDocs ; i ++) {
117117 ParsedDocument doc = testParsedDocument (Integer .toString (i ), null , testDocument (), new BytesArray ("{}" ), null );
118118 engine .index (new Engine .Index (newUid (doc ), doc , i , primaryTerm .get (), 1 , null , Engine .Operation .Origin .REPLICA ,
119- System .nanoTime (), -1 , false ));
119+ System .nanoTime (), -1 , false , SequenceNumbers . UNASSIGNED_SEQ_NO , 0 ));
120120 if (rarely ()) {
121121 engine .flush ();
122122 }
@@ -147,7 +147,7 @@ public void testNoopEngineWithNonZeroTranslogOperations() throws IOException {
147147 for (int i = 0 ; i < numDocs ; i ++) {
148148 ParsedDocument doc = testParsedDocument (Integer .toString (i ), null , testDocument (), new BytesArray ("{}" ), null );
149149 engine .index (new Engine .Index (newUid (doc ), doc , i , primaryTerm .get (), 1 , null , Engine .Operation .Origin .REPLICA ,
150- System .nanoTime (), -1 , false ));
150+ System .nanoTime (), -1 , false , SequenceNumbers . UNASSIGNED_SEQ_NO , 0 ));
151151 if (rarely ()) {
152152 engine .flush ();
153153 }
@@ -167,7 +167,8 @@ public void testNoOpEngineDocStats() throws Exception {
167167 IOUtils .close (engine , store );
168168 final AtomicLong globalCheckpoint = new AtomicLong (SequenceNumbers .NO_OPS_PERFORMED );
169169 try (Store store = createStore ()) {
170- EngineConfig config = config (defaultSettings , store , createTempDir (), newMergePolicy (), null , null , globalCheckpoint ::get );
170+ Path translogPath = createTempDir ();
171+ EngineConfig config = config (defaultSettings , store , translogPath , NoMergePolicy .INSTANCE , null , null , globalCheckpoint ::get );
171172 final int numDocs = scaledRandomIntBetween (10 , 3000 );
172173 int deletions = 0 ;
173174 try (InternalEngine engine = createEngine (config )) {
@@ -190,7 +191,6 @@ public void testNoOpEngineDocStats() throws Exception {
190191 }
191192 engine .waitForOpsToComplete (numDocs + deletions - 1 );
192193 flushAndTrimTranslog (engine );
193- engine .close ();
194194 }
195195
196196 final DocsStats expectedDocStats ;
0 commit comments