use of com.hazelcast.map.impl.recordstore.DefaultRecordStore in project hazelcast by hazelcast.
the class MapSplitBrainHandlerService method onStoreCollection.
/**
* Clears indexes inside partition thread while collecting merge
* tasks. Otherwise, if we do this cleanup upon join of merging node,
* concurrently running merge and migration operations can cause
* inconsistency over shared index objects between record stores.
*/
@Override
protected void onStoreCollection(RecordStore recordStore) {
assertRunningOnPartitionThread();
DefaultRecordStore defaultRecordStore = (DefaultRecordStore) recordStore;
defaultRecordStore.getMapDataStore().reset();
defaultRecordStore.getIndexingObserver().onDestroy(false, true);
}
Aggregations