Skip to content

Admin subcommand print messages when given value of argument beginTimestmamp is greater then now #379

Description

@xiaozongyang

BUG REPORT

Problem Description

When I run command sh bin/mqadmin consumeMessage -t TopicTest -s 2019-01-01#00:00:00:000 the last message from each queue is printed.

  • What did you do (The steps to reproduce)?

    1. start namesrv and broker
    2. run sh bin/tools.sh org.apache.rocketmq.example.quickstart.Producer to publish messages to topic "TestTopic"
  • What did you expect to see?
    There is no message printed in the console.

  • What did you see instead?
    The last message of each MessageQueue of the Topic TestTopic is printed.

  1. Please tell us about your environment:
  • OS: OSX El Caption Version 10.11.6
  • Java version: 1.8.0_172
  • RocketMQ version: 4.2.0

Fix Suggestion

  1. The mqadmin command should check values of option beginTimestamp and endTimestamp then report this error if it got invliad values and exit rather than processing as the valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions