打印消息

./mqadmin printMsg -n localhost:9876 -t benchmark-queue-delay  -d true

延时消息,当延时时间不到的时候,消息不可见。
结果解析:
MSGID: 0A0A640381D1000000002dffc5a80001 MessageExt [brokerName=broker-a, queueId=1, storeSize=428, queueOffset=4, sysFlag=0, bornTimestamp=1733754137358, bornHost=/192.200.206.110:39918, storeTimestamp=1733754158041, storeHost=/192.200.206.110:10911, msgId=C0C8CE6E00002A9F00000000001D9A8C, commitLogOffset=1940108, bodyCRC=544272472, reconsumeTimes=0, preparedTransactionOffset=0, toString()=Message{topic='benchmark-queue-delay', flag=0, properties={TIMER_OUT_MS=1733754157000, MSG_REGION=DefaultRegion, TIMER_DELIVER_MS=1733754157351, UNIQ_KEY=0A0A640381D1000000002dffc5a80001, CLUSTER=DefaultCluster, TIMER_ENQUEUE_MS=1733754137000, MIN_OFFSET=0, TRACE_ON=true, TIMER_DEQUEUE_MS=1733754158040, REAL_TOPIC=benchmark-queue-delay, MAX_OFFSET=5, REAL_QID=1}, body=[72, 101, 108, 108, 111, 32, 82, 111, 99, 107, 101, 116, 77, 81, 32, 71, 111, 32, 67, 108, 105, 101, 110, 116, 33, 32, 48, 32, 116, 105, 109, 101, 115, 116, 97, 109, 112, 58, 49, 55, 51, 51, 55, 53, 52, 49, 51, 55], transactionId='null'}] BODY: Hello RocketMQ Go Client! 0 timestamp:1733754137

bornTimestamp 生产消息的时间
storeTimestamp 消息到期后存入实体队列的时间(猜测)
TIMER_OUT_MS 消息到期时间
TIMER_ENQUEUE_MS 消息入队,也就是生产的时间
TIMER_DEQUEUE_MS 消息出队也就是到期的时间


英雄之旅
8 声望1 粉丝