/** * Ensures that all data for this BlockFile is stored in persistent storage * before returning. * * @throws IOException if an I/O error occurs. */ public synchronized void force() throws IOException { for (int i = 0; i < nrMappedRegions; ++i) { mappedByteBuffers[i].force(); } super.force(); // force file metadata }