@@ -352,7 +352,7 @@ public void testDataOnlyNodePersistence() throws Exception {
352
352
gateway .start (settings , transportService , clusterService ,
353
353
new MetaStateService (nodeEnvironment , xContentRegistry ()), null , null , persistedClusterStateService );
354
354
final CoordinationState .PersistedState persistedState = gateway .getPersistedState ();
355
- assertThat (persistedState , instanceOf (GatewayMetaState .AsyncLucenePersistedState .class ));
355
+ assertThat (persistedState , instanceOf (GatewayMetaState .AsyncPersistedState .class ));
356
356
357
357
//generate random coordinationMetadata with different lastAcceptedConfiguration and lastCommittedConfiguration
358
358
CoordinationMetadata coordinationMetadata ;
@@ -372,9 +372,9 @@ public void testDataOnlyNodePersistence() throws Exception {
372
372
CoordinationMetadata persistedCoordinationMetadata =
373
373
persistedClusterStateService .loadOnDiskState ().metadata .coordinationMetadata ();
374
374
assertThat (persistedCoordinationMetadata .getLastAcceptedConfiguration (),
375
- equalTo (GatewayMetaState .AsyncLucenePersistedState .staleStateConfiguration ));
375
+ equalTo (GatewayMetaState .AsyncPersistedState .staleStateConfiguration ));
376
376
assertThat (persistedCoordinationMetadata .getLastCommittedConfiguration (),
377
- equalTo (GatewayMetaState .AsyncLucenePersistedState .staleStateConfiguration ));
377
+ equalTo (GatewayMetaState .AsyncPersistedState .staleStateConfiguration ));
378
378
379
379
persistedState .markLastAcceptedStateAsCommitted ();
380
380
assertBusy (() -> assertTrue (gateway .allPendingAsyncStatesWritten ()));
@@ -388,9 +388,9 @@ public void testDataOnlyNodePersistence() throws Exception {
388
388
assertClusterStateEqual (expectedClusterState , persistedState .getLastAcceptedState ());
389
389
persistedCoordinationMetadata = persistedClusterStateService .loadOnDiskState ().metadata .coordinationMetadata ();
390
390
assertThat (persistedCoordinationMetadata .getLastAcceptedConfiguration (),
391
- equalTo (GatewayMetaState .AsyncLucenePersistedState .staleStateConfiguration ));
391
+ equalTo (GatewayMetaState .AsyncPersistedState .staleStateConfiguration ));
392
392
assertThat (persistedCoordinationMetadata .getLastCommittedConfiguration (),
393
- equalTo (GatewayMetaState .AsyncLucenePersistedState .staleStateConfiguration ));
393
+ equalTo (GatewayMetaState .AsyncPersistedState .staleStateConfiguration ));
394
394
assertTrue (persistedClusterStateService .loadOnDiskState ().metadata .clusterUUIDCommitted ());
395
395
396
396
// generate a series of updates and check if batching works
@@ -421,7 +421,7 @@ public void testDataOnlyNodePersistence() throws Exception {
421
421
422
422
try (CoordinationState .PersistedState reloadedPersistedState = newGatewayPersistedState ()) {
423
423
assertEquals (currentTerm , reloadedPersistedState .getCurrentTerm ());
424
- assertClusterStateEqual (GatewayMetaState .AsyncLucenePersistedState .resetVotingConfiguration (state ),
424
+ assertClusterStateEqual (GatewayMetaState .AsyncPersistedState .resetVotingConfiguration (state ),
425
425
reloadedPersistedState .getLastAcceptedState ());
426
426
assertNotNull (reloadedPersistedState .getLastAcceptedState ().metadata ().index (indexName ));
427
427
}
0 commit comments