Search in sources :

Example 6 with DefaultRecordStore

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);
}
Also used : DefaultRecordStore(com.hazelcast.map.impl.recordstore.DefaultRecordStore)

Aggregations

DefaultRecordStore (com.hazelcast.map.impl.recordstore.DefaultRecordStore)6 MapService (com.hazelcast.map.impl.MapService)3 MapServiceContext (com.hazelcast.map.impl.MapServiceContext)3 RecordStore (com.hazelcast.map.impl.recordstore.RecordStore)3 Config (com.hazelcast.config.Config)2 IPartitionService (com.hazelcast.internal.partition.IPartitionService)2 NodeEngine (com.hazelcast.spi.impl.NodeEngine)2 Address (com.hazelcast.cluster.Address)1 IndexConfig (com.hazelcast.config.IndexConfig)1 MapConfig (com.hazelcast.config.MapConfig)1 MapStoreConfig (com.hazelcast.config.MapStoreConfig)1 HazelcastInstance (com.hazelcast.core.HazelcastInstance)1 Data (com.hazelcast.internal.serialization.Data)1 ILogger (com.hazelcast.logging.ILogger)1 EntryCostEstimator (com.hazelcast.map.impl.EntryCostEstimator)1 MapContainer (com.hazelcast.map.impl.MapContainer)1 MapKeyLoader (com.hazelcast.map.impl.MapKeyLoader)1 PartitionContainer (com.hazelcast.map.impl.PartitionContainer)1 MapProxyImpl (com.hazelcast.map.impl.proxy.MapProxyImpl)1 SampleTestObjects (com.hazelcast.query.SampleTestObjects)1