@Override public void postFlush(ObserverContext<RegionCoprocessorEnvironment> e) throws IOException { // Record whether the region is empty after a flush HRegion region = e.getEnvironment().getRegion(); // After a flush, if the memstore size is zero and there are no store files for any stores in the region // then the region must be empty long numStoreFiles = numStoreFilesForRegion(e); long memstoreSize = region.getMemstoreSize().get(); LOG.debug(String.format("Region %s: memstore size = %s, num store files = %s", region.getRegionInfo().getRegionNameAsString(), memstoreSize, numStoreFiles)); if (memstoreSize == 0 && numStoreFiles == 0) { if (compactionState != null) { compactionState.persistRegionEmpty(System.currentTimeMillis()); } } }
@Override public void postFlush(ObserverContext<RegionCoprocessorEnvironment> e) throws IOException { // Record whether the region is empty after a flush HRegion region = e.getEnvironment().getRegion(); // After a flush, if the memstore size is zero and there are no store files for any stores in the region // then the region must be empty long numStoreFiles = numStoreFilesForRegion(e); long memstoreSize = region.getMemstoreSize().get(); LOG.debug(String.format("Region %s: memstore size = %s, num store files = %s", region.getRegionInfo().getRegionNameAsString(), memstoreSize, numStoreFiles)); if (memstoreSize == 0 && numStoreFiles == 0) { if (compactionState != null) { compactionState.persistRegionEmpty(System.currentTimeMillis()); } } }
@Override public void postFlush(ObserverContext<RegionCoprocessorEnvironment> e) throws IOException { // Record whether the region is empty after a flush HRegion region = e.getEnvironment().getRegion(); // After a flush, if the memstore size is zero and there are no store files for any stores in the region // then the region must be empty long numStoreFiles = numStoreFilesForRegion(e); long memstoreSize = region.getMemstoreSize().get(); LOG.debug(String.format("Region %s: memstore size = %s, num store files = %s", region.getRegionInfo().getRegionNameAsString(), memstoreSize, numStoreFiles)); if (memstoreSize == 0 && numStoreFiles == 0) { if (compactionState != null) { compactionState.persistRegionEmpty(System.currentTimeMillis()); } } }
@Override public void postFlush(ObserverContext<RegionCoprocessorEnvironment> e) throws IOException { // Record whether the region is empty after a flush HRegion region = e.getEnvironment().getRegion(); // After a flush, if the memstore size is zero and there are no store files for any stores in the region // then the region must be empty long numStoreFiles = numStoreFilesForRegion(e); long memstoreSize = region.getMemstoreSize().get(); LOG.debug(String.format("Region %s: memstore size = %s, num store files = %s", region.getRegionInfo().getRegionNameAsString(), memstoreSize, numStoreFiles)); if (memstoreSize == 0 && numStoreFiles == 0) { if (compactionState != null) { compactionState.persistRegionEmpty(System.currentTimeMillis()); } } }
@Override public void postFlush(ObserverContext<RegionCoprocessorEnvironment> e) throws IOException { // Record whether the region is empty after a flush HRegion region = e.getEnvironment().getRegion(); // After a flush, if the memstore size is zero and there are no store files for any stores in the region // then the region must be empty long numStoreFiles = numStoreFilesForRegion(e); long memstoreSize = region.getMemstoreSize().get(); LOG.debug(String.format("Region %s: memstore size = %s, num store files = %s", region.getRegionInfo().getRegionNameAsString(), memstoreSize, numStoreFiles)); if (memstoreSize == 0 && numStoreFiles == 0) { if (compactionState != null) { compactionState.persistRegionEmpty(System.currentTimeMillis()); } } }
@Override public void postFlush(ObserverContext<RegionCoprocessorEnvironment> e) throws IOException { // Record whether the region is empty after a flush HRegion region = e.getEnvironment().getRegion(); // After a flush, if the memstore size is zero and there are no store files for any stores in the region // then the region must be empty long numStoreFiles = numStoreFilesForRegion(e); long memstoreSize = region.getMemstoreSize().get(); LOG.debug(String.format("Region %s: memstore size = %s, num store files = %s", region.getRegionInfo().getRegionNameAsString(), memstoreSize, numStoreFiles)); if (memstoreSize == 0 && numStoreFiles == 0) { if (compactionState != null) { compactionState.persistRegionEmpty(System.currentTimeMillis()); } } }
@Override public void postFlush(ObserverContext<RegionCoprocessorEnvironment> e) throws IOException { // Record whether the region is empty after a flush HRegion region = e.getEnvironment().getRegion(); // After a flush, if the memstore size is zero and there are no store files for any stores in the region // then the region must be empty long numStoreFiles = numStoreFilesForRegion(e); long memstoreSize = region.getMemstoreSize().get(); LOG.debug(String.format("Region %s: memstore size = %s, num store files = %s", region.getRegionInfo().getRegionNameAsString(), memstoreSize, numStoreFiles)); if (memstoreSize == 0 && numStoreFiles == 0) { if (compactionState != null) { compactionState.persistRegionEmpty(System.currentTimeMillis()); } } }
@Override public void postFlush(ObserverContext<RegionCoprocessorEnvironment> e) throws IOException { // Record whether the region is empty after a flush HRegion region = e.getEnvironment().getRegion(); // After a flush, if the memstore size is zero and there are no store files for any stores in the region // then the region must be empty long numStoreFiles = numStoreFilesForRegion(e); long memstoreSize = region.getMemstoreSize().get(); LOG.debug(String.format("Region %s: memstore size = %s, num store files = %s", region.getRegionInfo().getRegionNameAsString(), memstoreSize, numStoreFiles)); if (memstoreSize == 0 && numStoreFiles == 0) { if (compactionState != null) { compactionState.persistRegionEmpty(System.currentTimeMillis()); } } }
@Override public void postFlush(ObserverContext<RegionCoprocessorEnvironment> e) throws IOException { // Record whether the region is empty after a flush HRegion region = e.getEnvironment().getRegion(); // After a flush, if the memstore size is zero and there are no store files for any stores in the region // then the region must be empty long numStoreFiles = numStoreFilesForRegion(e); long memstoreSize = region.getMemstoreSize().get(); LOG.debug(String.format("Region %s: memstore size = %s, num store files = %s", region.getRegionInfo().getRegionNameAsString(), memstoreSize, numStoreFiles)); if (memstoreSize == 0 && numStoreFiles == 0) { if (compactionState != null) { compactionState.persistRegionEmpty(System.currentTimeMillis()); } } }
+ getRegionInfo().getRegionNameAsString() + " " + store + ". flushableSize expected=0, actual= " + flushableSize + ". Current memstoreSize=" + getMemstoreSize() + ". Maybe a coprocessor " + "operation failed and left the memstore in a partially updated state.", null);