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 2022/08/29 07:14:52 UTC

[GitHub] [rocketmq-client-go] lampnick commented on a diff in pull request #906: when queue dropped,should'not consume the process queue.(#905)

lampnick commented on code in PR #906:
URL: https://github.com/apache/rocketmq-client-go/pull/906#discussion_r956969827


##########
consumer/pull_consumer.go:
##########
@@ -193,6 +201,14 @@ func (pc *defaultPullConsumer) Poll(ctx context.Context, timeout time.Duration)
 	case <-ctx.Done():
 		return nil, ErrNoNewMsg
 	case cr := <-pc.consumeRequestCache:
+		if cr.GetPQ().IsDroppd() {
+			rlog.Info("defaultPullConsumer poll the message queue not be able to consume, because it was dropped", map[string]interface{}{

Review Comment:
   okay,but I hope expose the pq and mq because I want to check the consume status sometimes.



-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

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