private void validateMasterEntry(MasterEntry masterNode, Long clusterId) {
        if (masterNode == null || StringUtils.isBlank(masterNode.getIp()) || masterNode.getWebPort() <= 0) {
            log.error("Invalid MasterEntry: ClusterId = {}", clusterId);
            throw new IllegalArgumentException("Invalid MasterEntry.");
        }
    }
Validates if the provided MasterEntry is valid.

@param masterNode The MasterEntry to validate.
@param clusterId  The ID of the TubeMQ cluster.
@throws IllegalArgumentException If the MasterEntry is invalid.
inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/service/TopicServiceImpl.java