You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@rocketmq.apache.org by "Yiling Feng (JIRA)" <ji...@apache.org> on 2017/02/24 13:59:44 UTC
[jira] [Created] (ROCKETMQ-111) fix possible MQClientException when
query message before today
Yiling Feng created ROCKETMQ-111:
------------------------------------
Summary: fix possible MQClientException when query message before today
Key: ROCKETMQ-111
URL: https://issues.apache.org/jira/browse/ROCKETMQ-111
Project: Apache RocketMQ
Issue Type: Bug
Components: rocketmq-commons
Affects Versions: 4.0.0-incubating
Reporter: Yiling Feng
Assignee: Jixiang Jin
Fix For: 4.0.0-incubating
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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)