public String getNodeStatusWithReason(int nodeId) {
    return Optional.ofNullable(nodeCacheMap.get(nodeId))
        .map(BaseNodeCache::getNodeStatusWithReason)
        .orElseGet(() -> NodeStatus.Unknown.getStatus() + "(NoHeartbeat)");
  }
Safely get the specified Node's current status with reason.

@param nodeId The specified NodeId
@return The specified Node's current status if the nodeCache contains it, Unknown otherwise
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/LoadCache.java