yiduwangkai commented on code in PR #46:
URL: https://github.com/apache/rocketmq-flink/pull/46#discussion_r1002666864
##########
src/main/java/org/apache/rocketmq/flink/source/enumerator/RocketMQSourceEnumerator.java:
##########
@@ -337,16 +339,16 @@ private long getOffsetByMessageQueue(MessageQueue mq)
throws MQClientException {
} else {
switch (consumerOffsetMode) {
case CONSUMER_OFFSET_EARLIEST:
- offset = consumer.minOffset(mq);
- break;
+ consumer.seekToBegin(mq);
+ return -1;
case CONSUMER_OFFSET_LATEST:
- offset = consumer.maxOffset(mq);
- break;
+ consumer.seekToEnd(mq);
+ return -1;
Review Comment:
new api can not get the offset, when set maxoffset or minoffset
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]