@@ -116,7 +116,7 @@ public void testNoopEngineWithInvalidTranslogUUID() throws IOException {
116
116
for (int i = 0 ; i < numDocs ; i ++) {
117
117
ParsedDocument doc = testParsedDocument (Integer .toString (i ), null , testDocument (), new BytesArray ("{}" ), null );
118
118
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 ));
120
120
if (rarely ()) {
121
121
engine .flush ();
122
122
}
@@ -147,7 +147,7 @@ public void testNoopEngineWithNonZeroTranslogOperations() throws IOException {
147
147
for (int i = 0 ; i < numDocs ; i ++) {
148
148
ParsedDocument doc = testParsedDocument (Integer .toString (i ), null , testDocument (), new BytesArray ("{}" ), null );
149
149
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 ));
151
151
if (rarely ()) {
152
152
engine .flush ();
153
153
}
@@ -167,7 +167,8 @@ public void testNoOpEngineDocStats() throws Exception {
167
167
IOUtils .close (engine , store );
168
168
final AtomicLong globalCheckpoint = new AtomicLong (SequenceNumbers .NO_OPS_PERFORMED );
169
169
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 );
171
172
final int numDocs = scaledRandomIntBetween (10 , 3000 );
172
173
int deletions = 0 ;
173
174
try (InternalEngine engine = createEngine (config )) {
@@ -190,7 +191,6 @@ public void testNoOpEngineDocStats() throws Exception {
190
191
}
191
192
engine .waitForOpsToComplete (numDocs + deletions - 1 );
192
193
flushAndTrimTranslog (engine );
193
- engine .close ();
194
194
}
195
195
196
196
final DocsStats expectedDocStats ;
0 commit comments