wenbingshen commented on code in PR #95: URL: https://github.com/apache/flink-connector-pulsar/pull/95#discussion_r1738486812
########## flink-connector-pulsar/src/main/java/org/apache/flink/connector/pulsar/source/reader/PulsarPartitionSplitReader.java: ########## @@ -196,7 +197,14 @@ public void handleSplitsChanges(SplitsChange<PulsarPartitionSplit> splitsChanges MessageId latestConsumedId = registeredSplit.getLatestConsumedId(); if (latestConsumedId != null) { - LOG.info("Reset subscription position by the checkpoint {}", latestConsumedId); + if (latestConsumedId instanceof BatchMessageIdImpl) { Review Comment: MessageIdAdv is inaccurate. It contains implementations such as MessageIdImpl, not BatchMessageId. Here we want to print out the correct batchSize. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org