-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[native]PushConsumer clustering does not auto create %RETRY% topic #194
Comments
Ahhhhhhha.... I found a magic method.
It's woking OK!! |
There is probably a bug, could you please check more detail and fix it if it's a bug? |
hmm, Maybe this code triggers the problem. github.com/apache/rocketmq-client-go/consumer/push_consumer.go:151 pc.client.UpdateTopicRouteInfo()
for k := range pc.subscribedTopic {
_, exist := pc.topicSubscribeInfoTable.Load(k)
if !exist {
pc.client.Shutdown()
return fmt.Errorf("the topic=%s route info not found, it may not exist", k)
}
} I retry more times, find a solution.
and MUST wait 10 seconds.
|
the same promblem for me when using on ali cloud, |
- register consumer before defaultConsumer start] Closes apache#194
- add acl struct for trace config Closes apache#194
- register consumer before defaultConsumer start] Closes #194
It does not seem to work.
I'm still looking for it. DEBUG INFO: 1 . FIRST
It calls remote cmd: queryTopicInfo, get code: 17 2. SECOND (waiting 10 sec)
It calls remote cmd: queryTopicInfo, get code: 0 And, I try to add a Rebalane method before pc.client.UpdateTopicRouteInfo() //func (pc *pushConsumer) Start() error {
//....
pc.Rebalance()
time.Sleep(1 * time.Second)
pc.client.UpdateTopicRouteInfo()
for k := range pc.subscribedTopic {
_, exist := pc.topicSubscribeInfoTable.Load(k)
if !exist {
pc.client.Shutdown()
return fmt.Errorf("the topic=%s route info not found, it may not exist", k)
}
}
//} It seems to work
I guess that it calls RebalanceImmediately for creating a %RETRY% topic. |
I came across the same problem. But I fixed it by using WithNamespace:-) |
You need a new group name. The old group name maybe auto created. |
link #258 |
It seems to be resolved, is there any update? |
What is the default namespace? |
您好,您的邮件已收到,我会尽快查看,^_^
|
It has 2 problems:
The text was updated successfully, but these errors were encountered: