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

Magic number in CacheListener #3625

Closed
ralf0131 opened this issue Mar 10, 2019 · 2 comments · Fixed by #3730
Closed

Magic number in CacheListener #3625

ralf0131 opened this issue Mar 10, 2019 · 2 comments · Fixed by #3730

Comments

@ralf0131
Copy link
Contributor

Magic number 5 is found in line 70 of org.apache.dubbo.configcenter.support.zookeeper.CacheListener#childEvent.

@John-Smile
Copy link
Contributor

I can fix this.

@ralf0131
Copy link
Contributor Author

Cool, please go ahead and send pull request.

John-Smile added a commit to John-Smile/incubator-dubbo that referenced this issue Mar 10, 2019
John-Smile added a commit to John-Smile/incubator-dubbo that referenced this issue Mar 16, 2019
John-Smile added a commit to John-Smile/incubator-dubbo that referenced this issue Mar 16, 2019
John-Smile added a commit to John-Smile/incubator-dubbo that referenced this issue Mar 24, 2019
Add a constant
John-Smile added a commit to John-Smile/incubator-dubbo that referenced this issue Mar 25, 2019
Add a static constant
kexianjun pushed a commit that referenced this issue Mar 26, 2019
use constant to replace magic number
Jeff-Lv pushed a commit that referenced this issue Apr 12, 2019
* Result implement CF

* Result implement CF

* Result implement CF

* Add AsyncRpcResult

* Fix bugs and refactor Filter

* Try to add onSend onError for Filter

* invoke different filter method according to result status.

*  make generic work with async call, including add $invokeAsync

* refactor legacy Filter implementation to work with onResponse.

* demo changes

* Fixes #3620, provider attachment lose on consumer side, fix this by reverting RpcContext copy

* AsyncRpcResult should always holds an Invocation instance

* refactor filter signature

* reimplement embedded Filters

* use ProviderModel modification in 3.x

* Fix address notification processing workflow after merging 3.x branch

* Fix UT

* Fix UT

* Unit test of JValidator; Clean code of JValidator (#3723)

* Fixes #3625 (#3730)

use constant to replace magic number

* Fix conflict when merging master and 3.x

* Fix conflict when merging master and 3.x

* Result interface itself has Future status.

* Fix DefaultFuture UT

* Wrap all protocol Invoker with AsyncToSyncInvoker & Fix UT

* Add license

* fix UT

* Fix ut in MonitorFilterTest

* avoid duplicate async to sync wrapper

* return async result in CacheFilter.

* fix UT in CacheFilterTest

* Add generic condition check to GenericFilter callback.

* Fix UT

* Get generic from RpcContext if the value in Invocation is empty.

* Fix RSocketProtocol to meet AbstractProtocol adjustment

* rename RpcResult to AppResponse to help avoid confusion with AsyncRpcResult.

* RSocket module switch to AsyncRpcResult
chickenlj added a commit to chickenlj/incubator-dubbo that referenced this issue May 8, 2019
* Result implement CF

* Result implement CF

* Result implement CF

* Add AsyncRpcResult

* Fix bugs and refactor Filter

* Try to add onSend onError for Filter

* invoke different filter method according to result status.

*  make generic work with async call, including add $invokeAsync

* refactor legacy Filter implementation to work with onResponse.

* demo changes

* Fixes apache#3620, provider attachment lose on consumer side, fix this by reverting RpcContext copy

* AsyncRpcResult should always holds an Invocation instance

* refactor filter signature

* reimplement embedded Filters

* use ProviderModel modification in 3.x

* Fix address notification processing workflow after merging 3.x branch

* Fix UT

* Fix UT

* Unit test of JValidator; Clean code of JValidator (apache#3723)

* Fixes apache#3625 (apache#3730)

use constant to replace magic number

* Fix conflict when merging master and 3.x

* Fix conflict when merging master and 3.x

* Result interface itself has Future status.

* Fix DefaultFuture UT

* Wrap all protocol Invoker with AsyncToSyncInvoker & Fix UT

* Add license

* fix UT

* Fix ut in MonitorFilterTest

* avoid duplicate async to sync wrapper

* return async result in CacheFilter.

* fix UT in CacheFilterTest

* Add generic condition check to GenericFilter callback.

* Fix UT

* Get generic from RpcContext if the value in Invocation is empty.

* Fix RSocketProtocol to meet AbstractProtocol adjustment

* rename RpcResult to AppResponse to help avoid confusion with AsyncRpcResult.

* RSocket module switch to AsyncRpcResult
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment