yx9o commented on PR #10283:
URL: https://github.com/apache/rocketmq/pull/10283#issuecomment-4388649374

   Thanks for working on this.
   
   I think the root cause is the response-shape mismatch, not numeric map key 
deserialization itself. Declared typed fields like `offsetTable` can 
deserialize the old-style `{0:0}` queueId key correctly.
   
   `GET_ALL_CONSUMER_OFFSET` may return `pullOffsetTable` from 
`ConsumerOffsetManager.encode()`, but `ConsumerOffsetSerializeWrapper` does not 
declare it. fastjson2 then treats `pullOffsetTable` as an unknown field and 
fails while skipping its nested numeric queueId key.
   
   Could we add `pullOffsetTable` to the wrapper, cover the mixed `offsetTable` 
+ `pullOffsetTable` response with a regression test, and check other 
encode/decode wrappers for similar mismatches?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to