[dubbo] 02/03: init project

2019-08-07 Thread victory
This is an automated email from the ASF dual-hosted git repository.

victory pushed a commit to branch cloud-native
in repository https://gitbox.apache.org/repos/asf/dubbo.git

commit d7ed829fe79849fa5805e4c8001e25822534c034
Author: cvictory 
AuthorDate: Thu Aug 8 10:48:23 2019 +0800

init project
---
 .../bootstrap/DubboServiceProvider2Bootstrap.java  |   39 +
 .../dubbo-metadata-definition-protobuf/pom.xml |   42 -
 ...e.dubbo.metadata.definition.builder.TypeBuilder |1 -
 .../definition/protobuf/model/GooglePB.java| 3431 
 .../org/apache/dubbo/metadata/MetadataUtil.java|   33 +
 .../metadata/store/etcd/EtcdMetadataReport.java|3 +-
 .../registry/consul/AbstractConsulRegistry.java|   27 +
 .../dubbo/registry/consul/ConsulRegistry.java  |   23 +-
 .../registry/consul/ConsulServiceDiscovery.java|  196 ++
 .../consul/ConsulServiceDiscoveryFactory.java  |   16 +-
 .../dubbo/registry/etcd/EtcdServiceDiscovery.java  |   12 +-
 11 files changed, 320 insertions(+), 3503 deletions(-)

diff --git 
a/dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/DubboServiceProvider2Bootstrap.java
 
b/dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/DubboServiceProvider2Bootstrap.java
new file mode 100644
index 000..cc2948e
--- /dev/null
+++ 
b/dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/DubboServiceProvider2Bootstrap.java
@@ -0,0 +1,39 @@
+/*
+ * 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.
+ */
+package org.apache.dubbo.bootstrap;
+
+/**
+ * Dubbo Provider Bootstrap
+ *
+ * @since 2.7.4
+ */
+public class DubboServiceProvider2Bootstrap {
+
+public static void main(String[] args) {
+new DubboBootstrap()
+.application("dubbo-provider-demo")
+// Zookeeper in service registry type
+.registry("zookeeper", builder -> 
builder.address("zookeeper://127.0.0.1:2181?registry-type=service"))
+// Nacos
+//.registry("nacos", builder -> 
builder.address("nacos://127.0.0.1:8848?registry-type=service"))
+//
.registry(RegistryBuilder.newBuilder().address("etcd3://127.0.0.1:2379?registry-type=service").build())
+.protocol(builder -> builder.port(20885).name("dubbo"))
+.service(builder -> 
builder.id("test").interfaceClass(EchoService.class).ref(new EchoServiceImpl()))
+.start()
+.await();
+}
+}
diff --git a/dubbo-metadata-report/dubbo-metadata-definition-protobuf/pom.xml 
b/dubbo-metadata-report/dubbo-metadata-definition-protobuf/pom.xml
deleted file mode 100644
index 219694a..000
--- a/dubbo-metadata-report/dubbo-metadata-definition-protobuf/pom.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;>
-
-dubbo-metadata-report
-org.apache.dubbo
-${revision}
-
-4.0.0
-dubbo-metadata-definition-protobuf
-
-
-
-
-com.google.protobuf
-protobuf-java
-
-
-com.google.protobuf
-protobuf-java-util
-
-
-org.apache.dubbo
-dubbo-metadata-definition
-${project.parent.version}
-
-
-
diff --git 
a/dubbo-metadata-report/dubbo-metadata-definition-protobuf/src/main/resources/META-INF/dubbo/internal/org.apache.dubbo.metadata.definition.builder.TypeBuilder
 
b/dubbo-metadata-report/dubbo-metadata-definition-protobuf/src/main/resources/META-INF/dubbo/internal/org.apache.dubbo.metadata.definition.builder.TypeBuilder
deleted file mode 100644
index 615ed7e..000
--- 
a/dubbo-metadata-report/dubbo-metadata-definition-protobuf/src/main/resources/META-INF/dubbo/internal/org.apache.dubbo.metadata.definition.builder.TypeBuilder
+++ /dev/null
@@ -1 +0,0 @@
-protobuf=org.apache.dubbo.metadata.definition.protobuf.ProtobufTypeBuilder
diff --git 
a/dubbo-metadata-report/dubbo-metadata-definition-protobuf/src/test/java/org/apache/dubbo/metadata/definition/protobuf/model/GooglePB.java
 

