Message taskMessage = new Message(record);
if(logger.isDebugEnabled())
{
logger.debug(taskMessage.getRecord().getSimpleFields());
}
MessageHandler handler = _executor.createMessageHandler(taskMessage, new NotificationContext(null));
if (handler == null)
{
throw new HelixException("Task message " + taskMessage.getMsgType() + " handler not found, task id " + _partitionName);
}
// Invoke the internal handler to complete the task
handler.handleMessage();
logger.info(_partitionName + " onBecomeCompletedFromOffline completed");
}