-
Notifications
You must be signed in to change notification settings - Fork 281
Closed
Labels
type/bugSomething isn't workingSomething isn't working
Description
Before Creating the Bug Report
-
I found a bug, not just asking a question, which should be created in GitHub Discussions.
-
I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.
-
I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Programming Language of the Client
Go
Runtime Platform Environment
MacOS
RocketMQ Version of the Client/Server
v5.1.3/client.go
Run or Compiler Version
go 1.25.3
Describe the Bug
Producer 不指定 WithTopics
producer, err = rmq_client.NewProducer(
&rmq_client.Config{
Endpoint: common.EndPoint,
Credentials: &credentials.SessionCredentials{},
NameSpace: "",
ConsumerGroup: "",
},
rmq_client.WithMaxAttempts(1),
// rmq_client.WithTopics(common.NormalTopic),
)无法正常启动,会卡在
// wait syncSettings finish
for !cli.inited.Load() {
sugarBaseLogger.Infoln("wait for sync settings finish")
time.Sleep(time.Second)
}
sugarBaseLogger.Infoln("sync settings finished")
return nil一直报
2025-12-28T11:21:40.709+0800 INFO [email protected]/client.go:590 wait for sync settings finishSteps to Reproduce
Producer 不指定 WithTopics 进行 Start
What Did You Expect to See?
正常启动
2025-12-28T11:27:59.264+0800 INFO [email protected]/metric.go:337 metric is off, clientId=xxx
2025-12-28T11:27:59.264+0800 INFO [email protected]/client.go:99 Executed command successfully {"client_id": "xxx"}
2025-12-28T11:27:59.264+0800 INFO [email protected]/metric.go:337 metric is off, clientId=xxx
2025-12-28T11:27:59.264+0800 INFO [email protected]/client.go:99 Executed command successfully {"client_id": "xxx"}
2025-12-28T11:28:00.265+0800 INFO [email protected]/client.go:593 sync settings finishedWhat Did You See Instead?
2025-12-28T11:21:35.703+0800 INFO [email protected]/client.go:590 wait for sync settings finish
2025-12-28T11:21:36.703+0800 INFO [email protected]/client.go:590 wait for sync settings finish
2025-12-28T11:21:37.706+0800 INFO [email protected]/client.go:590 wait for sync settings finish
2025-12-28T11:21:38.707+0800 INFO [email protected]/client.go:590 wait for sync settings finish
2025-12-28T11:21:39.708+0800 INFO [email protected]/client.go:590 wait for sync settings finish
2025-12-28T11:21:40.709+0800 INFO [email protected]/client.go:590 wait for sync settings finishAdditional Context
No response
Metadata
Metadata
Assignees
Labels
type/bugSomething isn't workingSomething isn't working