public boolean checkAndSetHeartbeatProcessing(int nodeId) {
    return heartbeatProcessingMap
        .computeIfAbsent(nodeId, empty -> new AtomicBoolean(false))
        .getAndSet(true);
  }
Check if the specified Node is processing heartbeat. And set the processing flag to true.

@param nodeId The specified NodeId.
@return False if the previous heartbeat is completed, true otherwise.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/LoadCache.java