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 2021/05/10 11:10:29 UTC

[GitHub] [rocketmq-client-go] fwhezfwhez opened a new issue #656: How to ignore old messages ?

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


   Now, I add a new consumer-group. It will consume histroy messages ,which are too many.
   
   Is there any api to help ignore those old history messages, just by time.
   
   It's alright to add it into selector like:
   ```go
   
   consumer.MessageSelector{
   		Type:       consumer.TAG,
   		Expression: tag,
                   StartTime: -time.Now().Add(30 * time.Second),
   }
   ```
   
   


-- 
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] fwhezfwhez commented on issue #656: How to ignore old messages ?

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


   @maixiaohai reset offset  requires specific topic, but I want to reset all. 


-- 
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] maixiaohai commented on issue #656: How to ignore old messages ?

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


   https://github.com/apache/rocketmq-externals/tree/master/rocketmq-console 
   Console has a api which could reset consumer offset through timestamp, you can refer to it.


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