zk-drizzle commented on code in PR #6724:
URL: https://github.com/apache/rocketmq/pull/6724#discussion_r1227571619


##########
broker/src/main/java/org/apache/rocketmq/broker/processor/ClientManageProcessor.java:
##########
@@ -138,6 +144,63 @@ public RemotingCommand heartBeat(ChannelHandlerContext 
ctx, RemotingCommand requ
         }
         response.setCode(ResponseCode.SUCCESS);
         response.setRemark(null);
+        response.addExtField(MixAll.IS_SUPPORT_HEART_BEAT_V2, 
Boolean.TRUE.toString());
+        response.addExtField(MixAll.IS_SUB_CHANGE, Boolean.TRUE.toString());
+        return response;
+    }
+
+    private RemotingCommand heartBeatV2(ChannelHandlerContext ctx, 
HeartbeatData heartbeatData, ClientChannelInfo clientChannelInfo, 
RemotingCommand response) {
+        boolean isSubChange = false;
+        for (ConsumerData consumerData : heartbeatData.getConsumerDataSet()) {
+            //Reject the PullConsumer
+            if 
(brokerController.getBrokerConfig().isRejectPullConsumerEnable()) {
+                if (ConsumeType.CONSUME_ACTIVELY == 
consumerData.getConsumeType()) {
+                    continue;
+                }
+            }
+            if (null != 
consumerGroupHeartbeatTable.get(consumerData.getGroupName()) && 
consumerGroupHeartbeatTable.get(consumerData.getGroupName()) != 
heartbeatData.getHeartbeatFingerprint()) {

Review Comment:
   Thank you for your review,  one line is also a kind of beauty~



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