cache.scheduleSlotReleaser(slot); if (LOG.isTraceEnabled()) { suffix += " scheduling " + slot + " for later release.";
/** * Close the replica. * * Must be called after there are no more references to the replica in the * cache or elsewhere. */ void close() { String suffix = ""; Preconditions.checkState(refCount == 0, "tried to close replica with refCount %d: %s", refCount, this); refCount = -1; Preconditions.checkState(purged, "tried to close unpurged replica %s", this); if (hasMmap()) { munmap(); if (LOG.isTraceEnabled()) { suffix += " munmapped."; } } IOUtilsClient.cleanupWithLogger(LOG, dataStream, metaStream); if (slot != null) { cache.scheduleSlotReleaser(slot); if (LOG.isTraceEnabled()) { suffix += " scheduling " + slot + " for later release."; } } LOG.trace("closed {}{}", this, suffix); }
cache.scheduleSlotReleaser(slot); if (LOG.isTraceEnabled()) { suffix += " scheduling " + slot + " for later release.";