VoltDB.crashLocalVoltDB("Unknown message type " +
message.getClass().toString() + " sent to the rejoin coordinator",
false, null);
}
RejoinMessage rm = (RejoinMessage) message;
Type type = rm.getType();
if (type == RejoinMessage.Type.SNAPSHOT_FINISHED) {
REJOINLOG.info("Finished streaming snapshot to site: " +
CoreUtils.hsIdToString(rm.m_sourceHSId));
} else if (type == RejoinMessage.Type.REPLAY_FINISHED) {
assert(m_catalog != null);
boolean schemaHasNoTables = m_catalog.getTables().isEmpty();
initiateNextSite(schemaHasNoTables);
onReplayFinished(rm.m_sourceHSId);
} else if (type == RejoinMessage.Type.INITIATION_RESPONSE) {
onSiteInitialized(rm.m_sourceHSId, rm.getMasterHSId(), rm.getSnapshotSinkHSId(),
rm.schemaHasNoTables());
} else {
VoltDB.crashLocalVoltDB("Wrong rejoin message of type " + type +
" sent to the rejoin coordinator", false, null);
}
}