Uploaded image for project: 'Apache RocketMQ'
  1. Apache RocketMQ
  2. ROCKETMQ-111

fix possible MQClientException when query message before today

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              lollipop Jixiang Jin
              yilingfeng Yiling Feng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: