getFs().open(checkpointFilePath);
workerContext.readFields(checkpointStream);
// Load global stats and superstep classes
GlobalStats globalStats = new GlobalStats();
SuperstepClasses superstepClasses = new SuperstepClasses();
String finalizedCheckpointPath = getSavedCheckpointBasePath(superstep) +
CheckpointingUtils.CHECKPOINT_FINALIZED_POSTFIX;
DataInputStream finalizedStream =
getFs().open(new Path(finalizedCheckpointPath));
globalStats.readFields(finalizedStream);
superstepClasses.readFields(finalizedStream);
getConfiguration().updateSuperstepClasses(superstepClasses);
getServerData().resetMessageStores();
for (int i = 0; i < partitions; i++) {
int partitionId = checkpointStream.readInt();