[dubbo-go] branch master updated (bde7db3 -> f1de848)

2020-04-19 Thread wongoo
This is an automated email from the ASF dual-hosted git repository.

wongoo pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git.


from bde7db3  Merge pull request #414 from Patrick0308/gorestful-filter
 add d7b02cd  Mod: readme.md & change.md
 add b9a94e5  Mod: release note
 add 39098b8  Del: delete osx in .travis.yml
 add 2253ad0  Merge pull request #449 from fangyincheng/1.4
 add 42447f8  add license
 add 320e307  Merge pull request #451 from zouyx/1.4-fix-license
 add 86dfd94  update v1.4.0 tag link in readme
 add c50325b  add v1.4.0 link in readme
 new f1de848  Merge pull request #484 from apache/1.4

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .travis.yml|  1 -
 CHANGE.md  |  1 +
 README.md  | 13 +-
 README_CN.md   | 13 +-
 cluster/cluster_impl/available_cluster.go  | 30 +++---
 cluster/cluster_impl/available_cluster_invoker.go  | 30 +++---
 .../cluster_impl/available_cluster_invoker_test.go | 30 +++---
 cluster/cluster_impl/broadcast_cluster.go  | 30 +++---
 cluster/cluster_impl/broadcast_cluster_invoker.go  | 30 +++---
 .../cluster_impl/broadcast_cluster_invoker_test.go | 30 +++---
 cluster/cluster_impl/failback_cluster_test.go  | 30 +++---
 cluster/cluster_impl/failfast_cluster.go   | 30 +++---
 cluster/cluster_impl/failfast_cluster_invoker.go   | 30 +++---
 cluster/cluster_impl/failfast_cluster_test.go  | 30 +++---
 cluster/cluster_impl/failsafe_cluster_test.go  | 30 +++---
 cluster/cluster_impl/forking_cluster.go| 30 +++---
 cluster/cluster_impl/forking_cluster_invoker.go| 30 +++---
 cluster/cluster_impl/forking_cluster_test.go   | 30 +++---
 common/extension/auth.go   | 17 
 config/interfaces/config_reader.go | 17 
 config_center/apollo/factory.go| 30 +++---
 config_center/apollo/impl.go   | 30 +++---
 config_center/apollo/listener.go   | 30 +++---
 filter/filter_impl/active_filter_test.go   | 17 
 filter/filter_impl/token_filter.go | 30 +++---
 filter/filter_impl/token_filter_test.go| 30 +++---
 filter/filter_impl/tps/tps_limit_strategy_mock.go  | 17 
 filter/filter_impl/tps/tps_limiter_mock.go | 17 
 filter/handler/rejected_execution_handler_mock.go  | 17 
 protocol/grpc/client.go| 30 +++---
 protocol/grpc/client_test.go   | 30 +++---
 protocol/grpc/common_test.go   | 30 +++---
 protocol/grpc/grpc_exporter.go | 30 +++---
 protocol/grpc/grpc_invoker.go  | 30 +++---
 protocol/grpc/grpc_invoker_test.go | 30 +++---
 protocol/grpc/grpc_protocol.go | 30 +++---
 protocol/grpc/grpc_protocol_test.go| 30 +++---
 protocol/grpc/internal/client.go   | 30 +++---
 protocol/grpc/internal/doc.go  | 30 +++---
 protocol/grpc/internal/helloworld.pb.go| 30 +++---
 protocol/grpc/internal/server.go   | 30 +++---
 .../protoc-gen-dubbo/examples/helloworld.pb.go | 30 +++---
 protocol/grpc/protoc-gen-dubbo/main.go | 30 +++---
 protocol/grpc/protoc-gen-dubbo/plugin/dubbo/doc.go | 30 +++---
 .../grpc/protoc-gen-dubbo/plugin/dubbo/dubbo.go| 30 +++---
 protocol/grpc/server.go| 30 +++---
 protocol/mock/mock_invoker.go  | 17 
 protocol/rpc_status_test.go| 17 
 48 files changed, 701 insertions(+), 543 deletions(-)



[dubbo-go] 01/01: Merge pull request #484 from apache/1.4

2020-04-19 Thread wongoo
This is an automated email from the ASF dual-hosted git repository.

wongoo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git

commit f1de84807d4b47d8b9af5634e667998b32c9a3f4
Merge: bde7db3 c50325b
Author: 望哥 
AuthorDate: Mon Apr 20 13:58:58 2020 +0800

