Skip to content

MINOR: Print all removed dynamic members during join complete#8816

Merged
guozhangwang merged 4 commits into
apache:trunkfrom
abbccdda:minor_group_coordinator
Jun 10, 2020
Merged

MINOR: Print all removed dynamic members during join complete#8816
guozhangwang merged 4 commits into
apache:trunkfrom
abbccdda:minor_group_coordinator

Conversation

@abbccdda

@abbccdda abbccdda commented Jun 5, 2020

Copy link
Copy Markdown

For better visibility on the group rebalance, we are trying to print out the evicted members inside the group coordinator during rebalance complete.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

Comment thread core/src/main/scala/kafka/coordinator/group/GroupCoordinator.scala
Comment thread core/src/main/scala/kafka/coordinator/group/GroupCoordinator.scala Outdated
for (member <- group.allMemberMetadata) {
val joinResult = JoinGroupResult(
members = if (group.isLeader(member.memberId)) {
info(s"Group ${group.groupId} replies the leader with " +

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to print this for every member? That is O(n^2). Keep in mind that groups in the thousands are not unheard of. I think it would be better if we just ensured that we log the id of every member entering and leaving the group.

@abbccdda
abbccdda force-pushed the minor_group_coordinator branch from 901f50e to fcfb77f Compare June 6, 2020 00:32
@abbccdda abbccdda changed the title MINOR: Print all members during join complete MINOR: Print all removed dynamic members during join complete Jun 6, 2020
@guozhangwang

Copy link
Copy Markdown
Contributor

okay to test

@guozhangwang

Copy link
Copy Markdown
Contributor

okay to test

1 similar comment
@guozhangwang

Copy link
Copy Markdown
Contributor

okay to test

@vvcephei

vvcephei commented Jun 9, 2020

Copy link
Copy Markdown
Contributor

Test this please

1 similar comment
@vvcephei

vvcephei commented Jun 9, 2020

Copy link
Copy Markdown
Contributor

Test this please

@vvcephei

vvcephei commented Jun 9, 2020

Copy link
Copy Markdown
Contributor

Retest this please

@guozhangwang guozhangwang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improved test assertion coverage too! Merging to trunk.

group.notYetRejoinedMembers.filterNot(_.isStaticMember) foreach { failedMember =>
removeHeartbeatForLeavingMember(group, failedMember)
group.remove(failedMember.memberId)
group.removeStaticMember(failedMember.groupInstanceId)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch.

@guozhangwang
guozhangwang merged commit 84051e0 into apache:trunk Jun 10, 2020
ijuma added a commit to ijuma/kafka that referenced this pull request Nov 17, 2020
…t-for-generated-requests

* apache-github/trunk: (248 commits)
  KAFKA-10049: Fixed FKJ bug where wrapped serdes are set incorrectly when using default StreamsConfig serdes (apache#8764)
  KAFKA-10027: Implement read path for feature versioning system (KIP-584) (apache#8680)
  KAFKA-10085: correctly compute lag for optimized source changelogs (apache#8787)
  KAFKA-10086: Integration test for ensuring warmups are effective (apache#8818)
  KAFKA-9374: Make connector interactions asynchronous (apache#8069)
  MINOR: reduce sizeInBytes for percentiles metrics (apache#8835)
  KAFKA-10115: Incorporate errors.tolerance with the Errant Record Reporter (apache#8829)
  KAFKA-9216: Enforce that Connect’s internal topics use `compact` cleanup policy (apache#8828)
  KAFKA-9845: Warn users about using config providers with plugin.path property (apache#8455)
  KAFKA-7833: Add missing test (apache#8847)
  KAFKA-9066: Retain metrics for failed tasks (apache#8502)
  KAFKA-9841: Revoke duplicate connectors and tasks when zombie workers return with an outdated assignment (apache#8453)
  KAFKA-9985: Sink connector may exhaust broker when writing in DLQ (apache#8663)
  KAFKA-9441: remove prepareClose() to simplify task management (apache#8833)
  KAFKA-7833: Add Global/StateStore name conflict check (apache#8825)
  KAFKA-9969: Exclude ConnectorClientConfigRequest from class loading isolation (apache#8630)
  KAFKA-9991: Fix flaky unit tests (apache#8843)
  KAFKA-10014; Always try to close all channels in Selector#close (apache#8685)
  KAFKA-10079: improve thread-level stickiness (apache#8775)
  MINOR: Print all removed dynamic members during join complete (apache#8816)
  ...
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.

5 participants