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/09/18 04:16:21 UTC
[GitHub] [rocketmq] GauravVect opened a new issue #2311: CONSUME_FROM_FIRST_OFFSET not working
GauravVect opened a new issue #2311:
URL: https://github.com/apache/rocketmq/issues/2311
I am using the cpp client of rocketMQ.In the cpp client there are examples in the example directory.I tried running the example OrderlyPushConsumer.cpp with consumer.setConsumeFromWhere(CONSUME_FROM_FIRST_OFFSET) and compiled the program.
gcc -I/home/gaurav/rocketmq-client-cpp-2.1.0/include/ -o test OrderlyPushConsumer.cpp -lrocketmq -lpthread -lz -ldl -lrt -lstdc++ -std=c++11.
Then I ran the test executable
./test -n "10.22.7.89:9876" -g "VGroup" -t "PhaniRanjan" -m 1 -T 0 -c "Hello7 "
Then the message coming in messageQueue in MyMsgListener::consumeMessage is Hello7
But when i ran the test executable another time
./test -n "10.22.7.89:9876" -g "VGroup" -t "PhaniRanjan" -m 1 -T 0 -c "Hello8 "
Only the message coming in messageQueue in MyMsgListener::consumeMessage is Hello8.
But Ideally it should have come as Hello7 followed by Hello8 which is not the case.
Can someone please explain what is happening.
----------------------------------------------------------------
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] GauravVect commented on issue #2311: CONSUME_FROM_FIRST_OFFSET not working
Posted by GitBox <gi...@apache.org>.
GauravVect commented on issue #2311:
URL: https://github.com/apache/rocketmq/issues/2311#issuecomment-694798485
Hi,
Thanks for the clarification.
----------------------------------------------------------------
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] Jaskey commented on issue #2311: CONSUME_FROM_FIRST_OFFSET not working
Posted by GitBox <gi...@apache.org>.
Jaskey commented on issue #2311:
URL: https://github.com/apache/rocketmq/issues/2311#issuecomment-694714317
You are using the same consumer group, so the consumer offset has already been logged in the broker, which when the consumer restart, it should consume message by the last offset.
In a word, CONSUME_FROM will only happens when you change your consumer group name or a brand new consumer group starts.
----------------------------------------------------------------
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] GauravVect closed issue #2311: CONSUME_FROM_FIRST_OFFSET not working
Posted by GitBox <gi...@apache.org>.
GauravVect closed issue #2311:
URL: https://github.com/apache/rocketmq/issues/2311
----------------------------------------------------------------
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