[dubbo] 03/03: fix conflict and add medadata-definition-protobuf

2019-08-07 Thread victory
This is an automated email from the ASF dual-hosted git repository.

victory pushed a commit to branch cloud-native
in repository https://gitbox.apache.org/repos/asf/dubbo.git

commit 03173f82e5f4630d28747b5b6764e0de50c8d1c2
Merge: d7ed829 e7ce16d
Author: cvictory 
AuthorDate: Thu Aug 8 11:36:42 2019 +0800

fix conflict and add medadata-definition-protobuf

 .travis.yml|2 +-
 dubbo-bom/pom.xml  |1 +
 dubbo-bootstrap/pom.xml|   40 +-
 .../org/apache/dubbo/bootstrap/DubboBootstrap.java |   50 +-
 .../bootstrap/DubboServiceConsumerBootstrap.java   |1 -
 .../bootstrap/DubboServiceProviderBootstrap.java   |1 +
 dubbo-cluster/pom.xml  |1 +
 .../router/condition/config/ListenableRouter.java  |2 +-
 .../dubbo/rpc/cluster/router/tag/TagRouter.java|2 +-
 .../support/wrapper/MockClusterInvoker.java|2 +-
 .../dubbo/rpc/cluster/router/TagRouterTest.java|5 +-
 .../support/AbstractClusterInvokerTest.java|2 +-
 dubbo-common/pom.xml   |1 +
 .../apache/dubbo/common/config/Configuration.java  |2 -
 .../configcenter/AbstractDynamicConfiguration.java |  182 ++
 .../config/configcenter/DynamicConfiguration.java  |   86 +-
 .../file/FileSystemDynamicConfiguration.java   |   23 +-
 .../configcenter/nop/NopDynamicConfiguration.java  |6 +-
 .../wrapper/CompositeDynamicConfiguration.java |5 +
 .../dubbo/common/constants/CommonConstants.java|2 +-
 .../extension/AdaptiveClassCodeGenerator.java  |   10 +-
 .../apache/dubbo/common/bytecode/MixinTest.java|1 -
 .../common/config/InmemoryConfigurationTest.java   |6 +-
 .../threadlocal/InternalThreadLocalTest.java   |1 -
 .../apache/dubbo/common/utils/PojoUtilsTest.java   |5 +-
 dubbo-compatible/pom.xml   |1 +
 .../dubbo/rpc/protocol/dubbo/FutureAdapter.java|6 +-
 .../org/apache/dubbo/config/MethodConfigTest.java  |1 -
 .../org/apache/dubbo/filter/LegacyInvoker.java |2 +-
 .../java/org/apache/dubbo/rpc/RpcContextTest.java  |6 +-
 dubbo-config/dubbo-config-api/pom.xml  |1 +
 .../org/apache/dubbo/config/ApplicationConfig.java |1 -
 .../org/apache/dubbo/config/ReferenceConfig.java   |   14 +-
 .../org/apache/dubbo/config/RegistryConfig.java|   10 +-
 .../org/apache/dubbo/config/ServiceConfig.java |5 +-
 .../apache/dubbo/config/ReferenceConfigTest.java   |8 +-
 .../ConfigurableMetadataServiceExporterTest.java   |5 +-
 dubbo-config/dubbo-config-spring/pom.xml   |1 +
 .../factory/annotation/ReferenceBeanBuilder.java   |9 +
 .../ServiceAnnotationBeanPostProcessor.java|   14 +
 .../dubbo/config/spring/util/AnnotationUtils.java  |   20 +-
 .../ReferenceAnnotationBeanPostProcessorTest.java  |   89 +-
 .../ServiceAnnotationBeanPostProcessorTest.java|   13 +
 .../context/annotation/EnableDubboConfigTest.java  |   11 +
 .../annotation/provider/DemoServiceImpl.java   |4 +-
 .../DubboComponentScanRegistrarTest.java   |  118 -
 .../DubboConfigBindingRegistrarTest.java   |   88 -
 .../DubboConfigBindingsRegistrarTest.java  |   63 -
 .../annotation/DubboConfigConfigurationTest.java   |   99 -
 .../context/annotation/EnableDubboConfigTest.java  |  120 -
 .../context/annotation/EnableDubboTest.java|  162 -
 .../annotation/consumer/ConsumerConfiguration.java |  126 -
 .../consumer/test/TestConsumerConfiguration.java   |   96 -
 .../annotation/provider/DemoServiceImpl.java   |   55 -
 .../annotation/provider/ProviderConfiguration.java |  109 -
 .../properties/DefaultDubboConfigBinderTest.java   |   94 -
 dubbo-config/pom.xml   |1 +
 .../support/nop/NopDynamicConfigurationTest.java   |   70 -
 .../dubbo-configcenter-apollo/pom.xml  |1 +
 .../support/apollo/ApolloDynamicConfiguration.java |   10 +-
 .../dubbo-configcenter-consul/pom.xml  |3 +-
 .../consul/ConsulDynamicConfiguration.java |6 +-
 dubbo-configcenter/dubbo-configcenter-etcd/pom.xml |3 +-
 .../support/etcd/EtcdDynamicConfiguration.java |   20 +-
 .../dubbo-configcenter-nacos/pom.xml   |3 +-
 .../support/nacos/NacosDynamicConfiguration.java   |8 +-
 .../nacos/NacosDynamicConfigurationTest.java   |6 +-
 .../dubbo-configcenter-zookeeper/pom.xml   |1 +
 .../zookeeper/ZookeeperDynamicConfiguration.java   |   84 +-
 .../ZookeeperDynamicConfigurationTest.java |2 +-
 dubbo-configcenter/pom.xml |1 +
 dubbo-container/dubbo-container-api/pom.xml|1 +
 dubbo-container/dubbo-container-log4j/pom.xml  |1 +
 dubbo-container/dubbo-container-logback/pom.xml|1 +
 dubbo-container/dubbo-container-spring/pom.xml |1 +
 

