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 dfc7d24 commit 25bd18e
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 @@ -1888,7 +1888,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 @@ -2929,7 +2929,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 25bd18e

Please sign in to comment.