Skip to content

Commit

Permalink
chore: remove log and add topic check method (#2086) (#2088)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezi-lzq authored Oct 21, 2024
1 parent 35f5687 commit 3a88d60
Showing 1 changed file with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public String offsetSyncsTopic(String clusterAlias) {
if (offsetSyncsTopic == null) {
return super.offsetSyncsTopic(clusterAlias);
}
log.info("Using offset syncs topic: {}", offsetSyncsTopic);
return offsetSyncsTopic;
}

Expand All @@ -43,7 +42,6 @@ public String checkpointsTopic(String clusterAlias) {
if (checkpointsTopic == null) {
return super.checkpointsTopic(clusterAlias);
}
log.info("Using checkpoints topic: {}", checkpointsTopic);
return checkpointsTopic;
}

Expand All @@ -53,7 +51,22 @@ public String heartbeatsTopic() {
if (heartbeatsTopic == null) {
return super.heartbeatsTopic();
}
log.info("Using heartbeats topic: {}", heartbeatsTopic);
return heartbeatsTopic;
}

@Override
public boolean isCheckpointsTopic(String topic) {
String checkpointsTopic = System.getenv(CHECKPOINTS_TOPIC_ENV_KEY);
return super.isCheckpointsTopic(topic) || topic.equals(checkpointsTopic);
}

@Override
public boolean isHeartbeatsTopic(String topic) {
return super.isHeartbeatsTopic(topic) || topic.equals(heartbeatsTopic());
}

@Override
public boolean isMM2InternalTopic(String topic) {
return super.isMM2InternalTopic(topic) || isHeartbeatsTopic(topic) || isCheckpointsTopic(topic);
}
}

0 comments on commit 3a88d60

Please sign in to comment.