[dubbo] 01/03: temporarily commit

2019-08-07 Thread victory
This is an automated email from the ASF dual-hosted git repository.

victory pushed a commit to branch cloud-native
in repository https://gitbox.apache.org/repos/asf/dubbo.git

commit 7e3b19edb5c530e0c17b4446bb118223f8e778d5
Author: cvictory 
AuthorDate: Wed Jul 31 15:04:27 2019 +0800

temporarily commit
---
 .../java/org/apache/dubbo/bootstrap/DubboServiceConsumerBootstrap.java | 2 +-
 .../java/org/apache/dubbo/bootstrap/DubboServiceProviderBootstrap.java | 2 +-
 .../java/org/apache/dubbo/metadata/store/etcd/EtcdMetadataReport.java  | 3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/DubboServiceConsumerBootstrap.java
 
b/dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/DubboServiceConsumerBootstrap.java
index d88dcc3..fbe50d1 100644
--- 
a/dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/DubboServiceConsumerBootstrap.java
+++ 
b/dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/DubboServiceConsumerBootstrap.java
@@ -34,7 +34,7 @@ public class DubboServiceConsumerBootstrap {
 // Zookeeper
 .registry("zookeeper", builder -> 
builder.address("zookeeper://127.0.0.1:2181?registry-type=service=dubbo-provider-demo"))
 // Nacos
-.registry("nacos", builder -> 
builder.address("nacos://127.0.0.1:8848?registry-type=service=dubbo-provider-demo"))
+//.registry("nacos", builder -> 
builder.address("nacos://127.0.0.1:8848?registry-type=service=dubbo-provider-demo"))
 .reference("ref", builder -> 
builder.interfaceClass(EchoService.class))
 .onlyRegisterProvider(true)
 .start()
diff --git 
a/dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/DubboServiceProviderBootstrap.java
 
