@Override
  public DataNodeId getDataNodeId(String hostname, int port) {
    DataNodeId helixDataNode = helixClusterManager.getDataNodeId(hostname, port);
    if (check) {
      DataNodeId staticDataNode = staticClusterManager.getDataNodeId(hostname, port);
      if (!Objects.equals(staticDataNode != null ? staticDataNode.toString() : null,
          helixDataNode != null ? helixDataNode.toString() : null)) {
        logger.debug("Static data node does not match Helix data node");
        helixClusterManagerMetrics.getDataNodeIdMismatchCount.inc();
      }
    }
    return helixDataNode;
  }
Return the {@link DataNodeId} associated with the given hostname and port in the underlying
{@link StaticClusterManager}.
Also get the associated data node from the underlying {@link HelixClusterManager} and if the two returned
DataNodeId
objects do not refer to the same actual instance, update a metric.
@param hostname of the DataNodeId
@param port of the DataNodeId
@return the {@link DataNodeId} associated with the given hostname and port in the underlying
{@link StaticClusterManager}.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/CompositeClusterManager.java