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

   > 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?
   
   when upgrading RocketMQ from **4.9.x → 5.4.x → 5.5.x**, the Slave node 
throws 
   `com.alibaba.fastjson2.JSONException: not support unquoted name` or 
   `illegal number` during consumerOffset synchronization.
   
   
   Regardless of whether pullOffsetTable and groupTopicMap are added to 
ConsumerOffsetSerializeWrapper, 
   the try-catch fallback in RemotingSerializable is always necessary


-- 
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