Source:
<code>protected synchronized void handleEvent(CoordinatorEvent event) { _log.info("START: Handle event " + event.getType() + ", Instance: " + _adapter.getInstanceName()); try { switch (event.getType()) { case LEADER_DO_ASSIGNMENT: handleLeaderDoAssignment(); break; case HANDLE_ASSIGNMENT_CHANGE: synchronized (_assignedDatastreamTasks) { handleAssignmentChange(false); } break; case HANDLE_DATASTREAM_CHANGE_WITH_UPDATE: synchronized (_assignedDatastreamTasks) { handleAssignmentChange(true); } break; case HANDLE_ADD_OR_DELETE_DATASTREAM: handleDatastreamAddOrDelete(); break; case HANDLE_INSTANCE_ERROR: handleInstanceError((CoordinatorEvent.HandleInstanceError) event); break; case HEARTBEAT: handleHeartbeat(); break; case LEADER_PARTITION_ASSIGNMENT: if (event.getEventMetadata() == null) { _log.error("Datastream group is not found when performing partition assignment, ignore the assignment"); } else { performPartitionAssignment((String) event.getEventMetadata()); } break; case LEADER_PARTITION_MOVEMENT: performPartitionMovement((Long) event.getEventMetadata()); break; <START> case LEADER_DO_POST_BECOMING_LEADER: <END> performTaskPostBecomingLeader(); break; default: String errorMessage = String.format("Unknown event type %s.", event.getType()); ErrorLogger.logAndThrowDatastreamRuntimeException(_log, errorMessage, null); break; } } catch (Exception e) { _dynamicMetricsManager.createOrUpdateMeter(MODULE, "handleEvent-" + event.getType(), NUM_ERRORS, 1); _log.error("ERROR: event + " + event + " failed.", e); } _log.info("END: Handle event " + event); }</code><technical_language>hard a name for this.. happy this suggests action DO doesnt action. I unable though. post if I do</technical_language>

Target:
protected synchronized void handleEvent(CoordinatorEvent event) { _log.info("START: Handle event " + event.getType() + ", Instance: " + _adapter.getInstanceName()); try { switch (event.getType()) { case LEADER_DO_ASSIGNMENT: handleLeaderDoAssignment(); break; case HANDLE_ASSIGNMENT_CHANGE: synchronized (_assignedDatastreamTasks) { handleAssignmentChange(false); } break; case HANDLE_DATASTREAM_CHANGE_WITH_UPDATE: synchronized (_assignedDatastreamTasks) { handleAssignmentChange(true); } break; case HANDLE_ADD_OR_DELETE_DATASTREAM: handleDatastreamAddOrDelete(); break; case HANDLE_INSTANCE_ERROR: handleInstanceError((CoordinatorEvent.HandleInstanceError) event); break; case HEARTBEAT: handleHeartbeat(); break; case LEADER_PARTITION_ASSIGNMENT: if (event.getEventMetadata() == null) { _log.error("Datastream group is not found when performing partition assignment, ignore the assignment"); } else { performPartitionAssignment((String) event.getEventMetadata()); } break; case LEADER_PARTITION_MOVEMENT: performPartitionMovement((Long) event.getEventMetadata()); break; case LEADER_DO_CLEANUP_POST_ELECTION: performCleanupTaskPostElection(); break; default: String errorMessage = String.format("Unknown event type %s.", event.getType()); ErrorLogger.logAndThrowDatastreamRuntimeException(_log, errorMessage, null); break; } } catch (Exception e) { _dynamicMetricsManager.createOrUpdateMeter(MODULE, "handleEvent-" + event.getType(), NUM_ERRORS, 1); _log.error("ERROR: event + " + event + " failed.", e); } _log.info("END: Handle event " + event); }