You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@rocketmq.apache.org by "dongeforever (JIRA)" <ji...@apache.org> on 2017/05/26 08:43:05 UTC
[jira] [Closed] (ROCKETMQ-189) Misleading tip on consumeTimestamp
and wrong consumeTimestamp exception message
[ https://issues.apache.org/jira/browse/ROCKETMQ-189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
dongeforever closed ROCKETMQ-189.
---------------------------------
Resolution: Fixed
> 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)