diff --git a/CHANGE.md b/CHANGE.md index 0bc3a4fab23796152dfcc6d376854f22cf251456..ea2fe351cfffb81e0f89f340f402ce218b32fbf1 100644 --- a/CHANGE.md +++ b/CHANGE.md @@ -34,66 +34,65 @@ - [Fix zk bug](https://github.com/apache/dubbo-go/pull/346) - [HessianCodec failed to check package header length](https://github.com/apache/dubbo-go/pull/381) - ## 1.2.0 ### New Features -- Add etcdv3 registry support<https://github.com/apache/dubbo-go/pull/148> -- Add nacos registry support<https://github.com/apache/dubbo-go/pull/151> -- Add fail fast cluster support<https://github.com/apache/dubbo-go/pull/140> -- Add available cluster support<https://github.com/apache/dubbo-go/pull/155> -- Add broadcast cluster support<https://github.com/apache/dubbo-go/pull/158> -- Add forking cluster support<https://github.com/apache/dubbo-go/pull/161> -- Add service token authorization support<https://github.com/apache/dubbo-go/pull/202> -- Add accessLog filter support<https://github.com/apache/dubbo-go/pull/214> -- Add tps limit support<https://github.com/apache/dubbo-go/pull/237> -- Add execute limit support<https://github.com/apache/dubbo-go/pull/246> -- Move callService to invoker & support attachments<https://github.com/apache/dubbo-go/pull/193> -- Move example in dubbo-go project away<https://github.com/apache/dubbo-go/pull/228> -- Support dynamic config center which compatible with dubbo 2.6.x & 2.7.x and commit the zookeeper impl<https://github.com/apache/dubbo-go/pull/194> +- [Add etcdv3 registry support](https://github.com/apache/dubbo-go/pull/148) +- [Add nacos registry support](https://github.com/apache/dubbo-go/pull/151) +- [Add fail fast cluster support](https://github.com/apache/dubbo-go/pull/140) +- [Add available cluster support](https://github.com/apache/dubbo-go/pull/155) +- [Add broadcast cluster support](https://github.com/apache/dubbo-go/pull/158) +- [Add forking cluster support](https://github.com/apache/dubbo-go/pull/161) +- [Add service token authorization support](https://github.com/apache/dubbo-go/pull/202) +- [Add accessLog filter support](https://github.com/apache/dubbo-go/pull/214) +- [Add tps limit support](https://github.com/apache/dubbo-go/pull/237) +- [Add execute limit support](https://github.com/apache/dubbo-go/pull/246) +- [Move callService to invoker & support attachments](https://github.com/apache/dubbo-go/pull/193) +- [Move example in dubbo-go project away](https://github.com/apache/dubbo-go/pull/228) +- [Support dynamic config center which compatible with dubbo 2.6.x & 2.7.x and commit the zookeeper impl](https://github.com/apache/dubbo-go/pull/194) ### Enhancement -- Split gettyRPCClient.close and gettyRPCClientPool.remove in protocol/dubbo/pool.go<https://github.com/apache/dubbo-go/pull/186> -- Remove client from pool before closing it<https://github.com/apache/dubbo-go/pull/190> -- Enhance the logic for fetching the local address<https://github.com/apache/dubbo-go/pull/209> -- Add protocol_conf default values<https://github.com/apache/dubbo-go/pull/221> -- Add task pool for getty<https://github.com/apache/dubbo-go/pull/141> -- Update getty: remove read queue<https://github.com/apache/dubbo-go/pull/137> -- Clean heartbeat from PendingResponse<https://github.com/apache/dubbo-go/pull/166> +- [Split gettyRPCClient.close and gettyRPCClientPool.remove in protocol/dubbo/pool.go](https://github.com/apache/dubbo-go/pull/186) +- [Remove client from pool before closing it](https://github.com/apache/dubbo-go/pull/190) +- [Enhance the logic for fetching the local address](https://github.com/apache/dubbo-go/pull/209) +- [Add protocol_conf default values](https://github.com/apache/dubbo-go/pull/221) +- [Add task pool for getty](https://github.com/apache/dubbo-go/pull/141) +- [Update getty: remove read queue](https://github.com/apache/dubbo-go/pull/137) +- [Clean heartbeat from PendingResponse](https://github.com/apache/dubbo-go/pull/166) ### Bugfixes -- GettyRPCClientPool remove deadlock<https://github.com/apache/dubbo-go/pull/183/files> -- Fix failover cluster bug and url parameter retries change int to string type<https://github.com/apache/dubbo-go/pull/195> -- Fix url params unsafe map<https://github.com/apache/dubbo-go/pull/201> -- Read protocol config by map key in config yaml instead of protocol name<https://github.com/apache/dubbo-go/pull/218> -- Fix dubbo group issues #238<https://github.com/apache/dubbo-go/pull/243>/<https://github.com/apache/dubbo-go/pull/244> -- Fix bug in reference_config<https://github.com/apache/dubbo-go/pull/157> -- Fix high memory bug in zookeeper listener<https://github.com/apache/dubbo-go/pull/168> +- [GettyRPCClientPool remove deadlock](https://github.com/apache/dubbo-go/pull/183/files) +- [Fix failover cluster bug and url parameter retries change int to string type](https://github.com/apache/dubbo-go/pull/195) +- [Fix url params unsafe map](https://github.com/apache/dubbo-go/pull/201) +- [Read protocol config by map key in config yaml instead of protocol name](https://github.com/apache/dubbo-go/pull/218) +- *Fix dubbo group issues #238* [pr #243](https://github.com/apache/dubbo-go/pull/243) and [pr #244](https://github.com/apache/dubbo-go/pull/244) +- [Fix bug in reference_config](https://github.com/apache/dubbo-go/pull/157) +- [Fix high memory bug in zookeeper listener](https://github.com/apache/dubbo-go/pull/168) ## 1.1.0 ### New Features -- Support Java bigdecimal<https://github.com/apache/dubbo-go/pull/126>锛� -- Support all JDK exceptions<https://github.com/apache/dubbo-go/pull/120>锛� -- Support multi-version of service<https://github.com/apache/dubbo-go/pull/119>锛� -- Allow user set custom params for registry<https://github.com/apache/dubbo-go/pull/117>锛� -- Support zookeeper config center<https://github.com/apache/dubbo-go/pull/99>锛� -- Failsafe/Failback Cluster Strategy<https://github.com/apache/dubbo-go/pull/136>; +- [Support Java bigdecimal](https://github.com/apache/dubbo-go/pull/126) +- [Support all JDK exceptions](https://github.com/apache/dubbo-go/pull/120) +- [Support multi-version of service](https://github.com/apache/dubbo-go/pull/119) +- [Allow user set custom params for registry](https://github.com/apache/dubbo-go/pull/117) +- [Support zookeeper config center](https://github.com/apache/dubbo-go/pull/99) +- [Failsafe/Failback Cluster Strategy](https://github.com/apache/dubbo-go/pull/136) ### Enhancement -- Use time wheel instead of time.After to defeat timer object memory leakage<https://github.com/apache/dubbo-go/pull/130> 锛� +- [Use time wheel instead of time.After to defeat timer object memory leakage](https://github.com/apache/dubbo-go/pull/130) ### Bugfixes -- Preventing dead loop when got zookeeper unregister event<https://github.com/apache/dubbo-go/pull/129>锛� -- Delete ineffassign<https://github.com/apache/dubbo-go/pull/127>锛� -- Add wg.Done() for mockDataListener<https://github.com/apache/dubbo-go/pull/118>锛� -- Delete wrong spelling words<https://github.com/apache/dubbo-go/pull/107>锛� -- Use sync.Map to defeat from gettyClientPool deadlock<https://github.com/apache/dubbo-go/pull/106>锛� -- Handle panic when function args list is empty<https://github.com/apache/dubbo-go/pull/98>锛� -- url.Values is not safe map<https://github.com/apache/dubbo-go/pull/172>; +- [Preventing dead loop when got zookeeper unregister event](https://github.com/apache/dubbo-go/pull/129) +- [Delete ineffassign](https://github.com/apache/dubbo-go/pull/127) +- [Add wg.Done() for mockDataListener](https://github.com/apache/dubbo-go/pull/118) +- [Delete wrong spelling words](https://github.com/apache/dubbo-go/pull/107) +- [Use sync.Map to defeat from gettyClientPool deadlock](https://github.com/apache/dubbo-go/pull/106) +- [Handle panic when function args list is empty](https://github.com/apache/dubbo-go/pull/98) +- [url.Values is not safe map](https://github.com/apache/dubbo-go/pull/172) diff --git a/README.md b/README.md index e86740a246222970f6545d9ed2eba641d313f2dc..1dde951d350e6ee51f3f2aeeac7bb516b1b999be 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ Windows before_ut.bat ``` -# Run +### Run ```bash go test ./... @@ -135,6 +135,10 @@ go test ./... go test ./... -coverprofile=coverage.txt -covermode=atomic ``` +## Build + +Please move to [dubbo-samples/golang](https://github.com/dubbogo/dubbo-samples) + ## Contributing If you are willing to do some code contributions and document contributions to [Apache/dubbo-go](https://github.com/apache/dubbo-go), please visit [contribution intro](https://github.com/apache/dubbo-go/blob/master/contributing.md). @@ -149,7 +153,6 @@ About dubbo-go benchmarking report, please refer to [dubbo benchmarking report]( If you are using [apache/dubbo-go](github.com/apache/dubbo-go) and think that it helps you or want do some contributions to it, please add your company to to [the user list](https://github.com/apache/dubbo-go/issues/2) to let us know your needs. -   - \ No newline at end of file + diff --git a/README_CN.md b/README_CN.md index 3938eed9ae304d1bd38d41278c22ad0c12560a3b..ade924e7a9a6206b6e935e084d68679957dd7fcb 100644 --- a/README_CN.md +++ b/README_CN.md @@ -125,7 +125,7 @@ Windows before_ut.bat ``` -# 鎵ц +### 鎵ц ```bash go test ./... @@ -133,6 +133,10 @@ go test ./... go test ./... -coverprofile=coverage.txt -covermode=atomic ``` +## 缂栬瘧 + +璇风Щ姝� [dubbo-samples/golang](https://github.com/dubbogo/dubbo-samples) + ## 濡備綍璐$尞 濡傛灉鎮ㄦ効鎰忕粰 [Apache/dubbo-go](https://github.com/apache/dubbo-go) 璐$尞浠g爜鎴栬€呮枃妗o紝鎴戜滑閮界儹鐑堟杩庛€傚叿浣撹鍙傝€� [contribution intro](https://github.com/apache/dubbo-go/blob/master/contributing.md)銆� @@ -149,4 +153,4 @@ go test ./... -coverprofile=coverage.txt -covermode=atomic   - \ No newline at end of file + diff --git a/protocol/grpc/protoc-gen-dubbo/examples/helloworld.proto b/protocol/grpc/protoc-gen-dubbo/examples/helloworld.proto index d68e1dd37b3276760623d214662854e931bbdd09..e73f72b1e06c90bd917e905f992efbddd744b4ad 100644 --- a/protocol/grpc/protoc-gen-dubbo/examples/helloworld.proto +++ b/protocol/grpc/protoc-gen-dubbo/examples/helloworld.proto @@ -1,16 +1,19 @@ -// Copyright 2015 The gRPC Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/* +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ syntax = "proto3"; option java_multiple_files = true; diff --git a/registry/directory/directory.go b/registry/directory/directory.go index c06e883ae5370b82d1054c90e28ef99dc33a5766..a6d2cdf49b0935b2402e03208d1ff5f702e1cc52 100644 --- a/registry/directory/directory.go +++ b/registry/directory/directory.go @@ -142,7 +142,7 @@ func (dir *registryDirectory) refreshInvokers(res *registry.ServiceEvent) { } //dir.cacheService.EventTypeAdd(res.Path, dir.serviceTTL) - dir.cacheInvoker(url) + oldInvoker = dir.cacheInvoker(url) case remoting.EventTypeDel: oldInvoker = dir.uncacheInvoker(url) logger.Infof("selector delete service url{%s}", res.Service)