Skip to content

KAFKA-8430: unit test to make sure null group.id and valid group.instance.id are valid combo#6830

Merged
guozhangwang merged 2 commits into
apache:trunkfrom
abbccdda:unit_test
May 28, 2019
Merged

KAFKA-8430: unit test to make sure null group.id and valid group.instance.id are valid combo#6830
guozhangwang merged 2 commits into
apache:trunkfrom
abbccdda:unit_test

Conversation

@abbccdda

Copy link
Copy Markdown

as title suggests, this unit test is just a double check. No need to push in 2.3

Committer Checklist (excluded from commit message)

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

@abbccdda

Copy link
Copy Markdown
Author

@mjsax @guozhangwang FYI

}

@Test
public void testInitSuccessWithDefaultNullGroupIdAndValidGroupInstanceId() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: shouldIgnoreGroupInstanceIdForEmptyGroupId

Map<String, Object> config = new HashMap<>();
config.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9999");
config.put(ConsumerConfig.SEND_BUFFER_CONFIG, Selectable.USE_DEFAULT_BUFFER_SIZE);
config.put(ConsumerConfig.RECEIVE_BUFFER_CONFIG, Selectable.USE_DEFAULT_BUFFER_SIZE);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do we need to set SEND_BUFFER_CONFIG and RECEIVE_BUFFER_CONFIG ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

No we don't lol

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

LGTM. Waiting for green builds.

@abbccdda

Copy link
Copy Markdown
Author

Retest this please

@guozhangwang
guozhangwang merged commit 051379e into apache:trunk May 28, 2019
guozhangwang pushed a commit that referenced this pull request May 28, 2019
…nstance.id` are valid combo (#6830)

As title suggests, this unit test is just a double check. No need to push in 2.3

Reviewers: Guozhang Wang <wangguoz@gmail.com>, Matthias J. Sax <mjsax@apache.org>
@guozhangwang

Copy link
Copy Markdown
Contributor

Cherry-picked to 2.3 as well.

haidangdam pushed a commit to haidangdam/kafka that referenced this pull request May 29, 2019
…nstance.id` are valid combo (apache#6830)

As title suggests, this unit test is just a double check. No need to push in 2.3

Reviewers: Guozhang Wang <wangguoz@gmail.com>, Matthias J. Sax <mjsax@apache.org>
pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
…nstance.id` are valid combo (apache#6830)

As title suggests, this unit test is just a double check. No need to push in 2.3

Reviewers: Guozhang Wang <wangguoz@gmail.com>, Matthias J. Sax <mjsax@apache.org>
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.

3 participants