Skip to content

Commit

Permalink
[Optimization][admin] NULL may be used when optimizing heartbeat dete…
Browse files Browse the repository at this point in the history
…ction of cluster instances (#3275)

Co-authored-by: czs <[email protected]>
  • Loading branch information
2 people authored and sunlichao11 committed Jul 14, 2024
1 parent 31915db commit 4417599
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
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() + "】不存在");
}
Expand Down

0 comments on commit 4417599

Please sign in to comment.