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

Misleading tip on consumeTimestamp and wrong consumeTimestamp exception message

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0-incubating
    • Fix Version/s: 4.1.0-incubating
    • Component/s: rocketmq-client
    • Labels:
    • Environment:
      macos,jdk8

      Description

      When I want to consume message,I use the following code,

      consumer.setConsumeFromWhere(ConsumeFromWhere.CONSUME_FROM_FIRST_OFFSET);
      consumer.setConsumeTimestamp("2017_0422_235500");

      and I got the tip as following:

      Exception in thread "main" org.apache.rocketmq.client.exception.MQClientException: consumeTimestamp is invalid, YYYY_MMDD_HHMMSS
      See http://rocketmq.apache.org/docs/faq/ for further details.
      at org.apache.rocketmq.client.impl.consumer.DefaultMQPushConsumerImpl.checkConfig(DefaultMQPushConsumerImpl.java:661)

        Issue Links

          Activity

          Hide
          lindzh lindzh added a comment -
          Show
          lindzh lindzh added a comment - Github pull request : https://github.com/apache/incubator-rocketmq/pull/97
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user vongosling commented on the issue:

          https://github.com/apache/incubator-rocketmq/pull/97

          IMO,if we could polish here. we 'd better tell what's wrong with your input and what's a valid input ,right ?

          Show
          githubbot ASF GitHub Bot added a comment - Github user vongosling commented on the issue: https://github.com/apache/incubator-rocketmq/pull/97 IMO,if we could polish here. we 'd better tell what's wrong with your input and what's a valid input ,right ?
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user lindzh commented on the issue:

          https://github.com/apache/incubator-rocketmq/pull/97

          Providing a user-friendly feedback makes our component use more easily.

          Show
          githubbot ASF GitHub Bot added a comment - Github user lindzh commented on the issue: https://github.com/apache/incubator-rocketmq/pull/97 Providing a user-friendly feedback makes our component use more easily.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 99ce40a72382dd5b7ecb5eb5717b8daf84a90682 in incubator-rocketmq's branch refs/heads/develop from lindzh
          [ https://git-wip-us.apache.org/repos/asf?p=incubator-rocketmq.git;h=99ce40a ]

          ROCKETMQ-189 Misleading tip on consumeTimestamp and wrong consumeTimestamp exception message closes apache/incubator-rocketmq#97

          Show
          jira-bot ASF subversion and git services added a comment - Commit 99ce40a72382dd5b7ecb5eb5717b8daf84a90682 in incubator-rocketmq's branch refs/heads/develop from lindzh [ https://git-wip-us.apache.org/repos/asf?p=incubator-rocketmq.git;h=99ce40a ] ROCKETMQ-189 Misleading tip on consumeTimestamp and wrong consumeTimestamp exception message closes apache/incubator-rocketmq#97
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user dongeforever commented on the issue:

          https://github.com/apache/incubator-rocketmq/pull/97

          @lindzh This is PR is merged. you may close this PR now

          Show
          githubbot ASF GitHub Bot added a comment - Github user dongeforever commented on the issue: https://github.com/apache/incubator-rocketmq/pull/97 @lindzh This is PR is merged. you may close this PR now
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

          https://github.com/apache/incubator-rocketmq/pull/97

          Show
          githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/incubator-rocketmq/pull/97

            People

            • Assignee:
              vintagewang Xiaorui Wang
              Reporter:
              lindzh lindzh
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 12h
                12h
                Remaining:
                Remaining Estimate - 12h
                12h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development