[
https://issues.apache.org/jira/browse/ROCKETMQ-189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16003902#comment-16003902
]
ASF GitHub Bot commented on ROCKETMQ-189:
-----------------------------------------
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 ?
> Misleading tip on consumeTimestamp and wrong consumeTimestamp exception
> message
> -------------------------------------------------------------------------------
>
> Key: ROCKETMQ-189
> URL: https://issues.apache.org/jira/browse/ROCKETMQ-189
> Project: Apache RocketMQ
> Issue Type: Bug
> Components: rocketmq-client
> Affects Versions: 4.0.0-incubating
> Environment: macos,jdk8
> Reporter: lindzh
> Assignee: Xiaorui Wang
> Labels: easyfix
> Fix For: 4.1.0-incubating
>
> Original Estimate: 12h
> Remaining Estimate: 12h
>
> When I want to consume message,I use the following code,
> {quote}
> consumer.setConsumeFromWhere(ConsumeFromWhere.CONSUME_FROM_FIRST_OFFSET);
> consumer.setConsumeTimestamp("2017_0422_235500");
> {quote}
> and I got the tip as following:
> {quote}
> 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)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)