Merge pull request #484 from apache/1.4

merge v1.4.0 into develop

 .travis.yml|  1 -
 CHANGE.md  |  1 +
 README.md  | 13 +-
 README_CN.md   | 13 +-
 cluster/cluster_impl/available_cluster.go  | 30 +++---
 cluster/cluster_impl/available_cluster_invoker.go  | 30 +++---
 .../cluster_impl/available_cluster_invoker_test.go | 30 +++---
 cluster/cluster_impl/broadcast_cluster.go  | 30 +++---
 cluster/cluster_impl/broadcast_cluster_invoker.go  | 30 +++---
 .../cluster_impl/broadcast_cluster_invoker_test.go | 30 +++---
 cluster/cluster_impl/failback_cluster_test.go  | 30 +++---
 cluster/cluster_impl/failfast_cluster.go   | 30 +++---
 cluster/cluster_impl/failfast_cluster_invoker.go   | 30 +++---
 cluster/cluster_impl/failfast_cluster_test.go  | 30 +++---
 cluster/cluster_impl/failsafe_cluster_test.go  | 30 +++---
 cluster/cluster_impl/forking_cluster.go| 30 +++---
 cluster/cluster_impl/forking_cluster_invoker.go| 30 +++---
 cluster/cluster_impl/forking_cluster_test.go   | 30 +++---
 common/extension/auth.go   | 17 
 config/interfaces/config_reader.go | 17 
 config_center/apollo/factory.go| 30 +++---
 config_center/apollo/impl.go   | 30 +++---
 config_center/apollo/listener.go   | 30 +++---
 filter/filter_impl/active_filter_test.go   | 17 
 filter/filter_impl/token_filter.go | 30 +++---
 filter/filter_impl/token_filter_test.go| 30 +++---
 filter/filter_impl/tps/tps_limit_strategy_mock.go  | 17 
 filter/filter_impl/tps/tps_limiter_mock.go | 17 
 filter/handler/rejected_execution_handler_mock.go  | 17 
 protocol/grpc/client.go| 30 +++---
 protocol/grpc/client_test.go   | 30 +++---
 protocol/grpc/common_test.go   | 30 +++---
 protocol/grpc/grpc_exporter.go | 30 +++---
 protocol/grpc/grpc_invoker.go  | 30 +++---
 protocol/grpc/grpc_invoker_test.go | 30 +++---
 protocol/grpc/grpc_protocol.go | 30 +++---
 protocol/grpc/grpc_protocol_test.go| 30 +++---
 protocol/grpc/internal/client.go   | 30 +++---
 protocol/grpc/internal/doc.go  | 30 +++---
 protocol/grpc/internal/helloworld.pb.go| 30 +++---
 protocol/grpc/internal/server.go   | 30 +++---
 .../protoc-gen-dubbo/examples/helloworld.pb.go | 30 +++---
 protocol/grpc/protoc-gen-dubbo/main.go | 30 +++---
 protocol/grpc/protoc-gen-dubbo/plugin/dubbo/doc.go | 30 +++---
 .../grpc/protoc-gen-dubbo/plugin/dubbo/dubbo.go| 30 +++---
 protocol/grpc/server.go| 30 +++---
 protocol/mock/mock_invoker.go  | 17 
 protocol/rpc_status_test.go| 17 
 48 files changed, 701 insertions(+), 543 deletions(-)



