apache / rocketmq-client-go

Apache RocketMQ go client

Home Page:https://rocketmq.apache.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Batch send message can't auto create topic

HubQin opened this issue · comments

commented

The issue tracker is ONLY used for the go client (feature request of RocketMQ need to follow RIP process). Keep in mind, please check whether there is an existing same report before your raise a new one.

Alternately (especially if your communication is not a bug report), you can send mail to our mailing lists. We welcome any friendly suggestions, bug fixes, collaboration, and other improvements.

Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as to the following:

BUG REPORT

  1. Please describe the issue you observed:

time="2023-04-08T20:22:17+08:00" level=warning msg="query topic route from server error" underlayError="topic not exist"
time="2023-04-08T20:22:17+08:00" level=warning msg="queryTopicRouteInfoFromServer return nil" topic=test102
time="2023-04-08T20:22:17+08:00" level=info msg="the topic route info changed" changeTo="{\"OrderTopicConf\":\"\",\"queueDatas\":[{\"brokerName\":\"basic-service-rocketmq-broker\",\"readQueueNums\":4,\"writeQueueNums\":4,\"perm\":7,\"topicSynFlag\":0}],\"brokerDatas\":[{\"cluster\":\"DefaultCluster\",\"brokerName\":\"basic-service-rocketmq-broker\",\"brokerAddrs\":{\"0\":\"192.168.44.148:10911\"}}]}" changedFrom="<nil>" topic=test102
time="2023-04-08T20:22:17+08:00" level=info msg="The RMQClient stopping update topic route info." clientID=192.168.59.170@24436
time="2023-04-08T20:22:17+08:00" level=info msg="The RMQClient stopping do rebalance" clientID=192.168.59.170@24436
time="2023-04-08T20:22:17+08:00" level=info msg="will remove client from clientMap" clientID=192.168.59.170@24436
send message error: CODE: 17, DESC: topic[test102] not exist, apply first please!

I run the simple example with not exists topic and it can run success, but this example didn't.

  1. Please tell us about your environment:

    • What is your OS?
      run client in windows10 , namesrv and broker in docker (rocketmq:4.7.0-alpine)

    • What is your client version?
      github.com/apache/rocketmq-client-go/v2 v2.1.2-0.20230406032100-7ae788dead07

    • What is your RocketMQ version?
      4.7.0

  2. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):

my broker config:

2023-04-08 20\:36\:39 INFO main - namesrvAddr=basic-service-rocketmq-namesrv:9876
2023-04-08 20\:36\:39 INFO main - brokerIP1=172.18.0.35
2023-04-08 20\:36\:39 INFO main - brokerName=basic-service-rocketmq-broker
2023-04-08 20\:36\:39 INFO main - brokerClusterName=DefaultCluster
2023-04-08 20\:36\:39 INFO main - brokerId=0
2023-04-08 20\:36\:39 INFO main - autoCreateTopicEnable=true
2023-04-08 20\:36\:39 INFO main - autoCreateSubscriptionGroup=true
2023-04-08 20\:36\:39 INFO main - msgTraceTopicName=RMQ_SYS_TRACE_TOPIC
2023-04-08 20\:36\:39 INFO main - traceTopicEnable=false
2023-04-08 20\:36\:39 INFO main - rejectTransactionMessage=false
2023-04-08 20\:36\:39 INFO main - fetchNamesrvAddrByAddressServer=false
2023-04-08 20\:36\:39 INFO main - transactionTimeOut=6000
2023-04-08 20\:36\:39 INFO main - transactionCheckMax=15
2023-04-08 20\:36\:39 INFO main - transactionCheckInterval=60000
2023-04-08 20\:36\:39 INFO main - aclEnable=false
2023-04-08 20\:36\:39 INFO main - storePathRootDir=/home/rocketmq/store
2023-04-08 20\:36\:39 INFO main - storePathCommitLog=/home/rocketmq/store/commitlog
2023-04-08 20\:36\:39 INFO main - flushIntervalCommitLog=500
2023-04-08 20\:36\:39 INFO main - commitIntervalCommitLog=200
2023-04-08 20\:36\:39 INFO main - flushCommitLogTimed=false
2023-04-08 20\:36\:39 INFO main - deleteWhen=04
2023-04-08 20\:36\:39 INFO main - fileReservedTime=72
2023-04-08 20\:36\:39 INFO main - maxTransferBytesOnMessageInMemory=262144
2023-04-08 20\:36\:39 INFO main - maxTransferCountOnMessageInMemory=32
2023-04-08 20\:36\:39 INFO main - maxTransferBytesOnMessageInDisk=65536
2023-04-08 20\:36\:39 INFO main - maxTransferCountOnMessageInDisk=8
2023-04-08 20\:36\:39 INFO main - accessMessageInMemoryMaxRatio=40
2023-04-08 20\:36\:39 INFO main - messageIndexEnable=true
2023-04-08 20\:36\:39 INFO main - messageIndexSafe=false
2023-04-08 20\:36\:39 INFO main - haMasterAddress=
2023-04-08 20\:36\:39 INFO main - brokerRole=ASYNC_MASTER
2023-04-08 20\:36\:39 INFO main - flushDiskType=ASYNC_FLUSH
2023-04-08 20\:36\:39 INFO main - cleanFileForciblyEnable=true
2023-04-08 20\:36\:39 INFO main - transientStorePoolEnable=false

producerConnecttion output:

sh-4.2$ sh mqadmin producerConnection -n 192.168.44.148:9876 -g test0409 -t test0409-1
RocketMQLog:WARN No appenders could be found for logger (io.netty.util.internal.PlatformDependent0).
RocketMQLog:WARN Please initialize the logger system properly.
0001  192.168.59.170@27808             192.168.59.170:58784   GO       V4_5_2