-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Command line function: Query messages by Key. The time range and number of data bars cannot be specified at this time. Fixed returning 64 data and query full messages.In some special scenarios, the requirements cannot be met.
Therefore, you are advised to optimize the logic and specify the time range and number of data items. QueryMsgTraceByIdSubCommand is in the same situation
- After optimization, QueryMsgByKeySubCommand help:
usage: mqadmin queryMsgByKey [-b ] [-e ] [-h] -k [-n ] [-num ] -t
-b,--beginTimestamp Begin timestamp(ms). default:0, eg:1676730526212
-e,--endTimestamp End timestamp(ms). default:Long.MAX_VALUE, eg:1676730526212
-h,--help Print help
-k,--msgKey Message Key
-n,--namesrvAddr Name server address list, eg: '192.168.0.1:9876;192.168.0.2:9876'
-num,--maxNum The maximum number of messages returned by the query, default:64
-t,--topic topic name
- After optimization,QueryMsgTraceByIdSubCommand help:
usage: mqadmin queryMsgTraceById [-b ] [-e ] [-h] -i [-n ] [-num ] [-t ]
-b,--beginTimestamp Begin timestamp(ms). default:0, eg:1676730526212
-e,--endTimestamp End timestamp(ms). default:Long.MAX_VALUE, eg:1676730526212
-h,--help Print help
-i,--msgId Message Id
-n,--namesrvAddr Name server address list, eg: '192.168.0.1:9876;192.168.0.2:9876'
-num,--maxNum The maximum number of messages returned by the query, default:64
-t,--traceTopic The name value of message trace topic