GitHub user yilingfeng opened a pull request:
https://github.com/apache/incubator-rocketmq/pull/69
fix possible MQClientException when query message before today
Using "cal.set(Calendar.HOUR,0);" when query message before today which may
result in :
"org.apache.rocketmq.client.exception.MQClientException: CODE: 208 DESC:
query message by key finished, but no message. "
"HOUR" is used for the 12-hour clock.This will cause the start time of the
query message to be greater than the creation time of the message.
Implemenations:
Using "HOUR_OF_DAY" instead of "HOUR"."HOUR_OF_DAY" is used for the 24-hour
clock.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yilingfeng/incubator-rocketmq master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-rocketmq/pull/69.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #69
----
commit 45647c0f48f46e0eb75eb3504d4f71ee03c4e27a
Author: yilingfeng <[email protected]>
Date: 2017-02-24T05:20:48Z
fix possible MQClientException when query message before today
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---