} catch (DeserializationException e) {
server.abort("Exception parsing unassigned node for entityGroup="
+ egInfo.getEncodedName(), e);
}
ServerName addressFromZK = rt != null ? rt.getServerName() : null;
if (addressFromZK != null) {
// if we get something from ZK, we will use the data
boolean matchZK = (addressFromZK != null && addressFromZK
.equals(serverName));
LOG.debug("based on ZK, current entityGroup="
+ egInfo.getEntityGroupNameAsString() + " is on server="
+ addressFromZK + " server being checked=: " + serverName);
return matchZK;
}
ServerName addressFromAM = entityGroupStates
.getFServerOfEntityGroup(egInfo);
boolean matchAM = (addressFromAM != null && addressFromAM
.equals(serverName));
LOG.debug("based on AM, current entityGroup="
+ egInfo.getEntityGroupNameAsString() + " is on server="
+ (addressFromAM != null ? addressFromAM : "null")
+ " server being checked: " + serverName);