pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

[fix][broker] ClassCastException when specify flow_or_qps_equally_div…

Open zhangqian321 opened this issue 3 years ago • 4 comments

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

image

zhangqian321 avatar Sep 28 '22 13:09 zhangqian321

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

github-actions[bot] avatar Sep 28 '22 13:09 github-actions[bot]

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@0678b82). Click here to learn what that means. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #17872   +/-   ##
=========================================
  Coverage          ?   45.70%           
  Complexity        ?    17526           
=========================================
  Files             ?     1573           
  Lines             ?   128208           
  Branches          ?    14097           
=========================================
  Hits              ?    58597           
  Misses            ?    63557           
  Partials          ?     6054           
Flag Coverage Δ
unittests 45.70% <0.00%> (?)

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

codecov-commenter avatar Oct 13 '22 05:10 codecov-commenter

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.

rdhabalia avatar Oct 13 '22 06:10 rdhabalia

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

github-actions[bot] avatar Nov 13 '22 02:11 github-actions[bot]