Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][broker] Delete unused param #20866

Merged
merged 2 commits into from
Sep 20, 2023
Merged

[fix][broker] Delete unused param #20866

merged 2 commits into from
Sep 20, 2023

Conversation

zhanghaou
Copy link
Contributor

@zhanghaou zhanghaou commented Jul 25, 2023

Modifications

Delete unused param in removeReplicationClusters.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jul 25, 2023
@@ -2217,7 +2217,6 @@ public void setReplicationClusters(
public void removeReplicationClusters(@Suspended final AsyncResponse asyncResponse,
@PathParam("tenant") String tenant, @PathParam("namespace") String namespace,
@PathParam("topic") @Encoded String encodedTopic,
@QueryParam("backlogQuotaType") BacklogQuotaType backlogQuotaType,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change backward compatible, like clients that used to send request and succeed won't suddenly fail? If not, this change needs doc-required

Copy link
Member

Choose a reason for hiding this comment

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

I second @JooHyukKim's suggestion. For compatiblity we should not remove param.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JooHyukKim @tisonkun It is a QueryParam, and it is optional, I don't think there are compatibility issues. If we delete this QueryParam and user send a request with 'backlogQuotaType', it works well.

Copy link
Contributor

@JooHyukKim JooHyukKim Aug 7, 2023

Choose a reason for hiding this comment

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

Oh, that's great 👍🏻

Also, it will be nice if can keep consistencey with REST API documentation, maybe check doc-required instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make sense. Thanks.

@Technoboy- Technoboy- added this to the 3.2.0 milestone Jul 31, 2023
@tisonkun

This comment was marked as outdated.

@tisonkun tisonkun closed this Aug 7, 2023
@tisonkun tisonkun reopened this Aug 7, 2023
@github-actions github-actions bot added doc-required Your PR changes impact docs and you will update later. and removed doc-not-needed Your PR changes do not impact docs labels Aug 8, 2023
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

The pr had no activity for 30 days, mark with Stale label.

@github-actions github-actions bot added the Stale label Sep 7, 2023
Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

Thank you!

@codecov-commenter
Copy link

Codecov Report

Merging #20866 (a287e8c) into master (eefc517) will increase coverage by 36.45%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #20866       +/-   ##
=============================================
+ Coverage     36.75%   73.20%   +36.45%     
- Complexity    12193    32475    +20282     
=============================================
  Files          1698     1887      +189     
  Lines        130430   140117     +9687     
  Branches      14250    15426     +1176     
=============================================
+ Hits          47940   102574    +54634     
+ Misses        76167    29442    -46725     
- Partials       6323     8101     +1778     
Flag Coverage Δ
inttests 24.13% <ø> (-0.01%) ⬇️
systests 24.71% <ø> (-0.05%) ⬇️
unittests 72.50% <ø> (+40.60%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...pache/pulsar/broker/admin/v2/PersistentTopics.java 80.98% <ø> (+67.85%) ⬆️

... and 1451 files with indirect coverage changes

@tisonkun
Copy link
Member

@Technoboy- @nodece may you do another check?

@github-actions github-actions bot removed the Stale label Sep 20, 2023
Copy link
Member

@nodece nodece left a comment

Choose a reason for hiding this comment

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

LGTM

@nodece nodece merged commit 1b7084b into apache:master Sep 20, 2023
45 checks passed
@nodece nodece added the type/cleanup Code or doc cleanups e.g. remove the outdated documentation or remove the code no longer in use label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-required Your PR changes impact docs and you will update later. type/cleanup Code or doc cleanups e.g. remove the outdated documentation or remove the code no longer in use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants