Replies: 1 comment
-
可以用正则表达式取每一对{"brokerName":"broker-a","queueId":7,"topic":"evidence-sync-cloud"}:{"brokerOffset":0,"consumerOffset":0,"lastTimestamp":0}这样的数据,然后单独反序列化具体每一对数据。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
查询rocketmq的admin api,ExamineConsumeStats
rocketmq返回的内容:
可以看到在offsetTable里面的数据并不是标准的json。
查看了rocketmq的源码,发现定义的是一个以MessageQueue为key的HashMap:
这样的非标准的json返回数据给golang解析带来了很大困扰,请问下怎么处理这样的数据
Beta Was this translation helpful? Give feedback.
All reactions