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

Misleading tip on consumeTimestamp and wrong consumeTimestamp exception message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-incubating
    • 4.1.0-incubating
    • rocketmq-client
    • 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)

      Attachments

        Issue Links

          Activity

            People

              vintagewang Xiaorui Wang
              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