try {
// Publish new DNodeInfo in distributed registry.
// This makes QNodes notice that a new version is available...
// PartitionMap and ReplicationMap will be built incrementally as DNodes finish.
dnodesRegistry.changeInfo(new DNodeInfo(config));
return JSONSerDe.ser(new DNodeStatusResponse("Ok. Delete old versions executed."));
} catch(JSONSerDeException e) {
unexpectedException(e);
throw new DNodeException(EXCEPTION_UNEXPECTED, e.getMessage());
}
}