Unverified Commit 740fd56b authored by 笑一笑's avatar 笑一笑 Committed by GitHub

[Optimization][admin] NULL may be used when optimizing heartbeat detection of…

[Optimization][admin] NULL may be used when optimizing heartbeat detection of cluster instances (#3275) Co-authored-by: 's avatarczs <ffchenzhsh@chinatelecom.cn>
parent 3e7e878e
......@@ -33,6 +33,9 @@ import org.dinky.data.model.Task;
public interface DinkyAssert {
static void check(ClusterInstance clusterInstance) {
if (clusterInstance == null) {
throw new BusException(Status.CLUSTER_NOT_EXIST);
}
if (clusterInstance.getId() == null) {
throw new BusException("Flink 集群【" + clusterInstance.getId() + "】不存在");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment