You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/09/28 13:20:59 UTC

[GitHub] [pulsar] zhangqian321 opened a new pull request, #17872: [fix][broker] ClassCastException when specify flow_or_qps_equally_div…

zhangqian321 opened a new pull request, #17872:
URL: https://github.com/apache/pulsar/pull/17872

   splitAlgorithm is alreay specified by user or default before input. It will initial wrong option type and throw ClassCastException when user specified  FlowOrQpsEquallyDivideBundleSplitAlgorithm and default is not.


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


Re: [PR] [fix][broker] ClassCastException when specify flow_or_qps_equally_div… [pulsar]

Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat closed pull request #17872: [fix][broker] ClassCastException when specify flow_or_qps_equally_div…
URL: https://github.com/apache/pulsar/pull/17872


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


Re: [PR] [fix][broker] ClassCastException when specify flow_or_qps_equally_div… [pulsar]

Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat commented on PR #17872:
URL: https://github.com/apache/pulsar/pull/17872#issuecomment-6357536800

   Thanks @zhangqian321 for catching this, and sorry it sat for so long. The same fix (building the split option from the requested algorithm instead of the broker default) landed on master in #25442, with regression tests for both the admin and extensible load manager paths. I'm closing this one as superseded. If you need it on 4.x, please comment on #25442 and ask for a backport.


-- 
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] codelipenghui closed pull request #17872: [fix][broker] ClassCastException when specify flow_or_qps_equally_div…

Posted by GitBox <gi...@apache.org>.
codelipenghui closed pull request #17872: [fix][broker] ClassCastException when specify flow_or_qps_equally_div…
URL: https://github.com/apache/pulsar/pull/17872


-- 
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 #17872: [fix][broker] ClassCastException when specify flow_or_qps_equally_div…

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #17872:
URL: https://github.com/apache/pulsar/pull/17872#issuecomment-1277059151

   # [Codecov](https://codecov.io/gh/apache/pulsar/pull/17872?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > :exclamation: No coverage uploaded for pull request base (`master@0678b82`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#section-missing-base-commit).
   > The diff coverage is `n/a`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/pulsar/pull/17872/graphs/tree.svg?width=650&height=150&src=pr&token=acYqCpsK9J&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/pulsar/pull/17872?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   
   ```diff
   @@            Coverage Diff            @@
   ##             master   #17872   +/-   ##
   =========================================
     Coverage          ?   44.78%           
     Complexity        ?    15782           
   =========================================
     Files             ?     1359           
     Lines             ?   118230           
     Branches          ?    12847           
   =========================================
     Hits              ?    52949           
     Misses            ?    59862           
     Partials          ?     5419           
   ```
   
   | Flag | Coverage Δ | |
   |---|---|---|
   | unittests | `44.78% <0.00%> (?)` | |
   
   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=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   


-- 
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] HQebupt commented on a diff in pull request #17872: [fix][broker] ClassCastException when specify flow_or_qps_equally_div…

Posted by GitBox <gi...@apache.org>.
HQebupt commented on code in PR #17872:
URL: https://github.com/apache/pulsar/pull/17872#discussion_r982467524


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/NamespaceService.java:
##########
@@ -832,8 +833,7 @@ void splitAndOwnBundleOnceAndRetry(NamespaceBundle bundle,
                                        NamespaceBundleSplitAlgorithm splitAlgorithm,
                                        List<Long> boundaries) {
         BundleSplitOption bundleSplitOption;
-        if (config.getDefaultNamespaceBundleSplitAlgorithm()
-                  .equals(NamespaceBundleSplitAlgorithm.FLOW_OR_QPS_EQUALLY_DIVIDE)) {
+        if (splitAlgorithm instanceof FlowOrQpsEquallyDivideBundleSplitAlgorithm) {

Review Comment:
   Good catch. Left a minor suggestion. Please add a test to avoid regression.



-- 
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 #17872: [fix][broker] ClassCastException when specify flow_or_qps_equally_div…

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #17872:
URL: https://github.com/apache/pulsar/pull/17872#issuecomment-1312619077

   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] rdhabalia commented on pull request #17872: [fix][broker] ClassCastException when specify flow_or_qps_equally_div…

Posted by GitBox <gi...@apache.org>.
rdhabalia commented on PR #17872:
URL: https://github.com/apache/pulsar/pull/17872#issuecomment-1277076090

   how can we miss such ClassCastException in the Pulsar code? didn't we add any unit-test case for the PR which caused this failure? certainly, not good practice in code have such RuntImeException. 
   I am seeing a lot of such instances lately in Pulsar which should be avoided. Because of such practice, it takes a lot of minor releases to have a stable release.
   I am seeing a lot of necessary PRs without reviews and merging such PRs which keeps creating instability in code.


-- 
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 #17872: [fix][broker] ClassCastException when specify flow_or_qps_equally_div…

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #17872:
URL: https://github.com/apache/pulsar/pull/17872#issuecomment-1260919588

   @zhangqian321 Please add the following content to your PR description and select a checkbox:
   ```
   - [ ] `doc` <!-- Your PR contains doc changes -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
   - [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   ```


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