Skip to content

[tools] QueryMsgByKeySubCommand should support timeRange #2156

@xujianhai666

Description

@xujianhai666

FEATURE REQUEST

  1. Please describe the feature you are requesting.

add beginTime and EndTime to queryMsgByKey command

  1. Provide any additional detail on your proposed use case for this feature.

now, queryMsgByKey looks like below:

-> %  mqadmin queryMsgByKey
usage: mqadmin queryMsgByKey [-h] -k <arg> [-n <arg>] -t <arg>
 -h,--help                Print help
 -k,--msgKey <arg>        Message Key
 -n,--namesrvAddr <arg>   Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
 -t,--topic <arg>         topic name

after proposed, we support like below:

-> %  mqadmin queryMsgByKey
usage: mqadmin queryMsgByKey [-h] -k <arg> [-n <arg>] -t <arg>
 -h,--help                Print help
 -k,--msgKey <arg>        Message Key
 -n,--namesrvAddr <arg>   Name server address list, eg: 192.168.0.1:9876;192.168.0.2:9876
 -t,--topic <arg>         topic name
 -s, --startms       default 0, 
 -e, --endms        default Long.MAX_VALUE
  1. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?

  2. If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions