public void doTransition(Message message, NotificationContext context) {
HelixManager manager = context.getManager();
String clusterName = manager.getClusterName();
String instance = message.getTgtName();
PartitionId partitionId = message.getPartitionId();
State fromState = message.getTypedFromState();
State toState = message.getTypedToState();
if (instance.equals("localhost_12919") && partitionId.equals(PartitionId.from("TestDB0_0"))) {
if (fromState.equals("SLAVE") && toState.equals("OFFLINE")) {
slaveToOfflineCnt++;
try {
String command =