@Override public void flushAndForce( IOLimiter limiter ) { indexingService.forceAll( limiter ); labelScanStore.force( limiter ); for ( IndexImplementation index : explicitIndexProviderLookup.allIndexProviders() ) { index.force(); } neoStores.flush( limiter ); }
@Test public void forceShouldNotForceWriterOnReadOnlyScanStore() { createAndStartReadOnly(); store.force( IOLimiter.UNLIMITED ); }
public void flushAndForce() { if ( propertyKeyRepository != null ) { propertyKeyRepository.flush(); } if ( labelRepository != null ) { labelRepository.flush(); } if ( relationshipTypeRepository != null ) { relationshipTypeRepository.flush(); } if ( neoStores != null ) { neoStores.flush( UNLIMITED ); flushIdFiles( neoStores, StoreType.values() ); } if ( temporaryNeoStores != null ) { temporaryNeoStores.flush( UNLIMITED ); flushIdFiles( temporaryNeoStores, TEMP_STORE_TYPES ); } if ( labelScanStore != null ) { labelScanStore.force( UNLIMITED ); } }
@Test public void scanStoreRecreateCorruptedIndexOnStartup() throws Throwable { LabelScanStore labelScanStore = getLabelScanStore(); GroupingRecoveryCleanupWorkCollector workCollector = getGroupingRecoveryCleanupWorkCollector(); createTestNode(); long[] labels = readNodesForLabel( labelScanStore ); assertEquals( "Label scan store see 1 label for node", 1, labels.length ); labelScanStore.force( IOLimiter.UNLIMITED ); labelScanStore.shutdown(); workCollector.shutdown(); corruptLabelScanStoreFiles( dbRule.databaseLayout() ); workCollector.init(); labelScanStore.init(); workCollector.start(); labelScanStore.start(); long[] rebuildLabels = readNodesForLabel( labelScanStore ); assertArrayEquals( "Store should rebuild corrupted index", labels, rebuildLabels ); }
@Override public void flushAndForce( IOLimiter limiter ) { indexingService.forceAll( limiter ); labelScanStore.force( limiter ); for ( IndexImplementation index : explicitIndexProviderLookup.allIndexProviders() ) { index.force(); } neoStores.flush( limiter ); }
public void flushAndForce() { if ( propertyKeyRepository != null ) { propertyKeyRepository.flush(); } if ( labelRepository != null ) { labelRepository.flush(); } if ( relationshipTypeRepository != null ) { relationshipTypeRepository.flush(); } if ( neoStores != null ) { neoStores.flush( UNLIMITED ); flushIdFiles( neoStores, StoreType.values() ); } if ( temporaryNeoStores != null ) { temporaryNeoStores.flush( UNLIMITED ); flushIdFiles( temporaryNeoStores, TEMP_STORE_TYPES ); } if ( labelScanStore != null ) { labelScanStore.force( UNLIMITED ); } }