spring-cloud-alibaba DefaultMQPushConsumer set CONSUME_FROM_LAST_OFFSET does't work

6za6bjd0  于 3个月前  发布在  Spring
关注(0)|答案(2)|浏览(84)

For a new consumer group, call

DefaultMQPushConsumer.setConsumeFromWhere(ConsumeFromWhere.CONSUME_FROM_LAST_OFFSET);

offsetStore.readOffset(mq, ReadOffsetType.READ_FROM_STORE) never return -1

so it still pulls all the msgs in the topic. If it is bug, i want to solve it.

相关问题