DataInputStream metadataStream = fs.open(metadataPath);
long partitions = metadataStream.readInt();
for (long i = 0; i < partitions; ++i) {
long dataPos = metadataStream.readLong();
int partitionId = metadataStream.readInt();
PartitionOwner partitionOwner = idOwnerMap.get(partitionId);
if (LOG.isInfoEnabled()) {
LOG.info("prepareSuperstepRestart: File " + metadataPath +
" with position " + dataPos +
", partition id = " + partitionId +
" assigned to " + partitionOwner);
}
partitionOwner.setCheckpointFilesPrefix(checkpointFilePrefix);
}
metadataStream.close();
}
}