Skip to content

[fix][broker] Fix splitNamespaceBundle api request param - #14758

Merged
nodece merged 1 commit into
apache:masterfrom
nodece:fix_splite_ns_bundle_param
Dec 4, 2022
Merged

nodece merged 1 commit into
apache:masterfrom
nodece:fix_splite_ns_bundle_param

Conversation

@nodece

@nodece nodece commented Mar 19, 2022 •

Copy link
Copy Markdown
Member

Signed-off-by: Zixuan Liu [email protected]

Motivation

org.apache.pulsar.broker.admin.v1.Namespaces#splitNamespaceBundle and org.apache.pulsar.broker.admin.v2.Namespaces#splitNamespaceBundle are inconsistent, should get splitBoundaries data from request body, and miss the splitAlgorithmName.

Modifications

  • Modify the @QueryParam to @ApiParam at v1 API
  • Add splitAlgorithmName param to v1 API

Documentation

  • no-need-doc

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Mar 19, 2022

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

@nodece
nodece force-pushed the fix_splite_ns_bundle_param branch from df9cd07 to cb7ed49 Compare March 20, 2022 10:19
@nodece

nodece commented Mar 20, 2022

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

1 similar comment
@nodece

nodece commented Mar 20, 2022

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@nodece nodece changed the title [fix][broker]: Fix splitNamespaceBundle api request param [fix][broker] Fix splitNamespaceBundle api request param Mar 21, 2022
@nodece
nodece force-pushed the fix_splite_ns_bundle_param branch from cb7ed49 to 83b561d Compare March 21, 2022 02:53
@codelipenghui codelipenghui added this to the 2.11.0 milestone Mar 21, 2022
@nodece
nodece force-pushed the fix_splite_ns_bundle_param branch from 83b561d to 9c769d1 Compare March 21, 2022 04:48
@ApiParam("splitBoundaries") List<Long> splitBoundaries) {
try {
validateNamespaceName(property, cluster, namespace);
if (StringUtils.isEmpty(splitAlgorithmName)) {

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.

Keep the old behavior.

@nodece
nodece force-pushed the fix_splite_ns_bundle_param branch 2 times, most recently from 8d970a0 to 128d31b Compare March 21, 2022 04:52
@nodece

nodece commented Mar 21, 2022

Copy link
Copy Markdown
Member Author

/pulsarbot rerun-failure-checks

1 similar comment
@nodece

nodece commented Mar 22, 2022

Copy link
Copy Markdown
Member Author

/pulsarbot rerun-failure-checks

@nodece

nodece commented Mar 22, 2022

Copy link
Copy Markdown
Member Author

/pulsarbot rerun-failure-checks

@nodece

nodece commented Mar 25, 2022

Copy link
Copy Markdown
Member Author

/pulsarbot rerun-failure-checks

@nodece
nodece force-pushed the fix_splite_ns_bundle_param branch from 128d31b to de785ce Compare April 7, 2022 10:02
@nodece
nodece force-pushed the fix_splite_ns_bundle_param branch from de785ce to ff68593 Compare April 29, 2022 09:10
@nodece

nodece commented Apr 29, 2022

Copy link
Copy Markdown
Member Author

/pulsarbot rerun-failure-checks

@nodece

nodece commented Apr 30, 2022

Copy link
Copy Markdown
Member Author

/pulsarbot rerun-failure-checks

1 similar comment
@nodece

nodece commented May 4, 2022

Copy link
Copy Markdown
Member Author

/pulsarbot rerun-failure-checks

@nodece
nodece force-pushed the fix_splite_ns_bundle_param branch from ff68593 to 1f3887c Compare May 5, 2022 02:45
@nodece

nodece commented May 11, 2022

Copy link
Copy Markdown
Member Author

/pulsarbot rerun-failure-checks

@nodece
nodece force-pushed the fix_splite_ns_bundle_param branch from 1f3887c to d143fb0 Compare May 13, 2022 02:42
@github-actions

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the Stale label Jun 13, 2022
@nodece

nodece commented Jun 30, 2022

Copy link
Copy Markdown
Member Author

/pulsarbot rerun-failure-checks

@github-actions github-actions Bot removed the Stale label Jul 1, 2022
@nodece
nodece force-pushed the fix_splite_ns_bundle_param branch 3 times, most recently from b849c34 to ea5b9a6 Compare July 21, 2022 02:37
@codelipenghui codelipenghui modified the milestones: 2.11.0, 2.12.0 Jul 26, 2022
@nodece
nodece force-pushed the fix_splite_ns_bundle_param branch from ea5b9a6 to 59e2907 Compare December 2, 2022 10:31
@codecov-commenter

codecov-commenter commented Dec 2, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #14758 (59e2907) into master (cd85a67) will decrease coverage by 13.31%.
The diff coverage is 0.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #14758       +/-   ##
=============================================
- Coverage     47.39%   34.07%   -13.32%     
+ Complexity    10479     6479     -4000     
=============================================
  Files           698      623       -75     
  Lines         68070    59057     -9013     
  Branches       7279     6140     -1139     
=============================================
- Hits          32264    20126    -12138     
- Misses        32228    36265     +4037     
+ Partials       3578     2666      -912     
Flag Coverage Δ
unittests 34.07% <0.00%> (-13.32%) ⬇️

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

Impacted Files Coverage Δ
.../org/apache/pulsar/broker/admin/v1/Namespaces.java 2.91% <0.00%> (-46.03%) ⬇️
...ava/org/apache/pulsar/broker/admin/v1/Brokers.java 0.00% <0.00%> (-100.00%) ⬇️
...va/org/apache/pulsar/broker/admin/v1/Clusters.java 0.00% <0.00%> (-100.00%) ⬇️
.../org/apache/pulsar/broker/admin/v1/Properties.java 0.00% <0.00%> (-100.00%) ⬇️
.../apache/pulsar/broker/admin/v2/ResourceGroups.java 0.00% <0.00%> (-100.00%) ⬇️
...ar/common/naming/PartitionedManagedLedgerInfo.java 0.00% <0.00%> (-100.00%) ⬇️
...ker/service/schema/exceptions/SchemaException.java 0.00% <0.00%> (-100.00%) ⬇️
...e/pulsar/broker/admin/impl/ResourceQuotasBase.java 0.00% <0.00%> (-96.43%) ⬇️
...he/pulsar/broker/service/AnalyzeBacklogResult.java 0.00% <0.00%> (-92.31%) ⬇️
.../apache/pulsar/broker/admin/v1/ResourceQuotas.java 0.00% <0.00%> (-91.43%) ⬇️
... and 232 more

@nodece
nodece merged commit 3e18974 into apache:master Dec 4, 2022
lifepuzzlefun pushed a commit to lifepuzzlefun/pulsar that referenced this pull request Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants