public void close(RegionEventImpl event) { try { // NOTE: the 422dynamicRegions branch added the callbackEvents argument // to basicDestroyRegion and inhibited events on region.close. This // clashed with the new SystemMemberCacheListener functionality in // 5.0, causing unit tests to fail basicDestroyRegion(event, false, true, true); } catch (CacheWriterException e) { // not possible with local operation, CacheWriter not called throw new Error(LocalizedStrings.LocalRegion_CACHEWRITEREXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION.toLocalizedString(), e); } catch (TimeoutException e) { // not possible with local operation, no distributed locks possible throw new Error(LocalizedStrings.LocalRegion_TIMEOUTEXCEPTION_SHOULD_NOT_BE_THROWN_IN_LOCALDESTROYREGION.toLocalizedString(), e); } }
private void close(LocalRegion lr) { lr.close(); lr.getDiskStore().close(); lr.getGemFireCache().removeDiskStore(lr.getDiskStore()); }
this.close(event); // changed to close for bug 40572 logger.info(LocalizedStrings.LocalRegion_REGION_CLOSED_SUCCESSFULLY); } catch (RegionDestroyedException rde) {