This is an automated email from the ASF dual-hosted git repository.
bogong pushed a commit to branch branch-2.9
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.9 by this push:
new f71a3a56eef [fix][flaky-test] testSplitBundleForMultiTimes (#16562)
f71a3a56eef is described below
commit f71a3a56eefd2432bdfd65ea4d54209bd52fece6
Author: gaozhangmin <[email protected]>
AuthorDate: Mon Aug 15 21:08:28 2022 +0800
[fix][flaky-test] testSplitBundleForMultiTimes (#16562)
(cherry picked from commit 20185951422fe2a2cebec8a2537d7a9257212644)
---
.../src/test/java/org/apache/pulsar/broker/admin/NamespacesTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/NamespacesTest.java
b/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/NamespacesTest.java
index bfdea37a5f8..d9c5d0850ee 100644
---
a/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/NamespacesTest.java
+++
b/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/NamespacesTest.java
@@ -1748,6 +1748,9 @@ public class NamespacesTest extends
MockedPulsarServiceBaseTest {
String namespace = BrokerTestUtil.newUniqueName(this.testTenant +
"/namespace");
BundlesData data = BundlesData.builder().numBundles(4).build();
admin.namespaces().createNamespace(namespace, data);
+ URL localWebServiceUrl = new URL(pulsar.getSafeWebServiceAddress());
+ final NamespaceName testNs = NamespaceName.get(namespace);
+ mockWebUrl(localWebServiceUrl, testNs);
for (int i = 0; i < 10; i ++) {
final BundlesData bundles =
admin.namespaces().getBundles(namespace);
final String bundle = bundles.getBoundaries().get(0) + "_" +
bundles.getBoundaries().get(1);