Skip to content

KAFKA-10028: Minor fixes to describeFeatures and updateFeatures apis#9393

Merged
junrao merged 1 commit intoapache:trunkfrom
kowshik:kip584_fix_review_comment_error_msg
Oct 8, 2020
Merged

KAFKA-10028: Minor fixes to describeFeatures and updateFeatures apis#9393
junrao merged 1 commit intoapache:trunkfrom
kowshik:kip584_fix_review_comment_error_msg

Conversation

@kowshik
Copy link
Copy Markdown
Contributor

@kowshik kowshik commented Oct 8, 2020

In this PR, I have addressed the review comments from @chia7712 in #9001 which were provided after #9001 was merged. The changes are made mainly to KafkaAdminClient:

  1. Improve error message in updateFeatures api when feature name is empty.
  2. Propagate top-level error message in updateFeatures api.
  3. Add an empty-parameter variety for describeFeatures api.
  4. Minor documentation updates to @param and @return to make these resemble other apis.

Test plan:
Relying on existing unit and integration tests.

@kowshik kowshik changed the title KAFKA-10028: Minor fix to updateFeatures error message KAFKA-10028: Minor fixes to describeFeatures and updateFeatures apis Oct 8, 2020
Copy link
Copy Markdown
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM

@kowshik
Copy link
Copy Markdown
Contributor Author

kowshik commented Oct 8, 2020

@chia7712 thanks for the review! would you be able to please help merge this PR into trunk when CI passes?

@chia7712
Copy link
Copy Markdown
Member

chia7712 commented Oct 8, 2020

I can't merge it since I'm not a Kafka committer 😅

@junrao Could you please take a look?

Copy link
Copy Markdown
Contributor

@junrao junrao left a comment

Choose a reason for hiding this comment

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

@kowshik : Thanks for the PR. LGTM

@junrao junrao merged commit de41834 into apache:trunk Oct 8, 2020
junrao pushed a commit that referenced this pull request Oct 8, 2020
…9393)

In this PR, I have addressed the review comments from @chia7712 in #9001 which were provided after #9001 was merged. The changes are made mainly to KafkaAdminClient:

Improve error message in updateFeatures api when feature name is empty.
Propagate top-level error message in updateFeatures api.
Add an empty-parameter variety for describeFeatures api.
Minor documentation updates to @param and @return to make these resemble other apis.

Reviewers: Chia-Ping Tsai chia7712@gmail.com, Jun Rao junrao@gmail.com
mattwong949 pushed a commit to confluentinc/kafka that referenced this pull request Oct 13, 2020
* Updating trunk versions after cutting branch for 2.7

* KAFKA-9929: Support backward iterator on SessionStore (apache#9139)

Implements KIP-617 for `SessionStore`

Reviewers: A. Sophie Blee-Goldman <sophie@confluent.io>, John Roesler <vvcephei@apache.org>

* MINOR: remove unused scala files from core module (apache#9296)


Reviewers: Mickael Maison <mickael.maison@gmail.com>, Lee Dongjin <dongjin@apache.org>

* MINOR: correct package of LinuxIoMetricsCollector (apache#9271)


Reviewers: Mickael Maison <mickael.maison@gmail.com>, Lee Dongjin <dongjin@apache.org>

* KAFKA-10028: Minor fixes to describeFeatures and updateFeatures apis (apache#9393)

In this PR, I have addressed the review comments from @chia7712 in apache#9001 which were provided after apache#9001 was merged. The changes are made mainly to KafkaAdminClient:

Improve error message in updateFeatures api when feature name is empty.
Propagate top-level error message in updateFeatures api.
Add an empty-parameter variety for describeFeatures api.
Minor documentation updates to @param and @return to make these resemble other apis.

Reviewers: Chia-Ping Tsai chia7712@gmail.com, Jun Rao junrao@gmail.com

* KAFKA-10271: Performance regression while fetching a key from a single partition (apache#9020)

StreamThreadStateStoreProvider excessive loop over calling internalTopologyBuilder.topicGroups(), which is synchronized, thus causing significant performance degradation to the caller, especially when store has many partitions.

Reviewers: John Roesler <vvcephei@apache.org>, Guozhang Wang <wangguoz@gmail.com>

Co-authored-by: Jorge Esteban Quilcate Otoya <quilcate.jorge@gmail.com>
Co-authored-by: Chia-Ping Tsai <chia7712@gmail.com>
Co-authored-by: Kowshik Prakasam <kprakasam@confluent.io>
Co-authored-by: Dima Reznik <dima.r@fiverr.com>
* @param options the options to use
* @return the {@link UpdateFeaturesResult} containing the result
*/
UpdateFeaturesResult updateFeatures(Map<String, FeatureUpdate> featureUpdates, UpdateFeaturesOptions options);
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.

It appears we forgot to add an overload for updateFeatures. @kowshik @junrao WDYT? Is it worth adding consistency for now?

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 finding this. Yes, we can add an overload w/o options for consistency. It would be useful to update the original KIP and the discussion thread with the change.

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.

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.

4 participants