if(oldData == null) {
LOG.debug("While updating UNASSIGNED region " + regionName + " - node exists with no data" );
}
// If there is data in the ZNode, do not update if it is already correct
else {
HBaseEventType curState = HBaseEventType.fromByte(oldData[0]);
HBaseEventType newState = HBaseEventType.fromByte(data[0]);
// If the znode has the right state already, do not update it. Updating
// the znode again and again will bump up the zk version. This may cause
// the region server to fail. The RS expects that the znode is never
// updated by anyone else while it is opening/closing a region.
if(curState == newState) {