@Override
  public void close() {
    for (ImmutableSegment s : segments) {
      s.close();
    }
  }
Closing a segment before it is being discarded
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompositeImmutableSegment.java