if (ttInfo != null) {
HadoopFrameworkMessage message = new HadoopFrameworkMessage(
HadoopFrameworkMessage.Type.S2E_SEND_STATUS_UPDATE, state.toString());
try {
LOG.info("Asking slave " + ttInfo.mesosSlaveId + " to update status");
driver.sendFrameworkMessage(new FrameworkMessage(
ttInfo.mesosSlaveId, nt.mesosId, message.serialize()));
} catch (IOException e) {
// This exception would only get thrown if we couldn't serialize the
// HadoopFrameworkMessage, which is a serious problem; crash the JT
LOG.fatal("Failed to serialize HadoopFrameworkMessage", e);