void seal() throws StoreException {
    rwLock.writeLock().lock();
    try {
      sealed.set(true);
      sealedIndex.map();
    } catch (StoreException e) {
      sealed.set(false);
      throw e;
    } finally {
      rwLock.writeLock().unlock();
    }
    // we should be fine reading bloom filter here without synchronization as the index is read only
    sealedIndex.persistBloomFilter();
  }
Marks the segment as sealed. Also persists the bloom filter to disk and conditionally mmaps the index segment.
@throws StoreException if there are problems with the index
ambry-store/src/main/java/com/github/ambry/store/IndexSegment.java