if (!batch.write(portion)) throw new GridException("Cannot write more data to the secondary file system output " + "stream because it was marked as closed: " + batch.path());
if (!batch.write(portion)) throw new GridException("Cannot write more data to the secondary file system output " + "stream because it was marked as closed: " + batch.path());