@Override public void removeStoreFiles(String familyName, Collection<HStoreFile> storeFiles) throws IOException { super.removeStoreFiles(familyName, storeFiles); archived.set(true); synchronized (archived) { archived.notifyAll(); } try { // unfortunately we can't use a stronger barrier here as the fix synchronizing // the race condition will then block Thread.sleep(100); } catch (InterruptedException ie) { throw new InterruptedIOException("Interrupted waiting for latch"); } } }
new HStoreFile(walFS, file, this.conf, null, null, true)); getRegionWALFileSystem().removeStoreFiles(fakeFamilyName, fakeStoreFiles); } else { if (filesUnderRootDir != null) {
private void archiveStoreFile(int index) throws IOException { Collection<HStoreFile> files = this.store.getStorefiles(); HStoreFile sf = null; Iterator<HStoreFile> it = files.iterator(); for (int i = 0; i <= index; i++) { sf = it.next(); } store.getRegionFileSystem().removeStoreFiles(store.getColumnFamilyName(), Lists.newArrayList(sf)); }
this.fs.removeStoreFiles(this.getColumnFamilyDescriptor().getNameAsString(), filesToRemove); } catch (FailedArchiveException fae) {
primaryRegion.getRegionFileSystem().removeStoreFiles(Bytes.toString(families[0]), storeFiles); Collection<StoreFileInfo> storeFileInfos = primaryRegion.getRegionFileSystem() .getStoreFiles(families[0]);
@Override public void removeStoreFiles(String familyName, Collection<HStoreFile> storeFiles) throws IOException { super.removeStoreFiles(familyName, storeFiles); archived.set(true); synchronized (archived) { archived.notifyAll(); } try { // unfortunately we can't use a stronger barrier here as the fix synchronizing // the race condition will then block Thread.sleep(100); } catch (InterruptedException ie) { throw new InterruptedIOException("Interrupted waiting for latch"); } } }
private void archiveStoreFile(int index) throws IOException { Collection<HStoreFile> files = this.store.getStorefiles(); HStoreFile sf = null; Iterator<HStoreFile> it = files.iterator(); for (int i = 0; i <= index; i++) { sf = it.next(); } store.getRegionFileSystem().removeStoreFiles(store.getColumnFamilyName(), Lists.newArrayList(sf)); }
null, null)); getRegionFileSystem().removeStoreFiles(fakeFamilyName, fakeStoreFiles); } else { for (Path file: files) {
primaryRegion.getRegionFileSystem().removeStoreFiles(Bytes.toString(families[0]), storeFiles); Collection<StoreFileInfo> storeFileInfos = primaryRegion.getRegionFileSystem() .getStoreFiles(families[0]);
this.fs.removeStoreFiles(this.getColumnFamilyName(), compactedFiles);