[dubbo] branch master updated: fix potential ConcurrentModificationException (#6031)

2020-04-19 Thread liujun
This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/master by this push:
 new dbda449  fix potential ConcurrentModificationException (#6031)
dbda449 is described below

commit dbda44995c86b2a8b91f342885af3a07fe36828a
Author: ken.lj 
AuthorDate: Mon Apr 20 12:56:40 2020 +0800

fix potential ConcurrentModificationException (#6031)

fixes #6027
---
 .../org/apache/dubbo/registry/support/AbstractRegistryFactory.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistryFactory.java
 
b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistryFactory.java
index 413c68f..7ea5559 100644
--- 
a/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistryFactory.java
+++ 
b/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/AbstractRegistryFactory.java
@@ -28,6 +28,7 @@ import org.apache.dubbo.registry.RegistryService;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashMap;
+import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
 import java.util.concurrent.atomic.AtomicBoolean;
@@ -61,7 +62,7 @@ public abstract class AbstractRegistryFactory implements 
RegistryFactory {
  * @return all registries
  */
 public static Collection getRegistries() {
-return Collections.unmodifiableCollection(REGISTRIES.values());
+return Collections.unmodifiableCollection(new 
LinkedList<>(REGISTRIES.values()));
 }
 
 public static Registry getRegistry(String key) {



[dubbo] branch master updated: revert computeIfAbsent for jdk related bug: (#6032)

2020-04-19 Thread liujun
This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/master by this push:
 new 00cdc53  revert computeIfAbsent for jdk related bug: (#6032)
00cdc53 is described below

commit 00cdc531600c7392ad91bd43f93aca2ef9ae54c5
Author: ken.lj 
AuthorDate: Mon Apr 20 12:50:11 2020 +0800

revert computeIfAbsent for jdk related bug: (#6032)

https://bugs.openjdk.java.net/browse/JDK-8062841
---
 .../java/org/apache/dubbo/common/extension/ExtensionLoader.java   | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
 
b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
index 147f290..844b51b 100644
--- 
a/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
+++ 
b/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java
@@ -141,7 +141,13 @@ public class ExtensionLoader {
 throw new IllegalArgumentException("Extension type (" + type +
 ") is not an extension, because it is NOT annotated with 
@" + SPI.class.getSimpleName() + "!");
 }
-return (ExtensionLoader) EXTENSION_LOADERS.computeIfAbsent(type, k 
-> new ExtensionLoader(type));
+
+ExtensionLoader loader = (ExtensionLoader) 
EXTENSION_LOADERS.get(type);
+if (loader == null) {
+EXTENSION_LOADERS.putIfAbsent(type, new ExtensionLoader(type));
+loader = (ExtensionLoader) EXTENSION_LOADERS.get(type);
+}
+return loader;
 }
 
 // For testing purposes only



[dubbo-go] branch 1.4 updated (86dfd94 -> c50325b)

2020-04-19 Thread wongoo
This is an automated email from the ASF dual-hosted git repository.

wongoo pushed a change to branch 1.4
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git.


from 86dfd94  update v1.4.0 tag link in readme
 add c50325b  add v1.4.0 link in readme

No new revisions were added by this update.

Summary of changes:
 README_CN.md | 2 ++
 1 file changed, 2 insertions(+)



[dubbo-go] branch 1.4 updated (320e307 -> 86dfd94)

2020-04-19 Thread wongoo
This is an automated email from the ASF dual-hosted git repository.

wongoo pushed a change to branch 1.4
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git.


from 320e307  Merge pull request #451 from zouyx/1.4-fix-license
 add 86dfd94  update v1.4.0 tag link in readme

No new revisions were added by this update.

Summary of changes:
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



[dubbo-go] tag v1.4.0 created (now 320e307)

2020-04-19 Thread alexstocks
This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a change to tag v1.4.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git.


  at 320e307  (commit)
No new revisions were added by this update.



[dubbo-go] branch develop updated (c8f66ac -> 5bdbf08)

2020-04-19 Thread flycash
This is an automated email from the ASF dual-hosted git repository.

flycash pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git.


from c8f66ac  Merge pull request #474 from dubbo-x/simplified
 new ceb0292  a little refactor
 new b4df125  extract router init to func
 new 5bdbf08  Merge pull request #481 from cch123/develop

The 1972 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 common/url.go   |  10 ++-
 config/config_loader.go | 210 ++--
 2 files changed, 118 insertions(+), 102 deletions(-)



[dubbo-go] branch feature/dubbo-2.7.5 updated (a4ee287 -> 422b678)

2020-04-19 Thread flycash
This is an automated email from the ASF dual-hosted git repository.

flycash pushed a change to branch feature/dubbo-2.7.5
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git.


from a4ee287  Merge pull request #455 from Patrick0308/align-2.7.5
 new 8c42b4c  In memory service discovery support
 new c15a725  Add in-memory service-discovery support
 new 7c20ad3  Merge branch 'feature/dubbo-2.7.5' of 
github.com:apache/dubbo-go into inmemory-service-discovery
 new 6707dfb  Fix format
 new 422b678  Merge pull request #469 from 
flycash/inmemory-service-discovery

The 1963 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 registry/inmemory/service_discovery.go  | 162 
 registry/inmemory/service_discovery_test.go |  98 +
 registry/nacos/service_discovery.go |   2 +-
 3 files changed, 261 insertions(+), 1 deletion(-)
 create mode 100644 registry/inmemory/service_discovery.go
 create mode 100644 registry/inmemory/service_discovery_test.go