b/dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/DubboServiceProviderBootstrap.java
index 019a61a..de24c85 100644
--- 
a/dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/DubboServiceProviderBootstrap.java
+++ 
b/dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/DubboServiceProviderBootstrap.java
@@ -29,7 +29,7 @@ public class DubboServiceProviderBootstrap {
 // Zookeeper in service registry type
 .registry("zookeeper", builder -> 
builder.address("zookeeper://127.0.0.1:2181?registry-type=service"))
 // Nacos
-.registry("nacos", builder -> 
builder.address("nacos://127.0.0.1:8848?registry-type=service"))
+//.registry("nacos", builder -> 
builder.address("nacos://127.0.0.1:8848?registry-type=service"))
 //
.registry(RegistryBuilder.newBuilder().address("etcd3://127.0.0.1:2379?registry-type=service").build())
 .protocol(builder -> builder.port(-1).name("dubbo"))
 .service(builder -> 
builder.id("test").interfaceClass(EchoService.class).ref(new EchoServiceImpl()))
diff --git 
a/dubbo-metadata/dubbo-metadata-report-etcd/src/main/java/org/apache/dubbo/metadata/store/etcd/EtcdMetadataReport.java
 
b/dubbo-metadata/dubbo-metadata-report-etcd/src/main/java/org/apache/dubbo/metadata/store/etcd/EtcdMetadataReport.java
index d01e02d..25d58c6 100644
--- 
a/dubbo-metadata/dubbo-metadata-report-etcd/src/main/java/org/apache/dubbo/metadata/store/etcd/EtcdMetadataReport.java
+++ 
b/dubbo-metadata/dubbo-metadata-report-etcd/src/main/java/org/apache/dubbo/metadata/store/etcd/EtcdMetadataReport.java
@@ -84,7 +84,8 @@ public class EtcdMetadataReport extends 
AbstractMetadataReport {
 
 @Override
 protected void doSaveMetadata(URL url) {
-throw new UnsupportedOperationException("This extension does not 
support working as a remote metadata center.");
+
+//storeMetadata(consumerMetadataIdentifier, url.toFullString());
 }
 
 @Override



[dubbo] branch cloud-native updated (e7ce16d -> 03173f8)

2019-08-07 Thread victory
This is an automated email from the ASF dual-hosted git repository.

victory pushed a change to branch cloud-native
in repository https://gitbox.apache.org/repos/asf/dubbo.git.


from e7ce16d  Dubbo Cloud Native (#4764)
 new 7e3b19e  temporarily commit
 new d7ed829  init project
 new 03173f8  fix conflict and add medadata-definition-protobuf

The 3 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:
 .../bootstrap/DubboServiceConsumerBootstrap.java   |   2 +-
 ...ap.java => DubboServiceProvider2Bootstrap.java} |   7 +-
 .../bootstrap/DubboServiceProviderBootstrap.java   |   4 +-
 .../org/apache/dubbo/metadata/MetadataUtil.java|  33 +++
 .../dubbo-metadata-definition-protobuf/pom.xml |   5 +-
 .../definition/protobuf/ProtobufTypeBuilder.java   | 308 +
 ...e.dubbo.metadata.definition.builder.TypeBuilder |   0
 .../protobuf/ProtobufTypeBuilderTest.java  |  71 +
 .../definition/protobuf/model/GooglePB.java|   0
 .../protobuf/model/ServiceInterface.java   |   0
 dubbo-metadata/pom.xml |   1 +
 .../registry/consul/AbstractConsulRegistry.java|  27 ++
 .../dubbo/registry/consul/ConsulRegistry.java  |  23 +-
 .../registry/consul/ConsulServiceDiscovery.java| 196 +
 .../consul/ConsulServiceDiscoveryFactory.java} |  14 +-
 .../dubbo/registry/etcd/EtcdServiceDiscovery.java  |   9 +-
 16 files changed, 663 insertions(+), 37 deletions(-)
 copy 
dubbo-bootstrap/src/test/java/org/apache/dubbo/bootstrap/{DubboServiceProviderBootstrap.java
 => DubboServiceProvider2Bootstrap.java} (79%)
 create mode 100644 
dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/MetadataUtil.java
 rename {dubbo-metadata-report => 
dubbo-metadata}/dubbo-metadata-definition-protobuf/pom.xml (94%)
 create mode 100644 
dubbo-metadata/dubbo-metadata-definition-protobuf/src/main/java/org/apache/dubbo/metadata/definition/protobuf/ProtobufTypeBuilder.java
 rename {dubbo-metadata-report => 
dubbo-metadata}/dubbo-metadata-definition-protobuf/src/main/resources/META-INF/dubbo/internal/org.apache.dubbo.metadata.definition.builder.TypeBuilder
 (100%)
 create mode 100644 
dubbo-metadata/dubbo-metadata-definition-protobuf/src/test/java/org/apache/dubbo/metadata/definition/protobuf/ProtobufTypeBuilderTest.java
 rename {dubbo-metadata-report => 
dubbo-metadata}/dubbo-metadata-definition-protobuf/src/test/java/org/apache/dubbo/metadata/definition/protobuf/model/GooglePB.java
 (100%)
 rename {dubbo-metadata-report => 
dubbo-metadata}/dubbo-metadata-definition-protobuf/src/test/java/org/apache/dubbo/metadata/definition/protobuf/model/ServiceInterface.java
 (100%)
 create mode 100644 
dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/AbstractConsulRegistry.java
 create mode 100644 
dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulServiceDiscovery.java
 copy 
dubbo-registry/{dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosServiceDiscoveryFactory.java
 => 
dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulServiceDiscoveryFactory.java}
 (77%)



[dubbo-js] branch master updated: Make it subscribing all possible targets when set version to '*' or just skip it

2019-08-07 Thread huxing
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new d3bcd86  Make it subscribing all possible targets when set version to 
'*' or just skip it
 new 2457af4  Merge pull request #129 from jasonjoo2010/version_wildcard
d3bcd86 is described below

commit d3bcd861b53ff4c8ca2c079e94a0f8b8f942fdce
Author: Jason Joo 
AuthorDate: Mon Aug 5 10:45:17 2019 +0800

Make it subscribing all possible targets when set version to '*' or just 
skip it
---
 packages/dubbo/src/registry/registry.ts | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/packages/dubbo/src/registry/registry.ts 
b/packages/dubbo/src/registry/registry.ts
index db6fe73..42e4c86 100644
--- a/packages/dubbo/src/registry/registry.ts
+++ b/packages/dubbo/src/registry/registry.ts
@@ -45,7 +45,10 @@ export default class Registry {
 return this._dubboServiceUrlMap
   .get(dubboInterface)
   .filter(serviceProp => {
-const isSameVersion = serviceProp.version === version;
+// "*" refer to default wildcard in dubbo
+const isSameVersion = !version
+|| version == '*' 
+|| serviceProp.version === version;
 //如果Group为null,就默认匹配, 不检查group
 //如果Group不为null,确保group和接口的group一致
 const isSameGroup = !group || group === serviceProp.group;



[dubbo-erlang] branch 0.4.0 updated: update feature list and usages

2019-08-07 Thread dlive
This is an automated email from the ASF dual-hosted git repository.

dlive pushed a commit to branch 0.4.0
in repository https://gitbox.apache.org/repos/asf/dubbo-erlang.git


The following commit(s) were added to refs/heads/0.4.0 by this push:
 new 6dbb46e  update feature list and usages
6dbb46e is described below

commit 6dbb46efe4286471188ad11f6e0218b6082f0c9a
Author: DLive 
AuthorDate: Wed Aug 7 23:14:09 2019 +0800

update feature list and usages
---
 README.md | 31 ---
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/README.md b/README.md
index eccd16b..8e5f1e0 100644
--- a/README.md
+++ b/README.md
@@ -14,13 +14,12 @@ The following features are supported.
 * Serialize
* Hessian serialize (√)
* Json serialize (√)
-* Erlang project as a consumer (√)
-* Erlang project as a provider (√)
-* Sync invoker (√)
-* Async invoker (√)
-* Random load balance (√)
-* Network rate limit (√)
+* Erlang project as consumer or provider (√)
+* Sync and Async invoker (√)
+* Random loadbalance (√)
 * Connection pools (√)
+* Support protocol,cluster,loadbalance,registry and filter extension point.
+
 
 Start
 -
@@ -46,15 +45,17 @@ in sys.config add dubboerl config.
 For example:
 ```erlang
 {dubboerl,[
-   {zookeeper_list,[{"127.0.0.1",2181}]},
-   {application,<<"testdubboerl">>},
-   {consumer,[
-   
{<<"org.apache.dubbo.erlang.sample.service.facade.UserOperator">>,[]}
-   ]},
-   {provider,[
-   
{user_impl,userOperator,<<"org.apache.dubbo.erlang.sample.service.facade.UserOperator">>,[]}
-   ]}
-   
+{application,<<"testdubboerl">>},
+{protocol, {dubbo, [{port, 20882}]}},
+{registry,zookeeper},
+{zookeeper_list,[{"127.0.0.1",2181}]},
+{serialization,hessian},
+{consumer,[
+{<<"org.apache.dubbo.erlang.sample.service.facade.UserOperator">>,[]}
+]},
+{provider,[
+
{user_impl,userOperator,<<"org.apache.dubbo.erlang.sample.service.facade.UserOperator">>,[]}
+]}
 ]}
 ```
 



[dubbo-erlang] branch 0.4.0 updated: add changes for 0.4.0

2019-08-07 Thread dlive
This is an automated email from the ASF dual-hosted git repository.

dlive pushed a commit to branch 0.4.0
in repository https://gitbox.apache.org/repos/asf/dubbo-erlang.git


The following commit(s) were added to refs/heads/0.4.0 by this push:
 new cd99042  add changes for 0.4.0
cd99042 is described below

commit cd990424cba76c224e195cb7f31efa11089124c8
Author: DLive 
AuthorDate: Wed Aug 7 22:56:57 2019 +0800

add changes for 0.4.0
---
 CHANGES.md | 21 +
 1 file changed, 21 insertions(+)

diff --git a/CHANGES.md b/CHANGES.md
new file mode 100644
index 000..a4f27d8
--- /dev/null
+++ b/CHANGES.md
@@ -0,0 +1,21 @@
+# Release Notes
+
+## 0.4.0
+### New Features
+
+1. Add protocol extension point.
+2. Add cluster extension point.
+3. Add registry extension point.
+4. Add loadbalance extension point.
+5. Add Filter extension point.
+6. Support Json serialization.
+8. Add RpcContext transport.
+ 
+### Bug Fixes
+1. Unexport protocol when service shutdown  
+
+### Changes
+1. Define 36 Java exception classes to Erlang record.
+2. Change license to apache-2.0.
+3. Add dubbo prefix for some modules.
+



[dubbo] branch pr/4764 deleted (was 8c7f37a)

2019-08-07 Thread mercyblitz
This is an automated email from the ASF dual-hosted git repository.

mercyblitz pushed a change to branch pr/4764
in repository https://gitbox.apache.org/repos/asf/dubbo.git.


 was 8c7f37a  Polish apache/dubbo#3984 : Add the implementation of 
Page getInstances(String serviceName, int offset, int 
pageSize, boolean healthyOnly)

The revisions that were on this branch are still contained in
other references; therefore, this change does not discard any commits
from the repository.



[dubbo-go] annotated tag v1.1.0 updated (a14701b -> 2c1ae5b)

2019-08-07 Thread alexstocks
This is an automated email from the ASF dual-hosted git repository.

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


*** WARNING: tag v1.1.0 was modified! ***

from a14701b  (commit)
  to 2c1ae5b  (tag)
 tagging a14701b59db3635f1bd4326fef6d825063d436bb (commit)
 replaces v0.1.2
  by AlexStocks
  on Wed Aug 7 21:41:09 2019 +0800

- Log -
the first release after transferred to apache
---


No new revisions were added by this update.

Summary of changes:



[dubbo-go] branch 1.1 created (now a14701b)

2019-08-07 Thread alexstocks
This is an automated email from the ASF dual-hosted git repository.

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


  at a14701b  Merge pull request #159 from fangyincheng/master

No new revisions were added by this update.



[dubbo-go] branch v1.1.0 deleted (was a14701b)

2019-08-07 Thread alexstocks
This is an automated email from the ASF dual-hosted git repository.

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


 was a14701b  Merge pull request #159 from fangyincheng/master

The revisions that were on this branch are still contained in
other references; therefore, this change does not discard any commits
from the repository.



[dubbo-go] branch v1.1.0 created (now a14701b)

2019-08-07 Thread alexstocks
This is an automated email from the ASF dual-hosted git repository.

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


  at a14701b  Merge pull request #159 from fangyincheng/master

No new revisions were added by this update.



[dubbo] branch master updated: [Dubbo-4716] Fix judgment ipv4 address (#4729)

2019-08-07 Thread tswstarplanet
This is an automated email from the ASF dual-hosted git repository.

tswstarplanet 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 1bcd921  [Dubbo-4716] Fix judgment ipv4 address (#4729)
1bcd921 is described below

commit 1bcd9217376d28650a60080efb9ce7eab849740f
Author: windWheel <1817802...@qq.com>
AuthorDate: Wed Aug 7 21:28:23 2019 +0800

[Dubbo-4716] Fix judgment ipv4 address (#4729)

* Fix judgment ipv4 address
---
 .../java/org/apache/dubbo/registry/multicast/MulticastRegistry.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dubbo-registry/dubbo-registry-multicast/src/main/java/org/apache/dubbo/registry/multicast/MulticastRegistry.java
 
b/dubbo-registry/dubbo-registry-multicast/src/main/java/org/apache/dubbo/registry/multicast/MulticastRegistry.java
index 0c28445..01d8801 100644
--- 
a/dubbo-registry/dubbo-registry-multicast/src/main/java/org/apache/dubbo/registry/multicast/MulticastRegistry.java
+++ 
b/dubbo-registry/dubbo-registry-multicast/src/main/java/org/apache/dubbo/registry/multicast/MulticastRegistry.java
@@ -150,7 +150,7 @@ public class MulticastRegistry extends FailbackRegistry {
 private void checkMulticastAddress(InetAddress multicastAddress) {
 if (!multicastAddress.isMulticastAddress()) {
 String message = "Invalid multicast address " + multicastAddress;
-if (!(multicastAddress instanceof Inet4Address)) {
+if (multicastAddress instanceof Inet4Address) {
 throw new IllegalArgumentException(message + ", " +
 "ipv4 multicast address scope: 224.0.0.0 - 
239.255.255.255.");
 } else {



[dubbo-go] branch master updated: Fix: mis spell

2019-08-07 Thread alexstocks
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 97a7790  Fix: mis spell
97a7790 is described below

commit 97a77902bb3a48347517fbe62b83730f59f6185d
Author: AlexStocks 
AuthorDate: Wed Aug 7 21:08:14 2019 +0800

Fix: mis spell
---
 cluster/cluster_impl/failback_cluster_invoker.go | 2 +-
 cluster/cluster_impl/failback_cluster_test.go| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cluster/cluster_impl/failback_cluster_invoker.go 
b/cluster/cluster_impl/failback_cluster_invoker.go
index d7d01dd..493b491 100644
--- a/cluster/cluster_impl/failback_cluster_invoker.go
+++ b/cluster/cluster_impl/failback_cluster_invoker.go
@@ -142,7 +142,7 @@ func (invoker *failbackClusterInvoker) Invoke(invocation 
protocol.Invocation) pr
}
loadbalance := extension.GetLoadbalance(lb)
 
-   invoked := make([]protocol.Invoker, 0)
+   invoked := make([]protocol.Invoker, 0, len(invokers))
var result protocol.Result
 
ivk := invoker.doSelect(loadbalance, invocation, invokers, invoked)
diff --git a/cluster/cluster_impl/failback_cluster_test.go 
b/cluster/cluster_impl/failback_cluster_test.go
index 2cdd14e..c94347a 100644
--- a/cluster/cluster_impl/failback_cluster_test.go
+++ b/cluster/cluster_impl/failback_cluster_test.go
@@ -161,7 +161,7 @@ func Test_FailbackRetryFailed(t *testing.T) {
 
invoker.EXPECT().Destroy().Return()
clusterInvoker.Destroy()
-   // after destory, the tasklist will be empty
+   // after destroy, the taskList will be empty
assert.Equal(t, int64(0), clusterInvoker.taskList.Len())
 }
 



[dubbo-go] branch master updated: Mod: change hessian2 version

2019-08-07 Thread alexstocks
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 981e535  Mod: change hessian2 version
981e535 is described below

commit 981e535391d3631072e478e572f4ec81800dbab0
Author: AlexStocks 
AuthorDate: Wed Aug 7 20:48:26 2019 +0800

Mod: change hessian2 version
---
 go.mod | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/go.mod b/go.mod
index fb7e313..94540e4 100644
--- a/go.mod
+++ b/go.mod
@@ -2,7 +2,7 @@ module github.com/apache/dubbo-go
 
 require (
github.com/Workiva/go-datastructures v1.0.50
-   github.com/apache/dubbo-go-hessian2 v1.2.5-0.20190731020727-1697039810c8
+   github.com/apache/dubbo-go-hessian2 v1.2.4-0.20190807202824-177b9c667283
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dubbogo/getty v1.2.0
github.com/dubbogo/gost v1.1.1



[dubbo-go-hessian2] tag v1.2.5 deleted (was 1697039)

2019-08-07 Thread alexstocks
This is an automated email from the ASF dual-hosted git repository.

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


*** WARNING: tag v1.2.5 was deleted! ***

 was 1697039  Merge pull request #112 from wongoo/fix-transfer

The revisions that were on this tag are still contained in
other references; therefore, this change does not discard any commits
from the repository.



[dubbo-go-hessian2] branch master updated: Mod: change third-part package import block

2019-08-07 Thread alexstocks
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 177b9c6  Mod: change third-part package import block
177b9c6 is described below

commit 177b9c667283b33219ce8ab5886926cb931bf0b1
Author: AlexStocks 
AuthorDate: Wed Aug 7 20:28:24 2019 +0800

Mod: change third-part package import block
---
 java_exception.go | 4 +++-
 response.go   | 5 -
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/java_exception.go b/java_exception.go
index 27d2846..181f8eb 100644
--- a/java_exception.go
+++ b/java_exception.go
@@ -14,7 +14,9 @@
 
 package hessian
 
-import "github.com/apache/dubbo-go-hessian2/java_exception"
+import (
+   "github.com/apache/dubbo-go-hessian2/java_exception"
+)
 
 func init() {
RegisterPOJO(_exception.Method{})
diff --git a/response.go b/response.go
index 2e918f8..d113fd5 100644
--- a/response.go
+++ b/response.go
@@ -16,7 +16,6 @@ package hessian
 
 import (
"encoding/binary"
-   "github.com/apache/dubbo-go-hessian2/java_exception"
"math"
"reflect"
"strconv"
@@ -27,6 +26,10 @@ import (
perrors "github.com/pkg/errors"
 )
 
+import (
+   "github.com/apache/dubbo-go-hessian2/java_exception"
+)
+
 type Response struct {
RspObj  interface{}
Exception   error



[dubbo] branch pr/4764 created (now 8c7f37a)

2019-08-07 Thread mercyblitz
This is an automated email from the ASF dual-hosted git repository.

mercyblitz pushed a change to branch pr/4764
in repository https://gitbox.apache.org/repos/asf/dubbo.git.


  at 8c7f37a  Polish apache/dubbo#3984 : Add the implementation of 
Page getInstances(String serviceName, int offset, int 
pageSize, boolean healthyOnly)

No new revisions were added by this update.



[dubbo] branch master updated: use consul with group and version (#4755)

2019-08-07 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 4acec50   use consul with group and version (#4755)
4acec50 is described below

commit 4acec50c8afb95544b08a6dbdda743264af69909
Author: Ian Luo 
AuthorDate: Wed Aug 7 14:33:23 2019 +0800

 use consul with group and version (#4755)

fix #4309
---
 .../src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java
 
b/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java
index e4832ac..2a8bc1c 100644
--- 
a/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java
+++ 
b/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java
@@ -275,7 +275,7 @@ public class ConsulRegistry extends FailbackRegistry {
 service.setAddress(url.getHost());
 service.setPort(url.getPort());
 service.setId(buildId(url));
-service.setName(url.getServiceInterface());
+service.setName(url.getServiceKey());
 service.setCheck(buildCheck(url));
 service.setTags(buildTags(url));
 service.setMeta(Collections.singletonMap(URL_META_KEY, 
url.toFullString()));