vongosling closed pull request #72: [ROCKETMQ-134]the offset of message filter
by tags may be not commit to broker
URL: https://github.com/apache/rocketmq/pull/72
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPushConsumerImpl.java
b/client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPushConsumerImpl.java
index 4f33732dd..c9dd173f5 100644
---
a/client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPushConsumerImpl.java
+++
b/client/src/main/java/org/apache/rocketmq/client/impl/consumer/DefaultMQPushConsumerImpl.java
@@ -280,6 +280,12 @@ public void onSuccess(PullResult pullResult) {
switch (pullResult.getPullStatus()) {
case FOUND:
+ if (pullResult.getMsgFoundList().size() == 0) {
+
pullRequest.setNextOffset(pullResult.getNextBeginOffset());
+
DefaultMQPushConsumerImpl.this.correctTagsOffset(pullRequest);
+
DefaultMQPushConsumerImpl.this.executePullRequestImmediately(pullRequest);
+ break;
+ }
long prevRequestOffset =
pullRequest.getNextOffset();
pullRequest.setNextOffset(pullResult.getNextBeginOffset());
long pullRT = System.currentTimeMillis() -
beginTimestamp;
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services