Skip to content

Add remote cluster metadata manager#10

Merged
showuon merged 4 commits into
showuon:cl3from
FrankYang0529:add-remote-cluster-metadata-manager
Sep 3, 2025
Merged

Add remote cluster metadata manager#10
showuon merged 4 commits into
showuon:cl3from
FrankYang0529:add-remote-cluster-metadata-manager

Conversation

@FrankYang0529

Copy link
Copy Markdown
  • Add RemoteClusterMetadataManager to get source partition leader.
  • Add remote-cluster-metadata-refresh to refresh remote cluster metadata.

showuon and others added 2 commits August 29, 2025 19:35
Signed-off-by: PoAn Yang <payang@apache.org>

@showuon showuon left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting for this PR merged.
FrankYang0529#3

val remoteBootstrapServers = partition.remoteBootstrapServer.split(",").map(_.trim).toList.asJava
val addresses = ClientUtils.parseAndValidateAddresses(remoteBootstrapServers, "use_all_dns_ips")
Option.apply(new Node(3000, addresses.get(0).getHostString, addresses.get(0).getPort))
Some(remoteClusterMetadataManager.get.getRemotePartitionLeader(partition.remoteBootstrapServer, partition.topicPartition))

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take a note, we need to handle the issue when remote partition leader is still not retrieved.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there're many parts need error handling.

@showuon
showuon merged commit 0e3767b into showuon:cl3 Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants