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

[DUBBO-3242]: switch from CopyOnWriteArrayList to regular list in order to avoid potential UnsupportedOperationException #3978

Merged
merged 1 commit into from
May 5, 2019

Conversation

beiwei30
Copy link
Member

@beiwei30 beiwei30 commented May 5, 2019

What is the purpose of the change

#3242: switch from CopyOnWriteArrayList to regular list in order to avoid potential UnsupportedOperationException

Brief changelog

XXXXX

Verifying this change

XXXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
  • If this contribution is large, please follow the Software Donation Guide.

…avoid potential UnsupportedOperationException
@beiwei30 beiwei30 requested a review from chickenlj May 5, 2019 08:29
@codecov-io
Copy link

Codecov Report

Merging #3978 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3978      +/-   ##
============================================
- Coverage     63.87%   63.86%   -0.01%     
  Complexity      100      100              
============================================
  Files           722      722              
  Lines         31852    31852              
  Branches       5115     5115              
============================================
- Hits          20346    20343       -3     
- Misses         9165     9168       +3     
  Partials       2341     2341
Impacted Files Coverage Δ Complexity Δ
...java/org/apache/dubbo/rpc/cluster/RouterChain.java 96.87% <100%> (ø) 0 <0> (ø) ⬇️
.../apache/dubbo/remoting/transport/AbstractPeer.java 58.69% <0%> (-8.7%) 0% <0%> (ø)
...bo/rpc/cluster/support/FailbackClusterInvoker.java 67.21% <0%> (-3.28%) 0% <0%> (ø)
...dubbo/remoting/exchange/support/DefaultFuture.java 73.46% <0%> (-2.05%) 0% <0%> (ø)
...pache/dubbo/registry/support/AbstractRegistry.java 78.54% <0%> (-1.54%) 0% <0%> (ø)
.../exchange/support/header/HeaderExchangeServer.java 66.98% <0%> (-0.95%) 0% <0%> (ø)
...dubbo/rpc/protocol/dubbo/CallbackServiceCodec.java 80.88% <0%> (+0.73%) 0% <0%> (ø) ⬇️
...ng/exchange/support/header/HeartbeatTimerTask.java 78.94% <0%> (+5.26%) 0% <0%> (ø) ⬇️
...apache/dubbo/common/config/ConfigurationUtils.java 72% <0%> (+8%) 0% <0%> (ø) ⬇️
.../apache/dubbo/qos/protocol/QosProtocolWrapper.java 82.05% <0%> (+17.94%) 0% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89f6d6d...2dd660c. Read the comment docs.

Copy link
Contributor

@chickenlj chickenlj left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants