Skip to content

KAFKA-7253 The connector type responded by worker is always null when…#5470

Merged
hachikuji merged 1 commit intoapache:trunkfrom
chia7712:KAFKA-7253
Jan 8, 2019
Merged

KAFKA-7253 The connector type responded by worker is always null when…#5470
hachikuji merged 1 commit intoapache:trunkfrom
chia7712:KAFKA-7253

Conversation

@chia7712
Copy link
Copy Markdown
Member

@chia7712 chia7712 commented Aug 7, 2018

Committer Checklist (excluded from commit message)

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

@chia7712
Copy link
Copy Markdown
Member Author

chia7712 commented Aug 7, 2018

ReassignPartitionsClusterTest pass locally

@chia7712 chia7712 force-pushed the KAFKA-7253 branch 2 times, most recently from deedafa to 3b347a3 Compare August 29, 2018 12:50
@chia7712
Copy link
Copy Markdown
Member Author

There already is a related test - DistributedHerderTest#testCreateConnector. However, ConnectorInfo#equals doesn't compare the connector type so DistributedHerderTest#testCreateConnector doesn't discover the bug.

@chia7712
Copy link
Copy Markdown
Member Author

@hachikuji Could you please take a look if you have free cycle? thanks!

@chia7712
Copy link
Copy Markdown
Member Author

Ping for reviews since this bug is related to public APIs of connector

Copy link
Copy Markdown
Contributor

@hachikuji hachikuji left a comment

Choose a reason for hiding this comment

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

Left a minor comment, but otherwise LGTM.

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.

We should update hashCode as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@hachikuji You are right. Will update the PR asap

@hachikuji
Copy link
Copy Markdown
Contributor

The failures appear to be unrelated. I will go ahead and merge. Thanks for the patch!

@chia7712
Copy link
Copy Markdown
Member Author

chia7712 commented Jan 8, 2019

The failures appear to be unrelated. I will go ahead and merge. Thanks for the patch!

Thanks for the review!

@hachikuji hachikuji merged commit 9601315 into apache:trunk Jan 8, 2019
hachikuji pushed a commit that referenced this pull request Jan 8, 2019
…connector (#5470)

The null map returned from the current snapshot causes the null type in response. The connector class name can be taken from the config of request instead since we require the config should contain the connector class name.

Reviewers: Jason Gustafson <jason@confluent.io>
hachikuji pushed a commit that referenced this pull request Jan 8, 2019
…connector (#5470)

The null map returned from the current snapshot causes the null type in response. The connector class name can be taken from the config of request instead since we require the config should contain the connector class name.

Reviewers: Jason Gustafson <jason@confluent.io>
@chia7712
Copy link
Copy Markdown
Member Author

chia7712 commented Jan 8, 2019

@hachikuji Is this PR backported to 1.x? This PR fix a bug about public APIs (I assume connector restful APIs is a part of kafka's public APIs)

pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
…connector (apache#5470)

The null map returned from the current snapshot causes the null type in response. The connector class name can be taken from the config of request instead since we require the config should contain the connector class name.

Reviewers: Jason Gustafson <jason@confluent.io>
@chia7712 chia7712 deleted the KAFKA-7253 branch March 25, 2024 15:23
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.

2 participants