Skip to content

Commit

Permalink
[fix][broker] System topic should not be migrated during blue-green c…
Browse files Browse the repository at this point in the history
…luster migration (#23767)

Co-authored-by: ruihongzhou <[email protected]>
(cherry picked from commit 1967a93)
  • Loading branch information
hrzzzz authored and lhotari committed Dec 21, 2024
1 parent 1555042 commit 645d318
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,9 @@ public void openLedgerFailed(ManagedLedgerException exception, Object ctx) {
}

private CompletableFuture<Void> checkTopicAlreadyMigrated(TopicName topicName) {
if (ExtensibleLoadManagerImpl.isInternalTopic(topicName.toString())) {
if (ExtensibleLoadManagerImpl.isInternalTopic(topicName.toString())
|| SystemTopicNames.isEventSystemTopic(topicName)
|| NamespaceService.isHeartbeatNamespace(topicName.getNamespaceObject())) {
return CompletableFuture.completedFuture(null);
}
CompletableFuture<Void> result = new CompletableFuture<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3002,7 +3002,10 @@ private boolean hasBacklogs(boolean getPreciseBacklog) {

@Override
public CompletableFuture<Void> checkClusterMigration() {
if (ExtensibleLoadManagerImpl.isInternalTopic(topic)) {
TopicName topicName = TopicName.get(topic);
if (ExtensibleLoadManagerImpl.isInternalTopic(topic)
|| isEventSystemTopic(topicName)
|| NamespaceService.isHeartbeatNamespace(topicName.getNamespaceObject())) {
return CompletableFuture.completedFuture(null);
}

Expand Down

0 comments on commit 645d318

Please sign in to comment.