You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "zhanghaou (via GitHub)" <gi...@apache.org> on 2023/07/25 03:24:29 UTC
[GitHub] [pulsar] zhanghaou opened a new pull request, #20866: [fix][broker] Delete unused param
zhanghaou opened a new pull request, #20866:
URL: https://github.com/apache/pulsar/pull/20866
### 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:
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
*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
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `doc` <!-- Your PR contains doc changes. -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->
### Matching PR in forked repository
PR in forked repository: <!-- ENTER URL HERE -->
<!--
After opening this PR, the build in apache/pulsar will fail and instructions will
be provided for opening a PR in the PR author's forked repository.
apache/pulsar pull requests should be first tested in your own fork since the
apache/pulsar CI based on GitHub Actions has constrained resources and quota.
GitHub Actions provides separate quota for pull requests that are executed in
a forked repository.
The tests will be run in the forked repository until all PR review comments have
been handled, the tests pass and the PR is approved by a reviewer.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] codecov-commenter commented on pull request #20866: [fix][broker] Delete unused param
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #20866:
URL: https://github.com/apache/pulsar/pull/20866#issuecomment-1726083182
## [Codecov](https://app.codecov.io/gh/apache/pulsar/pull/20866?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
> Merging [#20866](https://app.codecov.io/gh/apache/pulsar/pull/20866?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (a287e8c) into [master](https://app.codecov.io/gh/apache/pulsar/commit/eefc51712c97515e5913f6e5fceb4e98f5cd3b18?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (eefc517) will **increase** coverage by `36.45%`.
> The diff coverage is `n/a`.
[](https://app.codecov.io/gh/apache/pulsar/pull/20866?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
```diff
@@ 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](https://app.codecov.io/gh/apache/pulsar/pull/20866/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [inttests](https://app.codecov.io/gh/apache/pulsar/pull/20866/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `24.13% <ø> (-0.01%)` | :arrow_down: |
| [systests](https://app.codecov.io/gh/apache/pulsar/pull/20866/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `24.71% <ø> (-0.05%)` | :arrow_down: |
| [unittests](https://app.codecov.io/gh/apache/pulsar/pull/20866/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `72.50% <ø> (+40.60%)` | :arrow_up: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
| [Files Changed](https://app.codecov.io/gh/apache/pulsar/pull/20866?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [...pache/pulsar/broker/admin/v2/PersistentTopics.java](https://app.codecov.io/gh/apache/pulsar/pull/20866?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9hZG1pbi92Mi9QZXJzaXN0ZW50VG9waWNzLmphdmE=) | `80.98% <ø> (+67.85%)` | :arrow_up: |
... and [1451 files with indirect coverage changes](https://app.codecov.io/gh/apache/pulsar/pull/20866/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] zhanghaou commented on a diff in pull request #20866: [fix][broker] Delete unused param
Posted by "zhanghaou (via GitHub)" <gi...@apache.org>.
zhanghaou commented on code in PR #20866:
URL: https://github.com/apache/pulsar/pull/20866#discussion_r1286512095
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java:
##########
@@ -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,
Review Comment:
Make sense. Thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on pull request #20866: [fix][broker] Delete unused param
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on PR #20866:
URL: https://github.com/apache/pulsar/pull/20866#issuecomment-1667369508
Closed. See https://github.com/apache/pulsar/pull/20866#discussion_r1277405212.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] zhanghaou commented on a diff in pull request #20866: [fix][broker] Delete unused param
Posted by "zhanghaou (via GitHub)" <gi...@apache.org>.
zhanghaou commented on code in PR #20866:
URL: https://github.com/apache/pulsar/pull/20866#discussion_r1285618805
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java:
##########
@@ -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,
Review Comment:
@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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] nodece merged pull request #20866: [fix][broker] Delete unused param
Posted by "nodece (via GitHub)" <gi...@apache.org>.
nodece merged PR #20866:
URL: https://github.com/apache/pulsar/pull/20866
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] github-actions[bot] commented on pull request #20866: [fix][broker] Delete unused param
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #20866:
URL: https://github.com/apache/pulsar/pull/20866#issuecomment-1709344142
The pr had no activity for 30 days, mark with Stale label.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] JooHyukKim commented on a diff in pull request #20866: [fix][broker] Delete unused param
Posted by "JooHyukKim (via GitHub)" <gi...@apache.org>.
JooHyukKim commented on code in PR #20866:
URL: https://github.com/apache/pulsar/pull/20866#discussion_r1285689559
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java:
##########
@@ -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,
Review Comment:
Oh, that's great 👍🏻
Also, it will be nice if can keep consistencey with [REST API documentation](https://pulsar.apache.org/admin-rest-api/#operation/PersistentTopics_removeReplicationClusters), maybe check `doc-required` instead?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on a diff in pull request #20866: [fix][broker] Delete unused param
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on code in PR #20866:
URL: https://github.com/apache/pulsar/pull/20866#discussion_r1285509079
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java:
##########
@@ -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,
Review Comment:
I second @JooHyukKim's suggestion. For compatiblity we should not remove param.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] JooHyukKim commented on a diff in pull request #20866: [fix][broker] Delete unused param
Posted by "JooHyukKim (via GitHub)" <gi...@apache.org>.
JooHyukKim commented on code in PR #20866:
URL: https://github.com/apache/pulsar/pull/20866#discussion_r1277405212
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java:
##########
@@ -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,
Review Comment:
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`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun closed pull request #20866: [fix][broker] Delete unused param
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun closed pull request #20866: [fix][broker] Delete unused param
URL: https://github.com/apache/pulsar/pull/20866
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] JooHyukKim commented on a diff in pull request #20866: [fix][broker] Delete unused param
Posted by "JooHyukKim (via GitHub)" <gi...@apache.org>.
JooHyukKim commented on code in PR #20866:
URL: https://github.com/apache/pulsar/pull/20866#discussion_r1285689559
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java:
##########
@@ -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,
Review Comment:
Oh, that's great 👍🏻
It will be nice if can keep consistencey with [REST API documentation](fhttps://pulsar.apache.org/admin-rest-api/#operation/PersistentTopics_removeReplicationClusters), maybe check `doc-required` instead?

##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java:
##########
@@ -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,
Review Comment:
Oh, that's great 👍🏻
It will be nice if can keep consistencey with [REST API documentation](fhttps://pulsar.apache.org/admin-rest-api/#operation/PersistentTopics_removeReplicationClusters), maybe check `doc-required` instead?

##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java:
##########
@@ -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,
Review Comment:
Oh, that's great 👍🏻
Also, it will be nice if can keep consistencey with [REST API documentation](fhttps://pulsar.apache.org/admin-rest-api/#operation/PersistentTopics_removeReplicationClusters), maybe check `doc-required` instead?

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tisonkun commented on pull request #20866: [fix][broker] Delete unused param
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on PR #20866:
URL: https://github.com/apache/pulsar/pull/20866#issuecomment-1726094511
@Technoboy- @nodece may you do another check?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org