Skip to content

Commit

Permalink
Fix 'Global' cluster will create in standalone mode. apache#10067 (ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
Technoboy- authored Apr 1, 2021
1 parent 6717974 commit bf34bb0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ private void createSampleNameSpace(ClusterData clusterData, String cluster) {
}

// Create marker for "global" cluster
if (!admin.clusters().getClusters().contains(globalCluster)) {
try {
admin.clusters().getCluster(globalCluster);
} catch (PulsarAdminException.NotFoundException ex) {
admin.clusters().createCluster(globalCluster, new ClusterData(null, null));
}

Expand Down

0 comments on commit bf34bb0

Please sign in to comment.