You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by zh...@apache.org on 2022/12/08 09:53:13 UTC
[rocketmq] branch develop updated: Fix bug that make static topic ITs unable to pass (#5666)
This is an automated email from the ASF dual-hosted git repository.
zhoubo pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new cc6614c23 Fix bug that make static topic ITs unable to pass (#5666)
cc6614c23 is described below
commit cc6614c23677041a39331a48cdcfa0a3f829b29f
Author: rongtong <ji...@163.com>
AuthorDate: Thu Dec 8 17:52:51 2022 +0800
Fix bug that make static topic ITs unable to pass (#5666)
---
.../java/org/apache/rocketmq/test/statictopic/StaticTopicIT.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/src/test/java/org/apache/rocketmq/test/statictopic/StaticTopicIT.java b/test/src/test/java/org/apache/rocketmq/test/statictopic/StaticTopicIT.java
index fc599d653..fea6d9663 100644
--- a/test/src/test/java/org/apache/rocketmq/test/statictopic/StaticTopicIT.java
+++ b/test/src/test/java/org/apache/rocketmq/test/statictopic/StaticTopicIT.java
@@ -345,7 +345,7 @@ public class StaticTopicIT extends BaseConf {
int msgEachQueue = 10;
//create static topic
{
- Set<String> targetBrokers = ImmutableSet.of(BROKER2_NAME);
+ Set<String> targetBrokers = ImmutableSet.of(BROKER1_NAME);
MQAdminTestUtils.createStaticTopic(topic, queueNum, targetBrokers, defaultMQAdminExt);
sendMessagesAndCheck(producer, targetBrokers, topic, queueNum, msgEachQueue, 0);
consumeMessagesAndCheck(producer, consumer, topic, queueNum, msgEachQueue, 0, 1);
@@ -409,7 +409,7 @@ public class StaticTopicIT extends BaseConf {
//remapping to broker2Name
{
- Set<String> targetBrokers = ImmutableSet.of(BROKER3_NAME);
+ Set<String> targetBrokers = ImmutableSet.of(BROKER2_NAME);
MQAdminTestUtils.remappingStaticTopic(topic, targetBrokers, defaultMQAdminExt);
//leave the time to refresh the metadata
awaitRefreshStaticTopicMetadata(3000, topic, producer.getProducer(), null, defaultMQAdminExt);
@@ -425,7 +425,7 @@ public class StaticTopicIT extends BaseConf {
sendMessagesAndCheck(producer, targetBrokers, topic, queueNum, msgEachQueue, 2 * TopicQueueMappingUtils.DEFAULT_BLOCK_SEQ_SIZE);
}
- // 1 -> 2 -> 3, currently 1 should not has any mappings
+ // 1 -> 2 -> 3, currently 1 should not have any mappings
{
for (int i = 0; i < 10; i++) {