Allenhuangrui commented on code in PR #11624:
URL: https://github.com/apache/rocketmq/pull/11624#discussion_r4765549429
##########
proxy/src/main/java/org/apache/rocketmq/proxy/service/sysmessage/HeartbeatSyncer.java:
##########
@@ -210,6 +244,7 @@ public ConsumeConcurrentlyStatus
consumeMessage(List<MessageExt> msgs, ConsumeCo
channel = remoteChannelMap.getOrDefault(key,
decodedChannel);
}
channel.setExtendAttribute(decodedChannel.getChannelExtendAttribute());
+ processHeartbeatData(data, channel);
Review Comment:
Updated in f3c384dde2860d791ff006a992e9eb4c7c191e6d. Neither hook receives
HeartbeatSyncerData now:
- The send hook receives the original group and a mutable copy of extInfo.
The copy is written back only after a successful callback, so partial extension
updates are discarded on failure.
- The receive hook receives the original group, extInfo, and the actual
RemoteChannel used for registration/unregistration. Keeping the channel lets
extensions attach connection metadata before consumer events run; the mutable
heartbeat DTO stays private to the syncer.
Added regression coverage for extension keys resembling core fields,
callback failures, channel reuse and cache cleanup, and empty extensions. The
wire format is unchanged. Runtime verification is still pending because the
remote test environment is unavailable; this revision has passed git diff
--check.
--
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]