Skip to content

[ISSUE #10435] Fix shared ClientChannelInfo preventing inactive channel expiry#10437

Open
chuanxo wants to merge 1 commit into
apache:developfrom
chuanxo:fix-shared-client-channel-info_
Open

[ISSUE #10435] Fix shared ClientChannelInfo preventing inactive channel expiry#10437
chuanxo wants to merge 1 commit into
apache:developfrom
chuanxo:fix-shared-client-channel-info_

Conversation

@chuanxo
Copy link
Copy Markdown

@chuanxo chuanxo commented Jun 7, 2026

Which Issue(s) This PR Fixes

Brief Description

ClientManageProcessor.heartBeat() 在循环外只创建了一个 ClientChannelInfo 实例,多个 consumer/producer group 共享同一引用。ConsumerGroupInfo.updateChannel() 更新 lastUpdateTimestamp 时会影响所有 group,导致 scanNotActiveChannel() 无法正确过期清理已下线的 group channel。

修复方式:将 new ClientChannelInfo(...) 移到循环体内,每个 group 持有独立实例。

How Did You Test This Change?

ClientManageProcessorTest 中新增 testHeartbeatMultiGroupChannelIndependentExpiry,验证多 group 心跳场景下各 group 的 ClientChannelInfo 互相独立,未续期的 group channel 能被正常过期清理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Shared ClientChannelInfo in heartBeat() prevents scanNotActiveChannel from expiring stale groups

1 participant