You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/07/10 09:14:46 UTC

[GitHub] [rocketmq-client-go] storezhang opened a new issue #509: 2.1.0-rc4版本,使用阿里云RocketMQ,一直无法消费

storezhang opened a new issue #509:
URL: https://github.com/apache/rocketmq-client-go/issues/509


   版本:2.1.0-rc4
   表现:
   ![image](https://user-images.githubusercontent.com/4278758/87138120-8b0b9680-c2d0-11ea-9763-67f4589adae0.png)
   代码
   `
   consumer, err = rocketmq.NewPushConsumer(
   			consumer.WithCredentials(primitive.Credentials{
   				AccessKey: n.AccessKey,
   				SecretKey: n.SecretKey,
   			}),
   			consumer.WithGroupName(n.Group),
   			consumer.WithNameServer(n.Endpoints),
   			consumer.WithNamespace(n.Namespace),
   			consumer.WithAutoCommit(true),
   			consumer.WithRetry(100),
   			// 每次只消费一条数据
   			consumer.WithConsumeMessageBatchMaxSize(1),
   		)
   
   consumer.Subscribe(
   		n.Topic,
   		selector,
   		func(ctx context.Context, messages ...*primitive.MessageExt) (consumer.ConsumeResult, error) {
   			if 1 != len(messages) {
   				return consumer.ConsumeRetryLater, nil
   			}
   
   			return consumer.ConsumeSuccess, nil
   		},
   	)
   `


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] kvlfs commented on issue #509: 2.1.0-rc4版本,使用阿里云RocketMQ,一直无法消费

Posted by GitBox <gi...@apache.org>.
kvlfs commented on issue #509:
URL: https://github.com/apache/rocketmq-client-go/issues/509#issuecomment-811717019


   请问一下,这里的groupName应该使用什么呢,我用的GROUP_ID,但是一直报consumer group has been created错误 @storezhang 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] storezhang commented on issue #509: 2.1.0-rc4版本,使用阿里云RocketMQ,一直无法消费

Posted by GitBox <gi...@apache.org>.
storezhang commented on issue #509:
URL: https://github.com/apache/rocketmq-client-go/issues/509#issuecomment-762020922


   // 消息追踪
   // 注意:阿里云线上的RocketMQ一定要加此选项,不然会导致消费不成功
   consumer.WithTrace(&primitive.TraceConfig{
      // TraceTopic:   n.Topic,
      GroupName:    n.Group,
      Access:       primitive.Cloud,
      NamesrvAddrs: n.Endpoints,
      Credentials:  credentials,
   }),
   
   
   On Fri, Dec 25, 2020 at 10:25 AM Dan <no...@github.com> wrote:
   
   > @storezhang <https://github.com/storezhang>
   > 怎么加的trace呢,能贴点代码看看嘛老哥,我这里还不行
   >
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/rocketmq-client-go/issues/509#issuecomment-751150281>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/ABAUTZQSAW5MYPVEWWFQHFLSWPZZVANCNFSM4OWM7QVQ>
   > .
   >
   
   
   -- 
   _______________________________________________________________
   
   Zhang Zongliang                *storezhang@gmail.com <st...@gmail.com>*
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] storezhang commented on issue #509: 2.1.0-rc4版本,使用阿里云RocketMQ,一直无法消费

Posted by GitBox <gi...@apache.org>.
storezhang commented on issue #509:
URL: https://github.com/apache/rocketmq-client-go/issues/509#issuecomment-663833051


   找到了,加trace就可以了
   
   On Wed, Jul 15, 2020 at 12:19 PM mingyunbudui <no...@github.com>
   wrote:
   
   > 现在怎么样了呢,找到原因了么
   >
   > —
   > You are receiving this because you modified the open/close state.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/rocketmq-client-go/issues/509#issuecomment-658536296>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/ABAUTZWSZI4NUZYFUMKWIGLR3UU57ANCNFSM4OWM7QVQ>
   > .
   >
   
   
   -- 
   _______________________________________________________________
   
   Zhang Zongliang                *storezhang@gmail.com <st...@gmail.com>*
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] storezhang closed issue #509: 2.1.0-rc4版本,使用阿里云RocketMQ,一直无法消费

Posted by GitBox <gi...@apache.org>.
storezhang closed issue #509:
URL: https://github.com/apache/rocketmq-client-go/issues/509


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] duhenglucky commented on issue #509: 2.1.0-rc4版本,使用阿里云RocketMQ,一直无法消费

Posted by GitBox <gi...@apache.org>.
duhenglucky commented on issue #509:
URL: https://github.com/apache/rocketmq-client-go/issues/509#issuecomment-811856670


   > 请问一下,这里的groupName应该使用什么呢,我用的GROUP_ID,但是一直报consumer group has been created错误 @storezhang
   
   要添加namespace


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] mingyunbudui commented on issue #509: 2.1.0-rc4版本,使用阿里云RocketMQ,一直无法消费

Posted by GitBox <gi...@apache.org>.
mingyunbudui commented on issue #509:
URL: https://github.com/apache/rocketmq-client-go/issues/509#issuecomment-658536296


   现在怎么样了呢,找到原因了么


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] refear99 commented on issue #509: 2.1.0-rc4版本,使用阿里云RocketMQ,一直无法消费

Posted by GitBox <gi...@apache.org>.
refear99 commented on issue #509:
URL: https://github.com/apache/rocketmq-client-go/issues/509#issuecomment-751150281


   @storezhang 
   怎么加的trace呢,能贴点代码看看嘛老哥,我这里还不行


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq-client-go] mingyunbudui edited a comment on issue #509: 2.1.0-rc4版本,使用阿里云RocketMQ,一直无法消费

Posted by GitBox <gi...@apache.org>.
mingyunbudui edited a comment on issue #509:
URL: https://github.com/apache/rocketmq-client-go/issues/509#issuecomment-658536296


   最后怎么解决的呢


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org