status
stringclasses 1
value | repo_name
stringlengths 9
24
| repo_url
stringlengths 28
43
| issue_id
int64 1
104k
| updated_files
stringlengths 8
1.76k
| title
stringlengths 4
369
| body
stringlengths 0
254k
⌀ | issue_url
stringlengths 37
56
| pull_url
stringlengths 37
54
| before_fix_sha
stringlengths 40
40
| after_fix_sha
stringlengths 40
40
| report_datetime
timestamp[ns, tz=UTC] | language
stringclasses 5
values | commit_datetime
timestamp[us, tz=UTC] |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
closed | apache/dubbo | https://github.com/apache/dubbo | 4,668 | ["dubbo-dependencies-bom/pom.xml"] | dubbo服务自定义参数中文问题 | 使用nacos注册中心
dubbo.protocol.name=dubbo
dubbo.protocol.port=19499
dubbo.protocol.host=127.0.0.1
dubbo.protocol.parameters.serviceLabel=测试服务
dubbo.protocol.charset=utf-8
例如上面的配置,parameters.serviceLabel会写入到nacos元数据里面,但是显示是???
已经指定了编码格式,请问怎样可以解决?
### Environment
* Dubbo version: 2.7.1
* Operating System version: win10
* Java version: 1.8
### Steps to reproduce this issue
1. xxx
2. xxx
3. xxx
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/4668 | https://github.com/apache/dubbo/pull/11368 | aaed5b91f6300dea57d9530a99c06dc25543d8dc | 9ffb8b81b96c03105fe76189517df3744e6a7a37 | 2019-07-25T15:58:58Z | java | 2023-01-28T03:26:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,662 | ["dubbo-dependencies-bom/pom.xml"] | 关于netty4线程模型问题 | dubbo引入netty4之后, 有没有处理线程模型的问题?
业务线程执行以下代码, name字段不是volatile, 根据happens-before原则, 在序列化层可能看不到name值.
User user = new User(); //business thread
user.setName("admin");
channel.write(user);
...
encoder.encode(user); //io thread
... | https://github.com/apache/dubbo/issues/4662 | https://github.com/apache/dubbo/pull/12500 | 4c67c26c8eb758b266caee5b5b00a7e9a37d8c7a | a01ac38cbf24bbeef62fe3289fe1e40b4ac0e92f | 2019-07-25T03:35:16Z | java | 2023-06-12T11:46:12Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,654 | ["dubbo-dependencies-bom/pom.xml"] | dubbo 泛化调用采用API方式时consumer无法获取provider端抛出的异常信息 |
### Environment
* Dubbo version: 2.6.2
* Operating System version: xxx
* Java version: 1.8
### Steps to reproduce this issue
1. dubbo 泛化调用采用API方式时,consumer无法获取provider端抛出的异常信息,但采用<dubbo:reference id="genericService" interface="hbec.app.dubbo.test.interfaces.IDubboService" generic="true" />这种方式是可以获取到provider抛出的异常信息.
consumer端代码:
ApplicationConfig applicationConfig = new ApplicationConfig();
applicationConfig.setName("generic-call-consumer");
RegistryConfig registryConfig = new RegistryConfig();
registryConfig.setAddress("zookeeper://echqlm2:2181?backup=echqlm0:2181");
ReferenceConfig<GenericService> referenceConfig = new ReferenceConfig<>();
referenceConfig.setInterface("hbec.app.dubbo.test.interfaces.IDubboService");
applicationConfig.setRegistry(registryConfig);
referenceConfig.setApplication(applicationConfig);
referenceConfig.setGeneric(true);
referenceConfig.setAsync(true);
referenceConfig.setTimeout(7000);
genericService = referenceConfig.get();
invokeSayHello();
public static void invokeSayHello() throws Exception {
Object result = genericService.$invoke("tt", null, new Object[]{"wfwfwf","152","323","52"});
}
provider端代码:
ApplicationConfig applicationConfig = new ApplicationConfig();
applicationConfig.setName("generic-impl-provider");
RegistryConfig registryConfig = new RegistryConfig();
registryConfig.setAddress("zookeeper://echqlm2:2181?backup=echqlm0:2181");
GenericService helloService = new GenericImplOfHelloService();
ServiceConfig<GenericService> service = new ServiceConfig<>();
service.setApplication(applicationConfig);
service.setRegistry(registryConfig);
service.setInterface("hbec.app.dubbo.test.interfaces.IDubboService");
service.setRef(helloService);
service.export();
System.out.println("dubbo service started");
new CountDownLatch(1).await();
public class GenericImplOfHelloService implements GenericService {
@Override
public Object $invoke(String method, String[] parameterTypes, Object[] args) throws GenericException {
if (method.equals("tt")) {
System.out.print("executing sayHello.");
throw new RuntimeException("sayHello: throws exception");
} else if (method.equals("sayHelloAsync")) {
System.out.print("executing sayHelloAsync.");
return CompletableFuture.completedFuture("sayHelloAsync: hello " + args[0]);
}
GenericException genericException = new GenericException();
genericException.setExceptionMessage("method does not exist.");
throw genericException;
}
}
| https://github.com/apache/dubbo/issues/4654 | https://github.com/apache/dubbo/pull/11368 | aaed5b91f6300dea57d9530a99c06dc25543d8dc | 9ffb8b81b96c03105fe76189517df3744e6a7a37 | 2019-07-24T08:19:33Z | java | 2023-01-28T03:26:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,650 | ["dubbo-dependencies-bom/pom.xml"] | align ExchangeCodec with DubboCodec | Recently we fixed a couple of issues related to `CodecSupport.deserialize(channel.getUrl(), is, proto);`. Unfortunately it has not been migrated into ExchangeCodec yet, which may need potential deserialization issues when other protocols are used. | https://github.com/apache/dubbo/issues/4650 | https://github.com/apache/dubbo/pull/11368 | aaed5b91f6300dea57d9530a99c06dc25543d8dc | 9ffb8b81b96c03105fe76189517df3744e6a7a37 | 2019-07-24T06:29:58Z | java | 2023-01-28T03:26:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,641 | ["dubbo-common/src/main/java/org/apache/dubbo/common/utils/UrlUtils.java", "dubbo-metadata-report/dubbo-metadata-report-api/src/main/java/org/apache/dubbo/metadata/integration/MetadataReportService.java", "dubbo-metadata-report/dubbo-metadata-report-api/src/test/java/org/apache/dubbo/metadata/integration/MetadataReportServiceTest.java"] | MetadataService logs error msg when using generic implementation. | [23/07/19 05:30:24:024 CST] main ERROR integration.MetadataReportService: [DUBBO] publishProvider getServiceDescriptor error. providerUrl: dubbo://30.5.121.125:20880/org.apache.dubbo.samples.generic.call.api.HelloService?anyhost=true&application=generic-impl-provider&deprecated=false&dubbo=2.0.2&dynamic=true&generic=true&interface=org.apache.dubbo.samples.generic.call.api.HelloService&methods=*®ister=true&release=2.7.3&side=provider, dubbo version: 2.7.3, current host: 30.5.121.125
java.lang.ClassNotFoundException: org.apache.dubbo.samples.generic.call.api.HelloService
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.apache.dubbo.metadata.integration.MetadataReportService.publishProvider(MetadataReportService.java:97)
at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:623)
at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:457)
at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:415)
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:378)
at org.apache.dubbo.samples.generic.call.GenericImplProvider.main(GenericImplProvider.java:48)
Reproduce by running dubbo-samples-generic-impl | https://github.com/apache/dubbo/issues/4641 | https://github.com/apache/dubbo/pull/4660 | 5c1cfb2ace12f27ddde9901553213bf2282807ac | 7d564e75fe776681e9e3c0a6f6bd1c4ad1ea51af | 2019-07-23T09:32:45Z | java | 2019-09-11T06:39:22Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,637 | ["dubbo-dependencies-bom/pom.xml"] | mvn package occur error when run dubbo-metadata-report-etcd ut | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.4-SNAPSHOT
* Operating System version: macOS10.12.6
* Java version: 1.8
打包的时候测试用例无法通过,dubbo-metadata-report-etcd,无论是本地还是travis-ci中跑。
```java
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ dubbo-metadata-report-etcd ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
ℹ︎ Checking the system...
✔ Docker version should be at least 1.6.0
✔ Docker environment should have more than 2GB free disk space
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 11.156 s <<< FAILURE! - in org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest
[ERROR] testStoreConsumer Time elapsed: 4.239 s <<< ERROR!
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest.testStoreConsumer(EtcdMetadataReportTest.java:104)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] EtcdMetadataReportTest.testStoreConsumer:104 » IndexOutOfBounds Index: 0, Size...
``` | https://github.com/apache/dubbo/issues/4637 | https://github.com/apache/dubbo/pull/11368 | aaed5b91f6300dea57d9530a99c06dc25543d8dc | 9ffb8b81b96c03105fe76189517df3744e6a7a37 | 2019-07-23T04:50:48Z | java | 2023-01-28T03:26:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,633 | ["dubbo-dependencies-bom/pom.xml"] | why dubbo Each connection can only fill a maximum of 7MByte,I see payload as a single request, not a limit per second, and when I change the size, it doesn't affect TPS | https://github.com/apache/dubbo/issues/4633 | https://github.com/apache/dubbo/pull/11368 | aaed5b91f6300dea57d9530a99c06dc25543d8dc | 9ffb8b81b96c03105fe76189517df3744e6a7a37 | 2019-07-23T01:47:57Z | java | 2023-01-28T03:26:00Z |
|
closed | apache/dubbo | https://github.com/apache/dubbo | 4,622 | ["dubbo-dependencies-bom/pom.xml"] | [Refactor] Refactor ConfigManager | `ConfigManager` is a singleton class to manage all Dubbo's Config Classes, now it was tried to refactor | https://github.com/apache/dubbo/issues/4622 | https://github.com/apache/dubbo/pull/11368 | aaed5b91f6300dea57d9530a99c06dc25543d8dc | 9ffb8b81b96c03105fe76189517df3744e6a7a37 | 2019-07-21T15:22:38Z | java | 2023-01-28T03:26:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,575 | ["dubbo-dependencies-bom/pom.xml"] | Consider to upgrade to use fastjson 1.2.58 | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: master branch
* Operating System version: all
* Java version: all
### Steps to reproduce this issue
fastjson <= 1.2.48 considers vulnerable, see https://www.anquanke.com/post/id/181874
we are using 1.2.46, I think it's better to use the latest version [fastjson-1.2.58](https://github.com/alibaba/fastjson/releases/tag/1.2.58) if possible.
| https://github.com/apache/dubbo/issues/4575 | https://github.com/apache/dubbo/pull/4579 | 05e44db43c829a7aea6cfc36ff522b981964f0ee | 214ec1fe8f3219b082ae4bf1fec8016895064415 | 2019-07-15T06:24:53Z | java | 2019-07-16T08:04:37Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,556 | ["dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java"] | Dubbo service startup is slow | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.6.2
* Operating System version: Linux
* Java version: 1.8
### Steps to reproduce this issue
1. Restart dubbo service.
2. Ping hostname becomes slow.
### Expected Result
Start dubbo service quickly.
### Actual Result

Dubbo service startup is slow, it takes two hours.
Thread dump like this:

[More details](https://crossoverjie.top/2019/07/05/troubleshoot/dubbo-start-slow/) | https://github.com/apache/dubbo/issues/4556 | https://github.com/apache/dubbo/pull/4603 | 5b38331036746f8c6740872eda05bff3e2c701ea | 1173b400949ceccc76182f7df9b39d35290d9148 | 2019-07-12T06:30:05Z | java | 2019-08-01T13:34:19Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,551 | ["dubbo-common/src/main/java/org/apache/dubbo/common/Version.java", "dubbo-common/src/test/java/org/apache/dubbo/common/version/VersionTest.java"] | Optimize Version#isRelease263OrHigher check | ### Environment
* Dubbo version: 2.7.2
* Operating System version: MacOS
* Java version: 1.8
### Steps to reproduce this issue
We have internal dubbo version 2.6.2.1 which bases dubbo-2.6.2。
1. Consumer side dubbo version is 2.6.2.1
2. Provider side dubbo version is 2.7.2
3. Invoke Exception
### Expected Result
Don't throw exception
### Actual Result
the exception trace:
```
Caused by: com.alibaba.dubbo.remoting.RemotingException: java.io.IOException: Unknown result flag, expect '0' '1' '2', get 4
java.io.IOException: Unknown result flag, expect '0' '1' '2', get 4
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:101)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:113)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:89)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:124)
at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:84)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46)
at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:133)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:109)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.returnFromResponse(DefaultFuture.java:222) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:139) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:112) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:95) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:148) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:77) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:54) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:48) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56) ~[dubbo-2.6.2.1.jar:2.6.2.1]
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:78) ~[dubbo-2.6.2.1.jar:2.6.2.1]
... 8 more
``` | https://github.com/apache/dubbo/issues/4551 | https://github.com/apache/dubbo/pull/4567 | c304bf356c2ed9b228d017b289475aa7f7940eba | 39b6b0c83bd198a3602ad10fd87a4f7bf57fdfb9 | 2019-07-12T03:47:11Z | java | 2019-07-15T02:45:50Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,525 | ["dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/support/ClusterUtils.java", "dubbo-cluster/src/test/java/org/apache/dubbo/rpc/cluster/support/ClusterUtilsTest.java", "dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceAnnotationBeanPostProcessorTest.java", "dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/consumer/ConsumerConfiguration.java", "dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/consumer/test/TestConsumerConfiguration.java"] | TagRouter在设置静态标签的时候无法降级访问到无标签的服务 | - [ ] I have searched the issues of this repository and believe that this is not a duplicate.
- [x] I have checked the FAQ of this repository and believe that this is not a duplicate.
Environment
Dubbo version: 2.7.2
Operating System version: Mac OS
Java version: 1.8
Steps to reproduce this issue
Infos:
| IP | SIDE | ENV | STATIC TAG | DYNAMIC TAG |
| ---- | ---- | ---- | ---- |---- |
| 192.168.1.5 | Consumer | DEV | DEV |hello|
| 192.168.1.6 | Provider | QA | QA | |
| 192.168.1.7 | Provider | STABLE | |
When I config TagRouter like this (in Dubbo admin):
```
---
force: false
runtime: true
enabled: true
priority: 1
key: hello-service
tags:
- name: hello
addresses: ["192.168.1.8","192.168.1.9"]
...
```
when without match dynamic tag and static tag
Hope Result:
```
192.168.1.5(DEV) => 192.168.1.7(STABLE)
```
Actual Result:
```
192.168.1.5(DEV) => [NO PROVIDER]
```
原因:
消费方初始化refer时,在ReferenceConfig中会将consumer的配置参数放入一个map(具体参考ReferenceConfig类中第303行`appendParameters(map, consumer)`),然后在创建代理的时候会合并消费方和提供方的配置参数(参考ReferenceConfig类中第371行`urls.add(ClusterUtils.mergeUrl(url, map));`),之后在ClusterUtils中尽管会保留提供方的配置,参数,但是在消费方设置了dubbo.tag参数,而提供方未设置dubbo.tag的情况下,导致加了消费方默认的dubbo.tag;
然后在进行标签路由时,由于设置了动态标签路由,但是又没有匹配的提供方实例,最后会获取动态标签中不存在,且动态标签为空的实例(参考TagRouter类中第125~127行,如下)
```
// FAILOVER: return all Providers without any tags.
else {
List<Invoker<T>> tmp = filterInvoker(invokers, invoker -> addressNotMatches(invoker.getUrl(),
tagRouterRuleCopy.getAddresses()));
return filterInvoker(tmp, invoker -> StringUtils.isEmpty(invoker.getUrl().getParameter(Constants.TAG_KEY)));
}
```
但是由于之前在refer的时候合并了参数,这边尽管Stable下的实例192.168.1.7的ProviderConfig URL中不带Dubbo TAG,这里还是会获取到消费方的默认标签DEV。
解决:
修改判断条件:
```
return filterInvoker(tmp, invoker -> StringUtils.isEmpty(url.getParameter(Constants.TAG_KEY)? StringUtils.isEmpty(invoker.getUrl().getParameter(Constants.TAG_KEY)) : invoker.getUrl().getParameter(Constants.TAG_KEY).equals(url.getParameter(Constants.TAG_KEY)) );
```
另外,发现标签路由的常量跟官方文档中不一致,实际上是:
```
org.apache.dubbo.rpc.cluster.TAG_KEY
org.apache.dubbo.rpc.FORCE_USE_TAG
```
能够统一修正为:
```
org.apache.dubbo.rpc.cluster.TAG_KEY
org.apache.dubbo.rpc.cluster.FORCE_KEY
``` | https://github.com/apache/dubbo/issues/4525 | https://github.com/apache/dubbo/pull/4533 | 4676d22e3b7e56fa336d9cfaafed2d8c69270de4 | a5f60906665c2a7bf1ab4d9e2a18257bc17a0545 | 2019-07-10T10:23:32Z | java | 2019-07-12T02:06:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,511 | ["dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractInterfaceConfig.java"] | `startConfigCenter`时,不会使用自己扩展的ZookeeperTransports | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.2
* Operating System version: macOS 10.12.6
* Java version: 1.8
### Steps to reproduce this issue
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
```java
ZookeeperDynamicConfiguration(URL url, ZookeeperTransporter zookeeperTransporter) {
this.url = url;
rootPath = "/" + url.getParameter(CONFIG_NAMESPACE_KEY, DEFAULT_GROUP) + "/config";
initializedLatch = new CountDownLatch(1);
this.cacheListener = new CacheListener(rootPath, initializedLatch);
this.executor = Executors.newFixedThreadPool(1, new NamedThreadFactory(this.getClass().getSimpleName(), true));
zkClient = zookeeperTransporter.connect(url);
zkClient.addDataListener(rootPath, cacheListener, executor);
try {
// Wait for connection
this.initializedLatch.await();
} catch (InterruptedException e) {
logger.warn("Failed to build local cache for config center (zookeeper)." + url);
}
}
```
` zkClient = zookeeperTransporter.connect(url);`会通过URL中的client参数来正确选择自适应扩展来初始化zk客户端。但在初始化配置中心的时候,URL是由ConfigCenterConfig得到的,此时URL中无client的信息,所以这个地方创建zk还是用的默认的zkClient。希望和注册中心时候一样获取自己扩展的zkClient
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/4511 | https://github.com/apache/dubbo/pull/4513 | 39b6b0c83bd198a3602ad10fd87a4f7bf57fdfb9 | 668378fc99594b15563e83d4eb4d25b185827997 | 2019-07-09T10:38:17Z | java | 2019-07-15T02:51:43Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,501 | ["dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/RpcContext.java", "dubbo-compatible/src/test/java/org/apache/dubbo/rpc/RpcContextTest.java"] | RpcContext cannot getFuture after setFuture. | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.3-SNAPSHOT
* Operating System version: macOs
* Java version: JDK 1.8
### Steps to reproduce this issue
1. We cannot getFuture from alibaba RpcContext after setFuture, the result is null.
```
CompletableFuture future = new CompletableFuture();
com.alibaba.dubbo.rpc.RpcContext.getContext().setFuture(future);
Future result = com.alibaba.dubbo.rpc.RpcContext.getContext().getFuture();
```
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
result should be same new FutureAdapter(future);
### Actual Result
result is null.
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/4501 | https://github.com/apache/dubbo/pull/4502 | 8658fee767f41acdcf9cd9ff1698195fdf7521aa | 6e20848a72b068461ef10606ee6b8c4221cd696c | 2019-07-09T07:03:42Z | java | 2019-07-09T08:03:41Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,499 | ["dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/FutureContext.java"] | org.apache.dubbo.rpc.RpcContext.getFuture() cannot work in Filter. | One not common but typical usage of RpcContext.getFuture before 2.7.3 is as follow:
```java
public final class TracingFilter implements Filter {
public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
Result result = invoker.invoke(invocation);
Future<Object> future = rpcContext.getFuture();
if (future instanceof FutureAdapter) {
((FutureAdapter) future).getFuture().setCallback(new FinishSpanCallback(span));
}
......
}
}
```
What we recommend in 2.7.3 now is:
```java
public final class TracingFilter implements Filter {
public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
Result result = invoker.invoke(invocation);
result.whenComplete(new FinishSpanCallback(span));
......
}
}
```
Now, I find that `org.apache.dubbo.rpc.RpcContext.getFuture()` returns null when used in Filter. For users upgrading from 2.6.x, they may simply change `com.alibaba.dubbo.rpc.RpcContext.getFuture()` to `org.apache.dubbo.rpc.RpcContext.getFuture()`, it's not easy for them to notice this behavior difference.
What I recommend is we need to keep a consistent behavior in 2.7.3.
| https://github.com/apache/dubbo/issues/4499 | https://github.com/apache/dubbo/pull/4504 | 4365160c690c01741d3a66363e009e011bbf35d8 | 0bd5a295295291e245ad9202362f25d4edcd6710 | 2019-07-09T06:26:00Z | java | 2019-07-09T08:31:18Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,491 | ["dubbo-dependencies-bom/pom.xml"] | remove code duplicate in AbstractConfig.java | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: master
* Operating System version: mac os 10.14.3
* Java version: 1.8.0_201
### Steps to reproduce this issue
1. remove code ClassUtils.isPrimitive(method1.getReturnType()) in AbstractConfig.java at line 653
2. ClassUtils.isPrimitive(method1.getReturnType()) is already judge in method MethodUtils.isGetter
3. no need to do this any more
What actually happens?
make code brief and clean
| https://github.com/apache/dubbo/issues/4491 | https://github.com/apache/dubbo/pull/11368 | aaed5b91f6300dea57d9530a99c06dc25543d8dc | 9ffb8b81b96c03105fe76189517df3744e6a7a37 | 2019-07-08T14:30:13Z | java | 2023-01-28T03:26:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,473 | ["dubbo-dependencies-bom/pom.xml"] | [WeeklyReport] Weekly report for Dubbo 2019-6-28 to 2019-7-5 | # Weekly Report of Dubbo
This is a weekly report of Dubbo. It summarizes what have changed in the project during the passed week, including pr merged, new contributors, and more things in the future.
It is all done by @dubbo-bot which is a collaborate robot.
## Repo Overview
### Basic data
Baisc data shows how the watch, star, fork and contributors count changed in the passed week.
| Watch | Star | Fork | Contributors |
|:-----:|:----:|:----:|:------------:|
| 3236 | 27587 (↑134) | 15526 (↑101) | 208 (↑1) |
### Issues & PRs
Issues & PRs show the new/closed issues/pull requests count in the passed week.
| New Issues | Closed Issues | New PR | Merged PR |
|:----------:|:-------------:|:------:|:---------:|
| 26 | 37 | 24 | 21 |
## PR Overview
Thanks to contributions from community, Dubbo team merged **21** pull requests in the repository last week. They are:
* make metadata key contain : when version and group is empty ([#4465](https://github.com/apache/dubbo/pull/4465))
* Improve/consumer model ([#4464](https://github.com/apache/dubbo/pull/4464))
* Nacos registry enhancement & register reference bean ([#4454](https://github.com/apache/dubbo/pull/4454))
* Remove oracle jdk ([#4448](https://github.com/apache/dubbo/pull/4448))
* Add nacos dependencies to dubbo-demo ([#4447](https://github.com/apache/dubbo/pull/4447))
* Remove unused imports ([#4443](https://github.com/apache/dubbo/pull/4443))
* [Dubbo-4437]Use StringUtils.isNotEmpty() method in DubboBeanDefinitionParser ([#4438](https://github.com/apache/dubbo/pull/4438))
* support method and positive timeout for sync ([#4436](https://github.com/apache/dubbo/pull/4436))
* Unit test 2.7.3 ([#4434](https://github.com/apache/dubbo/pull/4434))
* remove tomcat-embed-logging-juli #4400 ([#4430](https://github.com/apache/dubbo/pull/4430))
* Fix MulticastSocket setInterface choose an unreachable address ([#4426](https://github.com/apache/dubbo/pull/4426))
* DubboComponentScan cannot backward support for alibaba @Service and @Reference. ([#4415](https://github.com/apache/dubbo/pull/4415))
* Add unit tests for org.apache.dubbo.rpc.support.MockInvoker ([#4413](https://github.com/apache/dubbo/pull/4413))
* automatically append env parameters. ([#4407](https://github.com/apache/dubbo/pull/4407))
* support handle of exception from onResponse or onError ([#4401](https://github.com/apache/dubbo/pull/4401))
* Refactor MetricsFilterTest to use Mockito ([#4398](https://github.com/apache/dubbo/pull/4398))
* Dubbo throws IoException with error message while decoding fail ([#4396](https://github.com/apache/dubbo/pull/4396))
* check complete status of async-result before try to update ([#4394](https://github.com/apache/dubbo/pull/4394))
* unify config-center model ([#4388](https://github.com/apache/dubbo/pull/4388))
* [Dubbo-2.7.2] Fix the protostuff protocol lacks a custom serialization method for java.sql.Date #4384 ([#4386](https://github.com/apache/dubbo/pull/4386))
* [dubbo_4344]fixspi配置多个tag解析错误问题(#4344) ([#4346](https://github.com/apache/dubbo/pull/4346))
## Code Review Statistics
Dubbo encourages everyone to participant in code review, in order to improve software quality. Every week @dubbo-bot would automatically help to count pull request reviews of single github user as the following. So, try to help review code in this project.
| Contributor ID | Pull Request Reviews |
|:--------------:|:--------------------:|
| @ralf0131 | 10 |
| @chickenlj | 7 |
| @cvictory | 4 |
| @uglycow | 3 |
| @manzhizhen | 2 |
| @lovepoem | 1 |
| @CrazyHZM | 1 |
## Contributors Overview
It is Dubbo team's great honor to have new contributors from community. We really appreciate your contributions. Feel free to tell us if you have any opinion and please share this open source project with more people if you could. If you hope to be a contributor as well, please start from https://github.com/apache/incubator-dubbo/blob/master/CONTRIBUTING.md .
Here is the list of new contributors:
@Braavos96
Thanks to you all.
*Note: This robot is supported by [Collabobot](https://github.com/AlibabaDR/Collabobot).* | https://github.com/apache/dubbo/issues/4473 | https://github.com/apache/dubbo/pull/11368 | aaed5b91f6300dea57d9530a99c06dc25543d8dc | 9ffb8b81b96c03105fe76189517df3744e6a7a37 | 2019-07-05T07:18:41Z | java | 2023-01-28T03:26:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,445 | ["dubbo-rpc/dubbo-rpc-native-thrift/src/main/java/org/apache/dubbo/rpc/protocol/nativethrift/ThriftProtocol.java"] | native-thrift cannot run within docker instance | native-thrift cannot run within docker instance since its impl *org.apache.dubbo.rpc.protocol.nativethrift.ThriftProtocol* doesn't honor *bind.host* and *bind.port*.
This limitation should apply to all *org.apache.dubbo.rpc.protocol.AbstractProxyProtocol*.
Pls. use https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-thrift to verify. | https://github.com/apache/dubbo/issues/4445 | https://github.com/apache/dubbo/pull/5002 | 39edc80716aaa998eedcc53a2997fa5f7ac2b0ae | 5c1cfb2ace12f27ddde9901553213bf2282807ac | 2019-07-02T09:27:03Z | java | 2019-09-11T06:22:25Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,435 | ["dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/protocol/AsyncToSyncInvoker.java", "dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboInvoker.java"] | support method and positive timeout for sync | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.3-SNAPSHOT
* Operating System version: macOs
* Java version: JDK 1.8
### Steps to reproduce this issue
1. Assume Demo interface have sayHello and sayHi method.
```
<dubbo:reference id="demoService" interface="com.ctrip.Demo" timeout="1000">
<dubbo:method name="sayHello">
<dubbo:parameter key="timeout" value="800"/>
</dubbo:method>
</dubbo:reference>
```
2. Make a sync call to sayHello, the timeout is 800 but not 1000. We have not get method timeout from the url.
```
asyncResult.get(getUrl().getParameter(TIMEOUT_KEY, DEFAULT_TIMEOUT), TimeUnit.MILLISECONDS);
```
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
The timeout should be 1000 for sayHello.
### Actual Result
The timeout is 800 for sayHello.
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/4435 | https://github.com/apache/dubbo/pull/4436 | 60ca9f4826ebb84ff41737c2ba2b60484eedc0f9 | cfba520104517b1570bce131808f3977b17326dc | 2019-07-01T12:00:52Z | java | 2019-07-02T03:02:52Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,412 | ["dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/ServiceBean.java"] | default attribute in <dubbo:registry> doesn't work as expected. |
```xml
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://dubbo.apache.org/schema/dubbo http://dubbo.apache.org/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<context:property-placeholder/>
<dubbo:application name="multi-registry-provider"/>
<dubbo:registry id="beijingRegistry" address="zookeeper://${zookeeper.address:127.0.0.1}:2181" default="false"/>
<dubbo:registry id="shanghaiRegistry" address="zookeeper://${zookeeper.address:127.0.0.1}:2182"/>
<dubbo:protocol name="dubbo" port="20890"/>
<bean id="helloService" class="org.apache.dubbo.samples.multi.registry.impl.HelloServiceImpl"/>
<bean id="demoService" class="org.apache.dubbo.samples.multi.registry.impl.DemoServiceImpl"/>
<dubbo:service interface="org.apache.dubbo.samples.multi.registry.api.HelloService" ref="helloService"
registry="shanghaiRegistry,beijingRegistry"/>
<dubbo:service interface="org.apache.dubbo.samples.multi.registry.api.DemoService" ref="demoService"/>
</beans>
```
With the configuration above, DemoService should not appear on 'beijingRegistry'. It looks like **default** attribute doesn't work as expected. | https://github.com/apache/dubbo/issues/4412 | https://github.com/apache/dubbo/pull/4420 | 62a32aa1e073e46bc43711f8fde486e027108742 | 3b74528fc994ddb4dfc1213feb53c78aa811dc1f | 2019-06-27T09:17:13Z | java | 2019-09-09T03:41:07Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,406 | ["dubbo-all/pom.xml", "dubbo-metadata-report/dubbo-metadata-definition-protobuf/pom.xml", "dubbo-metadata-report/dubbo-metadata-definition-protobuf/src/main/java/org/apache/dubbo/metadata/definition/protobuf/ProtobufTypeBuilder.java", "dubbo-metadata-report/dubbo-metadata-definition-protobuf/src/main/resources/META-INF/dubbo/internal/org.apache.dubbo.metadata.definition.builder.TypeBuilder", "dubbo-metadata-report/dubbo-metadata-definition/src/main/java/org/apache/dubbo/metadata/definition/TypeDefinitionBuilder.java", "dubbo-metadata-report/pom.xml", "dubbo-serialization/dubbo-serialization-protobuf-json/src/main/resources/META-INF/dubbo/internal/org.apache.dubbo.metadata.definition.builder.TypeBuilder"] | [ISSUE] fix some issue for metadata writing. |


The application will not find protobuf class, and throw exception.
| https://github.com/apache/dubbo/issues/4406 | https://github.com/apache/dubbo/pull/4408 | 27789cef6b3bf04ffa60140a4fdd3eaaf0358214 | 792b487125824cfafb80b634e7e923a90e33b224 | 2019-06-27T01:43:58Z | java | 2019-06-27T03:47:04Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,384 | ["dubbo-serialization/dubbo-serialization-protostuff/src/main/java/org/apache/dubbo/common/serialize/protostuff/delegate/SqlDateDelegate.java", "dubbo-serialization/dubbo-serialization-protostuff/src/main/java/org/apache/dubbo/common/serialize/protostuff/utils/WrapperUtils.java", "dubbo-serialization/dubbo-serialization-test/src/test/java/org/apache/dubbo/common/serialize/protostuff/ProtostuffObjectOutputTest.java"] | [Bug] Protostuff serialization protocol not support for java.sql.Date | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.2
* Operating System version: OSX
* Java version: 1.8
### Steps to reproduce this issue
```java
@Test
public void testSerializeSqlDate() throws IOException, ClassNotFoundException {
java.sql.Date originTime = new java.sql.Date(System.currentTimeMillis());
this.protostuffObjectOutput.writeObject(originTime);
this.flushToInput();
java.sql.Date serializedTime = protostuffObjectInput.readObject(java.sql.Date.class);
assertThat(serializedTime, is(originTime));
}
```
### Expected Result
What do you expected from the above steps?
### Actual Result
```shell
Expected: is <2019-06-25>
but: was <1970-01-01>
Expected :is <2019-06-25>
Actual :<1970-01-01>
```
If there is an exception, please attach the exception trace:
```
```
| https://github.com/apache/dubbo/issues/4384 | https://github.com/apache/dubbo/pull/4386 | 5b7d2a3965dcba9639a78b15e0de96926cbe1167 | a42fb1535d45fe372e21515f4941002423c22fb5 | 2019-06-25T04:36:27Z | java | 2019-07-03T02:43:50Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,370 | ["dubbo-metadata-report/dubbo-metadata-definition/src/main/java/org/apache/dubbo/metadata/definition/TypeDefinitionBuilder.java", "dubbo-metadata-report/dubbo-metadata-definition/src/main/java/org/apache/dubbo/metadata/definition/model/MethodDefinition.java", "dubbo-metadata-report/dubbo-metadata-definition/src/main/java/org/apache/dubbo/metadata/definition/model/TypeDefinition.java", "dubbo-metadata-report/dubbo-metadata-definition/src/test/java/org/apache/dubbo/metadata/definition/MetadataTest.java"] | [ISSUE] some nessary information is not In ServiceMetadata | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.3
* Operating System version: win7
* Java version: jdk8
### Steps to reproduce this issue
1. define a service Interface like this.
```
public interface HelloBOMService {
PersonResponseType get(PersonRequestType request) throws Exception;
}
```
2. getServiceDefinition and print Method Parameter
```
ServiceDefinition serviceDefinition = ServiceDefinitionBuilder.build(HelloBOMService.class);
System.out.println(serviceDefinition.getMethods().get(0).getParameters());
```
3. the methodDefition return an empty list
1. Extends TypeBuilder to construct Protobuf typeBuilder and add SPI file.
```
@SPI
public interface TypeBuilder {
```
2. Use serviceDefition.getTypes() to obtains all TypeDefinitions. It is nessary to know which TypeDefinitionBuilder build this TypeDefition.When TypeBuilder generate same ServiceDefinition
use different logic.
### Expected Result
We could get parameter type list from MethodDefition.
We should know which Builder build this TypeDefition.
| https://github.com/apache/dubbo/issues/4370 | https://github.com/apache/dubbo/pull/4372 | a1e4757f36bc4e88b4ff4b998bb718e62e9b19f4 | e3c35f23c20fcff06aaa83614dd27790d2b6aefe | 2019-06-21T08:45:34Z | java | 2019-06-26T02:23:52Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,357 | ["dubbo-demo/dubbo-demo-spring-boot/pom.xml"] | Failed to cancel etcd watch | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.3-SNAPSHOT
* Operating System version: mac os 10.13.6
* Java version: 1.8.0_171
### Steps to reproduce this issue
org.apache.dubbo.remoting.etcd.jetcd.JEtcdClient.EtcdWatcher#closeWatchRequest will not cancel the watch request to EtcdClient, it will result the client continue to receive watch event after unsubscribe.
The method `onCompleted()` just mean the client will not send message, it can not tell the server not send message.
The right method should be send a WatchCancelRequest, just like write in org.apache.dubbo.remoting.etcd.jetcd.JEtcdClientTest#testCancelWatchWithGrpc
| https://github.com/apache/dubbo/issues/4357 | https://github.com/apache/dubbo/pull/13529 | 7f437a7ff7f7d8a3d04b593e1680815f380d4254 | fb571f532dc80c0ee6b146d34607371b3c682872 | 2019-06-20T04:37:58Z | java | 2023-12-19T01:59:22Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,341 | ["dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java"] | dubbo.registry.simplified=true and the register config won't take effect | ### Steps to reproduce this issue
```
dubbo.registry.simplified=true
<dubbo:service interface="org.apache.dubbo.demo.DemoService" register="false" ref="demoService" delay="5000"/>
```
when set dubbo.registry.simplified true. the dubbo.service.register won't take effect because of the `register` key was simplified and will use default value `true`;
```
URL providerUrl = getProviderUrl(originInvoker);
...
final URL registeredProviderUrl = getRegisteredProviderUrl(providerUrl, registryUrl);
boolean register = registeredProviderUrl.getParameter("register", true);
```
may use `providerUrl` here
| https://github.com/apache/dubbo/issues/4341 | https://github.com/apache/dubbo/pull/4397 | 60abb6dbae34162556da3bfc1867862458d7981b | 470cc55ad1de72eb8a4a4e1c21d9a4af3c97f8e9 | 2019-06-18T09:45:30Z | java | 2019-09-16T06:27:39Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,331 | ["pom.xml"] | [API-DOC] Improve api doc | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
API DOC is generated with `./mvnw clean javadoc:aggregate -Dmaven.javadoc.skip=false`
But there are something need improve for those docs.
+ demo should exclude from docs
+ doc title is using dubbo-parent, should be Apache Dubbo
| https://github.com/apache/dubbo/issues/4331 | https://github.com/apache/dubbo/pull/5070 | a3c89e2e47bcb4c690d454a7c2a6eca712b64a75 | 46486bb34123fb1c973514a38f939c8fb9868191 | 2019-06-18T04:07:48Z | java | 2019-09-19T05:20:02Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,323 | ["dubbo-filter/dubbo-filter-cache/src/main/java/org/apache/dubbo/cache/support/expiring/ExpiringMap.java"] | In concurrent environment, should use AtomicXXX instead of volatile to increase | - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: xxx
* Operating System version: xxx
* Java version: xxx
### Steps to reproduce this issue


Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/4323 | https://github.com/apache/dubbo/pull/4324 | 6f3a05ca820dc6e3dab127cd9a5daa375709347a | 041a6addc185fd2ec948fb6e007cb9cced09646f | 2019-06-16T09:51:23Z | java | 2019-06-18T03:04:29Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,309 | ["dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java"] | use consul with group and version | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.1
* Operating System version: windows10
* Java version: java8
### Steps to reproduce this issue
I run the [code](https://github.com/dubbo-x/example/tree/master/java-dubbo-consul2) by follow steps:
- docker run -p 8400:8400 -p 8500:8500 -p 8600:8600 -d consul
- run provider
- run consumer
### Actual Result
- provider runs ok
- consumer fail with `no provider available`
So I trace the register and subscribe process:
- provider register result show below

and we can see it use `url.getServiceInterface()` as service name (this example is `dubbo.DubboService`)
https://github.com/apache/dubbo/blob/6f3a05ca820dc6e3dab127cd9a5daa375709347a/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java#L255-L265
- however if we add group and version info, consumer will use `url.getServiceKey()` to find service (this example is `dubbo-x/dubbo.DubboService:0.0.1`), which doesn't equal the service name
https://github.com/apache/dubbo/blob/6f3a05ca820dc6e3dab127cd9a5daa375709347a/dubbo-registry/dubbo-registry-consul/src/main/java/org/apache/dubbo/registry/consul/ConsulRegistry.java#L141-L144
So consumer will not find the service if we add group and version info. Is my configuration wrong?
| https://github.com/apache/dubbo/issues/4309 | https://github.com/apache/dubbo/pull/4755 | d56eaa8ac9e8eaab69e42124ae82bd7de42b8d74 | 4acec50c8afb95544b08a6dbdda743264af69909 | 2019-06-14T05:27:01Z | java | 2019-08-07T06:33:23Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,280 | ["dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/tps/StatItem.java", "dubbo-rpc/dubbo-rpc-api/src/test/java/org/apache/dubbo/rpc/filter/tps/DefaultTPSLimiterTest.java", "dubbo-rpc/dubbo-rpc-api/src/test/java/org/apache/dubbo/rpc/filter/tps/StatItemTest.java"] | dubbo tps 元数据类StatItem 内存可见性问题 | Environment
Dubbo version: master
Step to reproduce this issue
```java
public boolean isAllowable() {
long now = System.currentTimeMillis();
if (now > lastResetTime + interval) {
token.set(rate);
lastResetTime = now;
}
int value = token.get();
boolean flag = false;
while (value > 0 && !flag) {
flag = token.compareAndSet(value, value - 1);
value = token.get();
}
return flag;
}
```
Expected Result
lastResetTime 共享变量是否有内存可见性问题
```java
if (now > lastResetTime + interval) {
token.set(rate);
lastResetTime = now;
}
```
有并发问题吗?
| https://github.com/apache/dubbo/issues/4280 | https://github.com/apache/dubbo/pull/9166 | b4e8d15efde1d140470e7f4d445f4c579d81ee44 | 2841c9d6d17252a426f07daeff5a468946f897c2 | 2019-06-12T02:56:18Z | java | 2021-10-30T02:28:50Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,279 | ["dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/protocol/AsyncToSyncInvoker.java"] | Observation of performance degradation of 2.7.2 when running under JDK 8 | https://github.com/apache/dubbo/blob/501e4dbdf9d93b8d5b59400cff3bdac5ea89fbc4/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/protocol/AsyncToSyncInvoker.java#L54
The above `result.get()` will eventually delegate to [CompletableFuture.get()](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html#get--). I checked the implementation provided in JDK 8, it will first spin-waiting for the countdown of 256 (the eighth power of 2) and then park the thread. I believe it's the unnecessary spin that caused the bad performance.
When running under JDK 11, the performance performs well as the previous versions, I still does not check the difference between these two implementations yet.
Thank @Jeff-Lv for help finding this issue. | https://github.com/apache/dubbo/issues/4279 | https://github.com/apache/dubbo/pull/4381 | 6b7d11837a1e28f7c6e537d046778ffaf1c4ea95 | 8534f48f61bfa0134a0eacf042a4f3269f779f0e | 2019-06-12T01:58:35Z | java | 2019-06-26T03:37:58Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,238 | ["dubbo-serialization/dubbo-serialization-kryo/src/main/java/org/apache/dubbo/common/serialize/kryo/utils/AbstractKryoFactory.java"] | provider服务端配置serialization="kryo"自定义异常类抛错时消费端捕获不到 | provider 服务端配置 serialization="kryo" 自定义异常类抛错时,消费端 kryo 序列化后捕获不到异常,以下是报错信息:
```
method:org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResult.java:148)
[DUBBO] Decode rpc result failed: com.esotericsoftware.kryo.KryoException: Class cannot be created (missing no-arg constructor): java.lang.StackTraceElementSerialization trace:stackTrace (org.apache.dubbo.rpc.RpcException), dubbo version: 2.7.0, current host: 127.0.0.1
java.io.IOException: com.esotericsoftware.kryo.KryoException: Class cannot be created missing no-arg constructor): java.lang.StackTraceElementSerialization trace:stackTrace (org.apache.dubbo.rpc.RpcException)
```
我们自己的解决方案是在 dubbo-serialization/dubbo-serialization-kryo/src/main/java/org/apache/dubbo/common/serialize/kryo/utils/AbstractKryoFactory.java 类中添加:
```java
kryo.addDefaultSerializer(Throwable.class, new JavaSerializer());
```

| https://github.com/apache/dubbo/issues/4238 | https://github.com/apache/dubbo/pull/4795 | 9975bfc0e2f4026d297105563292ff18b013f976 | 0e76eb000b92a8719413cd0eacabb70d4fb9f7a2 | 2019-06-03T07:13:00Z | java | 2019-08-14T02:08:04Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,227 | ["dubbo-rpc/dubbo-rpc-xml/src/main/java/org/apache/dubbo/xml/rpc/protocol/xmlrpc/XmlRpcProtocol.java"] | maven project compile error | Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project dubbo-rpc-xml: Compilation failure
dubbo\dubbo-rpc\dubbo-rpc-xml\src\main\java\org\apache\dubbo\xml\rpc\protocol\xmlrpc\XmlRpcProtocol.java:[154,4] 错误: Override 不是可重复的注释类型
| https://github.com/apache/dubbo/issues/4227 | https://github.com/apache/dubbo/pull/4228 | 7f7a28987853aa511ba18ab3647c34187e88230f | 85dd59cd7323160169634ca86708fc3cd9dbea1e | 2019-05-31T09:20:20Z | java | 2019-05-31T11:28:40Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,218 | ["dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/model/TagRouterRule.java", "dubbo-cluster/src/test/java/org/apache/dubbo/rpc/cluster/router/TagRouterTest.java"] | NPE when the TagRouterRule addresses config is null | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.1
* Operating System version: Windows
* Java version: 1.8
### Steps to reproduce this issue
When I config `TagRouter` like this (in Dubbo admin):
```YAML
enabled: true
force: false
runtime: false
tags:
- name: tag1
addresses: null
- name: tag2
addresses: null
```
### Actual Result
Then the `java.lang.NullPointerException` was caused
```
java.lang.NullPointerException
at org.apache.dubbo.rpc.cluster.router.tag.model.TagRouterRule.lambda$init$2(TagRouterRule.java:55)
at java.util.ArrayList.forEach(ArrayList.java:1257)
at org.apache.dubbo.rpc.cluster.router.tag.model.TagRouterRule.init(TagRouterRule.java:53)
at org.apache.dubbo.rpc.cluster.router.tag.model.TagRuleParser.parse(TagRuleParser.java:42)
```
I think we should add NPE check in `TagRouterRule` or check `addresses ` in Dubbo admin
```java
tags.forEach(tag -> {
tagnameToAddresses.put(tag.getName(), tag.getAddresses());
// check tag.getAddresses() not null
tag.getAddresses().forEach(addr -> {
List<String> tagNames = addressToTagnames.computeIfAbsent(addr, k -> new ArrayList<>());
tagNames.add(tag.getName());
});
});
```
| https://github.com/apache/dubbo/issues/4218 | https://github.com/apache/dubbo/pull/4236 | 346630e4132c9e45c547d9a2554c2b7702dabfad | 0b275651aa461dd241b77eaead7fd48fb656de47 | 2019-05-31T06:20:28Z | java | 2019-06-03T08:24:58Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,184 | ["dubbo-dependencies-bom/pom.xml"] | Add JMH Performance Benchmarks for DUBBO | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
yes
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
yes
JMH is a Java harness for building, running, and analysing nano/micro/milli/macro benchmarks written in Java and other languages targetting the JVM.
use JMH, some of our code changes will be more convincing | https://github.com/apache/dubbo/issues/4184 | https://github.com/apache/dubbo/pull/12500 | 4c67c26c8eb758b266caee5b5b00a7e9a37d8c7a | a01ac38cbf24bbeef62fe3289fe1e40b4ac0e92f | 2019-05-28T10:58:37Z | java | 2023-06-12T11:46:12Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,183 | ["dubbo-cluster/src/test/java/org/apache/dubbo/rpc/cluster/router/condition/ConditionRouterTest.java", "dubbo-metadata-report/dubbo-metadata-report-etcd/src/test/java/org/apache/dubbo/metadata/store/etcd/EtcdMetadataReportTest.java"] | Unstable UT (ConditionRouterTest.testRoute_matchFilter) | - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.2-SNAPSHOT
* Operating System version: ubuntu
* Java version: oracle 11
### Steps to reproduce this issue
```
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ConditionRouterTest.testRoute_matchFilter:132 expected: <0> but was: <2>
```
```
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.24 s - in org.apache.dubbo.rpc.cluster.StickyTest
[INFO] Running org.apache.dubbo.rpc.cluster.router.condition.ConditionRouterTest
The localhost address: 10.20.3.47:20880
10.20.3.47:20880
[ERROR] Tests run: 12, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.047 s <<< FAILURE! - in org.apache.dubbo.rpc.cluster.router.condition.ConditionRouterTest
[ERROR] testRoute_matchFilter Time elapsed: 0.023 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <0> but was: <2>
at org.apache.dubbo.rpc.cluster.router.condition.ConditionRouterTest.testRoute_matchFilter(ConditionRouterTest.java:132)
[INFO] Running org.apache.dubbo.rpc.cluster.router.ConfigConditionRouterTest
[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 s - in org.apache.dubbo.rpc.cluster.router.ConfigConditionRouterTest
[INFO] Running org.apache.dubbo.rpc.cluster.router.script.ScriptRouterTest
Warning: Nashorn engine is planned to be removed from a future JDK release
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.46 s - in org.apache.dubbo.rpc.cluster.router.script.ScriptRouterTest
[INFO] Running org.apache.dubbo.rpc.cluster.router.file.FileRouterEngineTest
Warning: Nashorn engine is planned to be removed from a future JDK release
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.973 s - in org.apache.dubbo.rpc.cluster.router.file.FileRouterEngineTest
[INFO] Running org.apache.dubbo.rpc.cluster.router.TagRouterTest
[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 s - in org.apache.dubbo.rpc.cluster.router.TagRouterTest
[INFO] Running org.apache.dubbo.rpc.cluster.loadbalance.RandomLoadBalanceTest
647
5712
3641
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.707 s - in org.apache.dubbo.rpc.cluster.loadbalance.RandomLoadBalanceTest
[INFO] Running org.apache.dubbo.rpc.cluster.loadbalance.LeastActiveBalanceTest
```
Full logs:
https://api.travis-ci.org/v3/job/538065499/log.txt
https://api.travis-ci.org/v3/job/538173916/log.txt
https://api.travis-ci.org/v3/job/539533829/log.txt | https://github.com/apache/dubbo/issues/4183 | https://github.com/apache/dubbo/pull/4226 | 5d32b86f2af54dbe71f5842f75f552f7465937dc | 78aea48cd710fc797b69c4eb2176f72554be3fd7 | 2019-05-28T10:55:19Z | java | 2019-06-06T14:52:44Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,175 | ["dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java"] | ServiceConfigurationListener should override ProviderConfigurationListener | - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.2-SNAPSHOT
* Operating System version: xxx
* Java version: xxx
### Steps to reproduce this issue
the override rule logic is different between Provider and Consumer.
Provider check ProviderConfigurationListener and then the ServiceConfigurationListener,
Consumer check ConsumerConfigurationListener and then the ReferenceConfigurationListener
i think we should keep them consistent and ServiceConfigurationListener should override ProviderConfigurationListener.
provider:
org.apache.dubbo.registry.integration.RegistryProtocol.OverrideListener#doOverrideIfNecessary
```java
public synchronized void doOverrideIfNecessary() {
final Invoker<?> invoker;
if (originInvoker instanceof InvokerDelegate) {
invoker = ((InvokerDelegate<?>) originInvoker).getInvoker();
} else {
invoker = originInvoker;
}
//The origin invoker
URL originUrl = RegistryProtocol.this.getProviderUrl(invoker);
String key = getCacheKey(originInvoker);
ExporterChangeableWrapper<?> exporter = bounds.get(key);
if (exporter == null) {
logger.warn(new IllegalStateException("error state, exporter should not be null"));
return;
}
//The current, may have been merged many times
URL currentUrl = exporter.getInvoker().getUrl();
//Merged with this configuration
URL newUrl = getConfigedInvokerUrl(configurators, originUrl);
newUrl = getConfigedInvokerUrl(serviceConfigurationListeners.get(originUrl.getServiceKey())
.getConfigurators(), newUrl);
newUrl = getConfigedInvokerUrl(providerConfigurationListener.getConfigurators(), newUrl);
if (!currentUrl.equals(newUrl)) {
RegistryProtocol.this.reExport(originInvoker, newUrl);
logger.info("exported provider url changed, origin url: " + originUrl +
", old export url: " + currentUrl + ", new export url: " + newUrl);
}
}
```
consumer:
org.apache.dubbo.registry.integration.RegistryDirectory#overrideWithConfigurator
```java
private URL overrideWithConfigurator(URL providerUrl) {
// override url with configurator from "override://" URL for dubbo 2.6 and before
providerUrl = overrideWithConfigurators(this.configurators, providerUrl);
// override url with configurator from configurator from "app-name.configurators"
providerUrl = overrideWithConfigurators(CONSUMER_CONFIGURATION_LISTENER.getConfigurators(), providerUrl);
// override url with configurator from configurators from "service-name.configurators"
if (serviceConfigurationListener != null) {
providerUrl = overrideWithConfigurators(serviceConfigurationListener.getConfigurators(), providerUrl);
}
return providerUrl;
}
```
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/4175 | https://github.com/apache/dubbo/pull/4179 | 21cfe1163d4fa07c3cb22b8d12ea149f6c87a701 | 4b97a0ba8b5edcedb37a320e00cd5bc36f304f90 | 2019-05-27T09:24:44Z | java | 2019-05-29T02:27:03Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,160 | ["dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ReferenceAnnotationBeanPostProcessor.java"] | when the interfaceName of the Reference annotation has duplicated,the exception is puzzled | - [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: all
* Operating System version: win 10
* Java version: 1.8
### Steps to reproduce this issue
1. consumer more than one service, and specify duplicated interfaceName with different consumer service, such as
```java
@Reference(check = false, interfaceName = "demoService")
private DemoService demoService;
@Reference(check = false, interfaceName = "demoService")
private DemoServiceB demoServiceB;
```
2. run provider
3. run consumer
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
a more meaningful exception
### Actual Result
```
Caused by: java.lang.IllegalArgumentException: Can not set dubbo.test.api.DemoServiceB field dubbo.test.common.consumer.service.ConsumerServiceDemo.demoServiceB to com.alibaba.dubbo.common.bytecode.proxy0
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
at java.lang.reflect.Field.set(Field.java:764)
at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceFieldElement.inject(ReferenceAnnotationBeanPostProcessor.java:367)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)
at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.postProcessPropertyValues(ReferenceAnnotationBeanPostProcessor.java:92)
... 12 more
```
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
I think we should check if the type is matched when the interfaceName of Reference annotation is the same.
| https://github.com/apache/dubbo/issues/4160 | https://github.com/apache/dubbo/pull/4163 | 8b31781333d12f7fb61974a325ae67cdf88de09f | 897709b57c0a5edae3b3a1439d42116ea63df5b9 | 2019-05-24T15:36:08Z | java | 2019-08-12T07:10:45Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,159 | ["dubbo-dependencies-bom/pom.xml"] | Update readme to remove the incubator prefix | Dubbo has been graduated!
We need to update readme to remove the incubator prefix in any of the links. | https://github.com/apache/dubbo/issues/4159 | https://github.com/apache/dubbo/pull/11368 | aaed5b91f6300dea57d9530a99c06dc25543d8dc | 9ffb8b81b96c03105fe76189517df3744e6a7a37 | 2019-05-24T14:41:09Z | java | 2023-01-28T03:26:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,152 | ["dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Result.java", "dubbo-monitor/dubbo-monitor-api/src/test/java/org/apache/dubbo/monitor/support/MonitorFilterTest.java", "dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/AppResponse.java", "dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/AsyncRpcResult.java", "dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/Result.java", "dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/protocol/ProtocolFilterWrapper.java", "dubbo-rpc/dubbo-rpc-api/src/test/java/org/apache/dubbo/rpc/filter/ConsumerContextFilterTest.java"] | AsyncRpcResult should handle exception when registering callback. | ```java
public Result thenApplyWithContext(Function<Result, Result> fn) {
this.thenApply(fn.compose(beforeContext).andThen(afterContext));
// You may need to return a new Result instance representing the next async stage,
// like thenApply will return a new CompletableFuture.
return this;
}
```
to
```java
```java
public Result thenApplyWithContext(BiFunction<Throwable, Result> fn) {
this.handle(fn);
// You may need to return a new Result instance representing the next async stage,
// like thenApply will return a new CompletableFuture.
return this;
}
```
``` | https://github.com/apache/dubbo/issues/4152 | https://github.com/apache/dubbo/pull/4379 | 64aea16c0eceb9e3cf2576259c36f415259a3ded | e1ce4bc64d27256826a7d25737956be7f5633186 | 2019-05-24T08:27:00Z | java | 2019-06-26T06:26:35Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,147 | ["dubbo-metadata-report/dubbo-metadata-report-api/src/main/java/org/apache/dubbo/metadata/identifier/MetadataIdentifier.java", "dubbo-metadata-report/dubbo-metadata-report-api/src/test/java/org/apache/dubbo/metadata/identifier/MetadataIdentifierTest.java"] | [Bug]Metadata Store Key was changed so that it is not compatible with 2.7.1 | Metadata Store Key was changed so that it is not compatible with 2.7.1.
The code is in org.apache.dubbo.metadata.identifier.MetadataIdentifier | https://github.com/apache/dubbo/issues/4147 | https://github.com/apache/dubbo/pull/4170 | 18eb69e96475c05be9bb8b5d7a0c7bcdafa97405 | 3dd261a4362332533dbc5fcac12151c8e334c362 | 2019-05-24T03:22:40Z | java | 2019-05-27T09:32:36Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,134 | ["dubbo-configcenter/dubbo-configcenter-zookeeper/src/main/java/org/apache/dubbo/configcenter/support/zookeeper/ZookeeperDynamicConfiguration.java", "dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/org/apache/dubbo/remoting/zookeeper/curator/CuratorZookeeperClient.java"] | ZookeeperDynamicConfiguration will be busy wait if zk is unavailable. |
```java
ZookeeperDynamicConfiguration(URL url, ZookeeperTransporter zookeeperTransporter) {
this.url = url;
rootPath = "/" + url.getParameter(CONFIG_NAMESPACE_KEY, DEFAULT_GROUP) + "/config";
initializedLatch = new CountDownLatch(1);
this.cacheListener = new CacheListener(rootPath, initializedLatch);
this.executor = Executors.newFixedThreadPool(1, new NamedThreadFactory(this.getClass().getSimpleName(), true));
zkClient = zookeeperTransporter.connect(url);
zkClient.addDataListener(rootPath, cacheListener, executor);
try {
// Wait for connection
this.initializedLatch.await();
} catch (InterruptedException e) {
logger.warn("Failed to build local cache for config center (zookeeper)." + url);
}
}
```
Instead, should we introduce a timeout for **this.initializedLatch.await()**? | https://github.com/apache/dubbo/issues/4134 | https://github.com/apache/dubbo/pull/4582 | 82378a1340f74e6600dfa9b7852f5fad0c531507 | 77a69e0da9ea972b5b66da300e6c4116b75a9347 | 2019-05-23T06:59:32Z | java | 2019-07-17T01:50:38Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,122 | ["dubbo-dependencies-bom/pom.xml", "dubbo-spring-boot/dubbo-spring-boot-starters/observability/pom.xml"] | @Reference(check = false) it did not work, "Failed to invoke the method" | ### Environment
Dubbo version: 2.7.1
Operating System version: windows10
Java version: 1.8
spring-cloud-starter-dubbor: 0.9.0.RELEASE
### Steps to reproduce this issue
1. @Reference(check = false)
2. start consumer service first
3. start provider service
4. visit api of consumer
A error happen:
Failed to invoke the method dubboDemoMethod in the service XXXX. No provider available for the serviceXXXX:1.0.0 from registry localhost:9090 on the consumer 192.168.0.1 using the dubbo version 2.7.1. Please check if the providers have been started and registered.
| https://github.com/apache/dubbo/issues/4122 | https://github.com/apache/dubbo/pull/13210 | 78bb3dc0496fa149d0317f667c859a6f7e1448fd | 7548a03fdc925c503e6344fca8a93cdc69ff3449 | 2019-05-23T01:55:32Z | java | 2023-10-17T09:30:30Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,111 | ["README.md", "dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistry.java"] | nacos registry serviceName may conflict | - [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: xxx
* Operating System version: xxx
* Java version: xxx
### Steps to reproduce this issue
nacos registry serviceName may conflict when we have two provider with same service but one config version as A and left group empty and
one config group as A and left version empty
the two provider would get registered with same key provdier:serviceName:A.
the cause of this issue is we ignore empty value when we construct the key, relative code is
```java
private String getServiceName(URL url) {
String category = url.getParameter(CATEGORY_KEY, DEFAULT_CATEGORY);
return getServiceName(url, category);
}
private String getServiceName(URL url, String category) {
StringBuilder serviceNameBuilder = new StringBuilder(category);
append(serviceNameBuilder, url, INTERFACE_KEY);
append(serviceNameBuilder, url, VERSION_KEY);
append(serviceNameBuilder, url, GROUP_KEY);
return serviceNameBuilder.toString();
}
private void append(StringBuilder target, URL url, String parameterName) {
target.append(SERVICE_NAME_SEPARATOR);
String parameterValue = url.getParameter(parameterName);
if (!StringUtils.isBlank(parameterValue)) {
target.append(parameterValue);
}
}
```
i think we should just keep a SEPARATOR as placeholder for empty value.
1. xxx
2. xxx
3. xxx
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/4111 | https://github.com/apache/dubbo/pull/4112 | 779fc27255b30c07164b2db6978c71e7fea0b82f | 8321c8f8a3a0fafd66d4a2ffc58deacbfdf34c55 | 2019-05-22T03:30:23Z | java | 2019-05-23T10:36:53Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,107 | ["dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ReferenceConfig.java"] | #PR:4109 Reference create proxy faild and retry create may lead to OOM | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.0
* Operating System version: Windows7
* Java version: jdk8
### Steps to reproduce this issue
1. stop dubbo service
2. dubbo client set checked = true. do get cudbbo client for times.
3. the size of list field [urls] in ReferenceConfig wil increase
Pls. provide [GitHub address] to reproduce this issue.
(project)[https://github.com/vio-lin/incubator-dubbo/tree/error-situation]
run java file
incubator-dubbo\dubbo-demo\dubbo-demo-xml\dubbo-demo-xml-consumer\src\main\java\org\apache\dubbo\demo\consumer\Application.java
### Expected Result
the [urls] in ReferenceConfig will be updated.
### Actual Result
the avalidable registery urls be add to [urls] in ReferenceConfig
| https://github.com/apache/dubbo/issues/4107 | https://github.com/apache/dubbo/pull/4109 | 1a66206e5ed3086fc52fab57263b4afe4b6ad8d5 | 13e876e40caa0ba658c8204cb2ca9b6321ad8bfa | 2019-05-22T02:19:46Z | java | 2019-05-23T08:09:04Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,103 | ["dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/ConsistentHashLoadBalance.java", "dubbo-cluster/src/test/java/org/apache/dubbo/rpc/cluster/loadbalance/ConsistentHashLoadBalanceTest.java"] | Hot data results in unbalanced load with ConsistentHashLoadBalance | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.1
* Operating System version: CentOS 7.5
* Java version: JAVA 1.8.0_202
### Issue description
`ConsistentHashLoadBalance` is very good at guaranteeing a robust data locality, when the same method with the same parameter is directed to always the same target (when system state does not change).
However, it is possible in reality when there exists a hot parameter, which is called significantly more frequently with the given method compared to other parameters.
This lead to a unbalanced load as the request to this method with the **hot** parameter is always directed to the same target, makes this target overloaded.
### Expectation
Would it be possible to improve the current `ConsistentHashLoadBalance` implementation to better balance the load under this edge case?
| https://github.com/apache/dubbo/issues/4103 | https://github.com/apache/dubbo/pull/8948 | 68986cbd83255e88219f72daef2cd1cc32a98f92 | fee0dbab0c255d79bfba50aaaafd5c7c33220bbb | 2019-05-20T13:54:25Z | java | 2021-09-30T02:12:22Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,016 | ["dubbo-dependencies-bom/pom.xml", "dubbo-spring-boot/dubbo-spring-boot-starters/observability/pom.xml"] | consumer不能instanceof自定义异常 | 在官方文档上也没有找到配置自定义ExceptionFilter的方式。
使用版本2.5.10
请问是旧版本的问题吗,还是提供了其他配置方式 | https://github.com/apache/dubbo/issues/4016 | https://github.com/apache/dubbo/pull/12933 | 86f6d61c4491ac9dc76fb6046462fcf1de8a05b0 | 3eed8dd6f47ddbe3c3da47f10f69f0fe46351b37 | 2019-05-10T03:05:24Z | java | 2023-08-22T01:48:21Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 4,008 | ["dubbo-metadata-report/dubbo-metadata-report-etcd/src/test/resources/testcontainers.properties"] | UT failure for EtcdMetadataReport | ```
[INFO] Running org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
ℹ︎ Checking the system...
✔ Docker version should be at least 1.6.0
✔ Docker environment should have more than 2GB free disk space
``` | https://github.com/apache/dubbo/issues/4008 | https://github.com/apache/dubbo/pull/4803 | 98c46777581be7c8e6df18c6a3e55d3c470e19b4 | 9a9bf2a968a9f37ac88845eff4b4f6c92ae4cafa | 2019-05-09T08:29:39Z | java | 2019-08-29T11:51:18Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,994 | ["dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DecodeableRpcResult.java"] | Need to enhance DecodeableRpcResult error message | In DecodeableRpcResult:
```java
default:
throw new IOException("Unknown result flag, expect '0' '1' '2', get " + flag);
```
But in fact, DecodeableRpcResult can recognize '3', '4', and '5'. | https://github.com/apache/dubbo/issues/3994 | https://github.com/apache/dubbo/pull/3995 | f95e29a0e049046b066eec7e84643315dce5c0fb | 09d8a6ea6ed58a331115bfb5b93bda1647229e6e | 2019-05-08T08:12:28Z | java | 2019-05-10T04:59:57Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,972 | ["dubbo-dependencies-bom/pom.xml"] | When dependency Dubbo 2.7.1 meet Exception Receiver class org.springframework.boot.context.config.ConfigFileApplicationListener does not define or inherit an implementation of the resolved method abstract supportsSourceType(Ljava/lang/Class;)Z of interface org.springframework.context.event.SmartApplicationListener | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.1
* Operating System version: mac 10.14
* Java version: 12
* SpringBoot version: 2.1.4.RELEASE
### Steps to reproduce this issue
1. Create Spring boot project
2. Add dependency dubbo 2.7.1
3. Start Application
If there is an exception, please attach the exception trace:
```
Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
Exception in thread "main" java.lang.AbstractMethodError: Receiver class org.springframework.boot.context.config.ConfigFileApplicationListener does not define or inherit an implementation of the resolved method abstract supportsSourceType(Ljava/lang/Class;)Z of interface org.springframework.context.event.SmartApplicationListener.
at org.springframework.context.event.GenericApplicationListenerAdapter.supportsSourceType(GenericApplicationListenerAdapter.java:79)
at org.springframework.context.event.AbstractApplicationEventMulticaster.supportsEvent(AbstractApplicationEventMulticaster.java:289)
at org.springframework.context.event.AbstractApplicationEventMulticaster.retrieveApplicationListeners(AbstractApplicationEventMulticaster.java:221)
at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:192)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:75)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:347)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
at com.yuxiao.dubbo.demo.DubboProviderApplication.main(DubboProviderApplication.java:14)
```
| https://github.com/apache/dubbo/issues/3972 | https://github.com/apache/dubbo/pull/11368 | aaed5b91f6300dea57d9530a99c06dc25543d8dc | 9ffb8b81b96c03105fe76189517df3744e6a7a37 | 2019-05-04T09:39:46Z | java | 2023-01-28T03:26:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,914 | ["dubbo-demo/dubbo-demo-spring-boot/pom.xml"] | The dubbo protostuff protocol serializes the bug of java.sql.Timestamp | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: v2.7.1
* Operating System version: OSX 10.14.4
* Java version: 1.8.0_202
### Steps to reproduce this issue
```java
@Test
public void testSerializeTimestamp() throws IOException, ClassNotFoundException {
Timestamp originTime = new Timestamp(System.currentTimeMillis());
this.protostuffObjectOutput.writeObject(originTime);
this.flushToInput();
Timestamp serializedTime = protostuffObjectInput.readObject(Timestamp.class);
assertThat(serializedTime, is(originTime));
}
// output
java.lang.AssertionError:
Expected: is <2019-04-23 19:01:37.31>
but: was <1970-01-01 08:00:00.31>
Expected :is <2019-04-23 19:01:37.31>
Actual :<1970-01-01 08:00:00.31>
``` | https://github.com/apache/dubbo/issues/3914 | https://github.com/apache/dubbo/pull/12746 | 8c20e80b8e41f6ae45fec258addf748ed8d1e482 | 848a57725df00a2eb679c80f584d29a121f59e01 | 2019-04-23T11:08:36Z | java | 2023-07-19T08:45:23Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,903 | ["dubbo-serialization/dubbo-serialization-gson/pom.xml"] | 'dubbo-serialization-gson' maven package error | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.2-SNAPSHOT
* Operating System version: mac os
* Java version: 1.8.0_131
* maven version: Apache Maven 3.3.9
### Steps to reproduce this issue
maven package -Dmaven.test.skip
`[ERROR] Non-resolvable parent POM for org.apache.dubbo:dubbo-serialization-gson:[unknown-version]: Could not find artifact org.apache.dubbo:dubbo-serialization:pom:2.7.2-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 19, column 13 -> [Help 2]` | https://github.com/apache/dubbo/issues/3903 | https://github.com/apache/dubbo/pull/3904 | 4c96814185825a961c2b4010096ed9f54f4fd8a5 | 875a665104b9ad5f7daf73bfca899cd81271dd12 | 2019-04-22T07:38:08Z | java | 2019-04-22T14:54:46Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,882 | ["dubbo-compatible/src/main/java/com/alibaba/dubbo/common/utils/UrlUtils.java", "dubbo-compatible/src/main/java/com/alibaba/dubbo/registry/NotifyListener.java", "dubbo-compatible/src/main/java/com/alibaba/dubbo/registry/support/AbstractRegistry.java", "dubbo-compatible/src/main/java/com/alibaba/dubbo/registry/support/AbstractRegistryFactory.java", "dubbo-compatible/src/main/java/com/alibaba/dubbo/registry/support/FailbackRegistry.java", "dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/support/FailbackRegistry.java"] | dubbo registry extension compatibility with dubbo 2.6.x | I write a registry extension in dubbo 2.6. Now I import it into a project that depend on dubbo2.7, some error happened.
```
Caused by: java.lang.NoClassDefFoundError: com/alibaba/dubbo/registry/support/AbstractRegistryFactory
at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_181]
at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[na:1.8.0_181]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_181]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) ~[na:1.8.0_181]
at java.net.URLClassLoader.access$100(URLClassLoader.java:73) ~[na:1.8.0_181]
at java.net.URLClassLoader$1.run(URLClassLoader.java:368) ~[na:1.8.0_181]
at java.net.URLClassLoader$1.run(URLClassLoader.java:362) ~[na:1.8.0_181]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_181]
at java.net.URLClassLoader.findClass(URLClassLoader.java:361) ~[na:1.8.0_181]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_181]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_181]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_181]
at java.lang.Class.forName0(Native Method) ~[na:1.8.0_181]
at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_181]
at org.apache.dubbo.common.extension.ExtensionLoader.loadResource(ExtensionLoader.java:702) ~[dubbo-2.7.1.jar:2.7.1]
... 32 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.alibaba.dubbo.registry.support.AbstractRegistryFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_181]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_181]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_181]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_181]
... 47 common frames omitted
```
| https://github.com/apache/dubbo/issues/3882 | https://github.com/apache/dubbo/pull/4015 | 86462778281953b3b4602dbccb456fab65bd7c32 | bfb60773d8dd6ff15a1510986423ea64cb23e6fc | 2019-04-16T07:50:50Z | java | 2019-05-17T07:58:26Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,866 | ["dubbo-remoting/dubbo-remoting-zookeeper/src/main/java/org/apache/dubbo/remoting/zookeeper/curator/CuratorZookeeperClient.java"] | dubbo 2.7.1下的zookeeper客户端监听出现空指针问题 | ### Environment
* Dubbo version: 2.71
* Operating System version: Windows 10
* Java version: Oracle JDK 1.8.1_191
### Steps to reproduce this issue
使用curator版本2.13.0,作为dubbo:refenence,应用启动报错如下异常:
2019-04-12 15:40:24.145 ERROR ZookeeperDynamicConfiguration-thread-1 TreeCache.handleException:760 []
java.lang.NullPointerException: null
at java.lang.String.<init>(String.java:515) ~[?:1.8.0_191]
at org.apache.dubbo.remoting.zookeeper.curator.CuratorZookeeperClient$CuratorWatcherImpl.childEvent(CuratorZookeeperClient.java:298) ~[dubbo-2.7.1.jar:2.7.1]
at org.apache.curator.framework.recipes.cache.TreeCache$2.apply(TreeCache.java:741) [curator-recipes-2.13.0.jar:?]
at org.apache.curator.framework.recipes.cache.TreeCache$2.apply(TreeCache.java:735) [curator-recipes-2.13.0.jar:?]
at org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:93) [curator-framework-2.13.0.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
| https://github.com/apache/dubbo/issues/3866 | https://github.com/apache/dubbo/pull/4126 | ebafc18c4dd3d8fc0f6bd399a56068af67958091 | 5285952a2ab80780133b4f9b1a9bb308ac9978a0 | 2019-04-12T07:53:42Z | java | 2019-05-23T03:20:11Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,817 | ["dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/MetadataReportConfig.java", "dubbo-config/dubbo-config-spring/src/main/resources/META-INF/compat/dubbo.xsd", "dubbo-config/dubbo-config-spring/src/main/resources/META-INF/dubbo.xsd", "dubbo-metadata-report/dubbo-metadata-report-api/src/main/java/org/apache/dubbo/metadata/identifier/MetadataIdentifier.java", "dubbo-metadata-report/dubbo-metadata-report-redis/src/main/java/org/apache/dubbo/metadata/store/redis/RedisMetadataReport.java"] | redis 元数据中心,目前不支持集群? | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.2-SNAPSHOT
* Operating System version: windows1
* Java version: 1.8
### Steps to reproduce this issue
```java
public class RedisMetadataReport extends AbstractMetadataReport {
private final static Logger logger = LoggerFactory.getLogger(RedisMetadataReport.class);
final JedisPool pool;
public RedisMetadataReport(URL url) {
super(url);
pool = new JedisPool(new JedisPoolConfig(), url.getHost(), url.getPort());
}
}
```
I see the construct method used `JedisPool`,
**if cluster ,how should do?**
| https://github.com/apache/dubbo/issues/3817 | https://github.com/apache/dubbo/pull/3863 | a7f56a36be1408602b4b31baaf7947ee9bba5985 | df084addc804ef727ae9f1959b10f88ffd5a0ddc | 2019-04-07T03:49:02Z | java | 2019-05-22T07:31:37Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,778 | ["dubbo-compatible/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/CompatibleServiceAnnotationBeanPostProcessor.java", "dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationBeanPostProcessor.java"] | Annotation mode cannot set service parameters in 2.7.0 | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.0
* Operating System version: mac
* Java version: 1.8
### Steps to reproduce this issue
1. Start dubbo provider in 2.7.0 SpringBoot Annotation mode
```
@SpringBootApplication
@DubboComponentScan
public class SpringBootProvider {
public static void main(String[] args) {
new EmbeddedZooKeeper(2181, false).start();
SpringApplication.run(SpringBootProvider.class);
}
}
```
2. set parameters as 2.5.10 for the ServiceBean.
```
@Service(parameters = {"key","value"})
public class DemoServiceImpl implements DemoService {
}
```
3. run SpringBootProvider to start the service
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
The service has been started and register to zookeeper.
### Actual Result
It throws exception as below, service cannot be started up.
```
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.lang.String[]' to required type 'java.util.Map' for property 'parameters'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String[]' to required type 'java.util.Map' for property 'parameters': no matching editors or conversion strategy found
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:591) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:603) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1532) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1491) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1231) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
... 15 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String[]' to required type 'java.util.Map' for property 'parameters': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:306) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:576) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.AbstractNestablePropertyAccessor.convertForProperty(AbstractNestablePropertyAccessor.java:603) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:216) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1532) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1491) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1231) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551) ~[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]
... 15 more
```
With my investigation, ConstructorArgValue discard in ServiceAnnotationBeanPostProcessor, which caused the issue.
```
private AbstractBeanDefinition buildServiceBeanDefinition(Service service, Class<?> interfaceClass,
String annotatedServiceBeanName) {
BeanDefinitionBuilder builder = rootBeanDefinition(ServiceBean.class)
.addConstructorArgValue(service)
// References "ref" property to annotated-@Service Bean
.addPropertyReference("ref", annotatedServiceBeanName)
.addPropertyValue("interface", interfaceClass.getName());
}
``` | https://github.com/apache/dubbo/issues/3778 | https://github.com/apache/dubbo/pull/4060 | 4f9d8960665ae1e8cfae1f398c6017d6def5593f | cdce2b278364c6391a07e35bca8dd5750529a63e | 2019-04-01T03:55:54Z | java | 2019-05-15T06:35:25Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,773 | ["dubbo-demo/dubbo-demo-spring-boot/pom.xml"] | [WeeklyReport] Weekly report for Dubbo 2019-3-22 to 2019-3-29 | # Weekly Report of Dubbo
This is a weekly report of Dubbo. It summarizes what have changed in the project during the passed week, including pr merged, new contributors, and more things in the future.
It is all done by @dubbo-bot which is a collaborate robot.
## Repo Overview
### Basic data
Baisc data shows how the watch, star, fork and contributors count changed in the passed week.
| Watch | Star | Fork | Contributors |
|:-----:|:----:|:----:|:------------:|
| 3211 | 25353 (↑163) | 14321 (↑83) | 186 (↑5) |
### Issues & PRs
Issues & PRs show the new/closed issues/pull requests count in the passed week.
| New Issues | Closed Issues | New PR | Merged PR |
|:----------:|:-------------:|:------:|:---------:|
| 28 | 13 | 21 | 10 |
## PR Overview
Thanks to contributions from community, Dubbo team merged **10** pull requests in the repository last week. They are:
* [Dubbo-3744]Create constants for 'hash.names' and 'hash.arguments' (#3744) ([#3758](https://github.com/apache/incubator-dubbo/pull/3758))
* format code ([#3756](https://github.com/apache/incubator-dubbo/pull/3756))
* fix spell ([#3750](https://github.com/apache/incubator-dubbo/pull/3750))
* [Dubbo-3741]Remove extra tags ([#3742](https://github.com/apache/incubator-dubbo/pull/3742))
* Update AbstractConfig.java ([#3737](https://github.com/apache/incubator-dubbo/pull/3737))
* 3.x dev rx support ([#3735](https://github.com/apache/incubator-dubbo/pull/3735))
* [Dubbo-3727] Fix NullPointerException when protocoluff protocol serializes an empty object ([#3734](https://github.com/apache/incubator-dubbo/pull/3734))
* [Dubbo-3625] Remove magic number 5 in CacheListener ([#3730](https://github.com/apache/incubator-dubbo/pull/3730))
* Unit test of JValidator; Clean code of JValidator ([#3723](https://github.com/apache/incubator-dubbo/pull/3723))
* Merge master branch to 3.x dev branch ([#3718](https://github.com/apache/incubator-dubbo/pull/3718))
## Code Review Statistics
Dubbo encourages everyone to participant in code review, in order to improve software quality. Every week @dubbo-bot would automatically help to count pull request reviews of single github user as the following. So, try to help review code in this project.
| Contributor ID | Pull Request Reviews |
|:--------------:|:--------------------:|
| @ralf0131 | 7 |
| @kexianjun | 3 |
| @Jeff-Lv | 2 |
| @carryxyh | 2 |
| @chickenlj | 2 |
| @CrazyHZM | 2 |
| @lixiaojiee | 1 |
| @tswstarplanet | 1 |
| @kezhenxu94 | 1 |
## Contributors Overview
It is Dubbo team's great honor to have new contributors from community. We really appreciate your contributions. Feel free to tell us if you have any opinion and please share this open source project with more people if you could. If you hope to be a contributor as well, please start from https://github.com/apache/incubator-dubbo/blob/master/CONTRIBUTING.md .
Here is the list of new contributors:
@IanCao
@niujialin
@MaWenlong1
@zhangfei9734
@John-Smile
Thanks to you all.
*Note: This robot is supported by [Collabobot](https://github.com/AlibabaDR/Collabobot).* | https://github.com/apache/dubbo/issues/3773 | https://github.com/apache/dubbo/pull/12307 | 9139d086c445cd07f637dccae3230bd2d0a0074e | ae6e5077c8b00361d50f30499a3b86b85b8ff33e | 2019-03-29T07:15:58Z | java | 2023-05-16T04:54:27Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,744 | ["dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/ConsistentHashLoadBalance.java", "dubbo-common/src/main/java/org/apache/dubbo/common/Constants.java"] | 应该使用常量代替 | dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/
ConsistentHashLoadBalance.java

我看其他地方都是用Constants进行替换,这里是不是可以使用Constants类里的属性进行替换 | https://github.com/apache/dubbo/issues/3744 | https://github.com/apache/dubbo/pull/3758 | e8d85386bc7869d3a6e5b27c12ec7784c74bc2d6 | fca31c45f47da0dbc1cf0a85ad5d87b2384a5c36 | 2019-03-27T02:04:07Z | java | 2019-03-28T01:22:20Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,728 | ["dubbo-compatible/src/main/java/com/alibaba/dubbo/remoting/exchange/ResponseCallback.java", "dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Invocation.java", "dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/RpcContext.java", "dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/protocol/dubbo/FutureAdapter.java", "dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/support/RpcUtils.java", "dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/RpcContext.java"] | examine backward compatibility for Zipkin and Skywalking on 2.7.2 | see more from https://github.com/openzipkin/brave/issues/867, also see https://github.com/apache/incubator-dubbo/issues/3576 | https://github.com/apache/dubbo/issues/3728 | https://github.com/apache/dubbo/pull/4014 | 086fdcb9c455edf36be59c529803fe0d179a6e27 | 8456a11a492b33270435dba8d01417cb35025289 | 2019-03-25T09:38:34Z | java | 2019-05-17T07:43:13Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,720 | ["dubbo-demo/dubbo-demo-spring-boot/pom.xml"] | [WeeklyReport] Weekly report for Dubbo 2019-3-15 to 2019-3-22 | # Weekly Report of Dubbo
This is a weekly report of Dubbo. It summarizes what have changed in the project during the passed week, including pr merged, new contributors, and more things in the future.
It is all done by @dubbo-bot which is a collaborate robot.
## Repo Overview
### Basic data
Baisc data shows how the watch, star, fork and contributors count changed in the passed week.
| Watch | Star | Fork | Contributors |
|:-----:|:----:|:----:|:------------:|
| 3211 | 25195 (↑152) | 14253 (↑104) | 181 (-) |
### Issues & PRs
Issues & PRs show the new/closed issues/pull requests count in the passed week.
| New Issues | Closed Issues | New PR | Merged PR |
|:----------:|:-------------:|:------:|:---------:|
| 24 | 9 | 18 | 12 |
## PR Overview
Thanks to contributions from community, Dubbo team merged **12** pull requests in the repository last week. They are:
* Add unit test for unpack and stick pack of dubbo and telent ([#3703](https://github.com/apache/incubator-dubbo/pull/3703))
* improve:ProviderMethodModel add parameterClasses ([#3693](https://github.com/apache/incubator-dubbo/pull/3693))
* [Dubbo-3684] Improve the checking of lease id ([#3692](https://github.com/apache/incubator-dubbo/pull/3692))
* [Dubbo-3682]Correct @Parameter config of field of ConfigCenterConfig ([#3688](https://github.com/apache/incubator-dubbo/pull/3688))
* [Dubbo-3678] fix 3678 ([#3681](https://github.com/apache/incubator-dubbo/pull/3681))
* Enhancement and Bugfix in 2.7.1 ( Part 3 ) ([#3675](https://github.com/apache/incubator-dubbo/pull/3675))
* enhance event type for consul configuration support ([#3671](https://github.com/apache/incubator-dubbo/pull/3671))
* [Dubbo-3653] etcd as config center ([#3663](https://github.com/apache/incubator-dubbo/pull/3663))
* [Dubbo-3657] Fix junit test failed ([#3658](https://github.com/apache/incubator-dubbo/pull/3658))
* polish code and fix some documentation errors ([#3655](https://github.com/apache/incubator-dubbo/pull/3655))
* optimize DefaultTpsLimiter ([#3654](https://github.com/apache/incubator-dubbo/pull/3654))
* 3.x dev rx support ([#3644](https://github.com/apache/incubator-dubbo/pull/3644))
## Code Review Statistics
Dubbo encourages everyone to participant in code review, in order to improve software quality. Every week @dubbo-bot would automatically help to count pull request reviews of single github user as the following. So, try to help review code in this project.
| Contributor ID | Pull Request Reviews |
|:--------------:|:--------------------:|
| @ralf0131 | 12 |
| @John-Smile | 3 |
| @beiwei30 | 3 |
| @lixiaojiee | 2 |
| @chickenlj | 2 |
| @mercyblitz | 1 |
| @lovepoem | 1 |
| @danielamorais | 1 |
## New Contributors
We have no new contributors in this project this week.
Dubbo team encourages everything about contribution from community.
For more details, please refer to https://github.com/apache/incubator-dubbo/blob/master/CONTRIBUTING.md .
*Note: This robot is supported by [Collabobot](https://github.com/AlibabaDR/Collabobot).* | https://github.com/apache/dubbo/issues/3720 | https://github.com/apache/dubbo/pull/12307 | 9139d086c445cd07f637dccae3230bd2d0a0074e | ae6e5077c8b00361d50f30499a3b86b85b8ff33e | 2019-03-22T07:15:53Z | java | 2023-05-16T04:54:27Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,713 | ["dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/support/wrapper/MockClusterInvoker.java", "dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/MockInvoker.java", "dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/MockProtocol.java"] | org.apache.dubbo.rpc.support.MockInvoker#getInterface should not return null | org.apache.dubbo.rpc.support.MockInvoker#getInterface should not return null, otherwise there's no way to specify URL with mock protocol in reference bean.
```xml
<dubbo:reference id="demoService" check="false" interface="o.DemoService" url="mock://..."/>
``` | https://github.com/apache/dubbo/issues/3713 | https://github.com/apache/dubbo/pull/3716 | 86b1a9862c97f8857eb73022481082fd429df023 | 72fe93bf22c1f7db88b5d083c9570b27e1032542 | 2019-03-21T11:33:45Z | java | 2019-04-29T09:41:53Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,711 | ["dubbo-demo/dubbo-demo-spring-boot/pom.xml"] | [Enhancement] Improve the correctness of time mesurement of an invocation | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
https://github.com/apache/incubator-dubbo/blob/6e4ff91dfca4395a8d1b180f40f632e97acf779d/dubbo-monitor/dubbo-monitor-api/src/main/java/org/apache/dubbo/monitor/support/MetricsFilter.java#L44-L47
The way to calculate the invocation time can be improved by using `java.lang.System#nanoTime` | https://github.com/apache/dubbo/issues/3711 | https://github.com/apache/dubbo/pull/12307 | 9139d086c445cd07f637dccae3230bd2d0a0074e | ae6e5077c8b00361d50f30499a3b86b85b8ff33e | 2019-03-21T11:13:35Z | java | 2023-05-16T04:54:27Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,684 | ["dubbo-remoting/dubbo-remoting-etcd3/src/main/java/org/apache/dubbo/remoting/etcd/jetcd/JEtcdClientWrapper.java"] | The etcd3 lease should be recycled correctly | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: xxx
* Operating System version: xxx
* Java version: xxx
### Steps to reproduce this issue
`org.apache.dubbo.remoting.etcd.jetcd.JEtcdClientWrapper#doClose`:
```
if (globalLeaseId > 0) {
revokeLease(this.globalLeaseId);
}
```
should be change to :
```
if (globalLeaseId != 0) {
revokeLease(this.globalLeaseId);
}
```
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/3684 | https://github.com/apache/dubbo/pull/3692 | dd5ec5c9b6a11caaf2e562f790a825e01ccb6d20 | 32d59f7f22b0e61617c7e49dde3b6aa5ba41523b | 2019-03-18T02:41:51Z | java | 2019-03-19T11:32:46Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,682 | ["dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ConfigCenterConfig.java"] | ConfigCenterConfig's member field's key wrong | - [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.1-SNAPSHOT
* Operating System version: MacOS 10.14
* Java version: 1.8
I find some member fields of ConfigCenterConfig are annotated by @Parameter, and the 'useKeyAsProperty' property of the annotation is set 'false'.
For example, the 'check' member field is annotated by @Parameter, and its key is "config.check", but the 'useKeyAsProperty' is false.
So the key of this field in URL's parameters is 'check' because the 'useKeyAsProperty' is false, but in config center configuration class like ApolloDynamicConfiguration, the class use 'config.check' to get the property from parameters of URL.
So I think we should adjust the setting.
How about set the 'useKeyAsProperty' to true ?
I want to listen others' proposals.
### Steps to reproduce this issue
config
```xml
<dubbo:configcenter address:xxx check="false"/>
```
### Expected Result
the key in url's parameters should be "config.check", because in apollo dynamic configuration class, it use the key to get the check property
What do you expected from the above steps?
### Actual Result
the key in parameters is check
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/3682 | https://github.com/apache/dubbo/pull/3688 | 660624ce9ad3ef1ca95fc3b6a88bf7b94dfa7628 | ad5f9f909e6282381499e63070c6175014c81935 | 2019-03-17T04:23:59Z | java | 2019-03-20T10:02:43Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,662 | ["dubbo-dependencies-bom/pom.xml"] | RpcContext's ServerContext can not transform data from provider to consumer when using sync invoke mode | - [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.x
* Operating System version: MacOS
* Java version: 1.8
### Steps to reproduce this issue
1. Execute following code in a method of a dubbo service on provider side:
```java
RpcContext.getServerContext().setAttachment("abc", "123");
```
2. Execute following code in the same thread that invoke the remote dubbo service after the invoking:
```java
Map<String, String> map = RpcContext.getServerContext().getAttachments();
System.out.println("context: " + map.get("abc"));
```
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
Console output:
context: 123
### Actual Result
context: null
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/3662 | https://github.com/apache/dubbo/pull/10324 | 807fc1220382aa962523476d54080791493dedab | 71c6e604f0a6bdc3daa4121723b7dce1987ec269 | 2019-03-14T16:46:14Z | java | 2022-07-15T08:30:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,652 | ["dubbo-dependencies-bom/pom.xml"] | problem | - [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: xxx
* Operating System version: xxx
* Java version: xxx
### Steps to reproduce this issue
1. xxx
2. xxx
3. xxx
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/3652 | https://github.com/apache/dubbo/pull/10324 | 807fc1220382aa962523476d54080791493dedab | 71c6e604f0a6bdc3daa4121723b7dce1987ec269 | 2019-03-14T07:24:29Z | java | 2022-07-15T08:30:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,650 | ["dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/support/ClusterUtils.java"] | Dubbo 2.7.0的provider无法指定客户端默认async | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.0
* Operating System version: macOS Sierra 10.12
* Java version: 1.8.0_111
### Steps to reproduce this issue
1. start provider and specific async as true, <dubbo:service interface="" async="true">
2. start consumer without async specific.
3. send a request
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
We are able to get the value from the CompletableFuture.
service.sayHello(input);
CompletableFuture<String> future = RpcContext.getContext().getCompletableFuture();
future.whenComplete((retValue, error) -> {
System.out.println(retValue);
});
### Actual Result
What actually happens?
It throws NPE exception as following, as we are not able to get the future.
Exception in thread "main" java.lang.NullPointerException
With investigation, it's an issue in RegistryDirectory.
Also, we are able to get async=true from providerUrl, but the querymap's async is false from consumer side. It changed the async from true to false, and caused the issue.
private URL mergeUrl(URL providerUrl) {
providerUrl = ClusterUtils.mergeUrl(providerUrl, queryMap);
}
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/3650 | https://github.com/apache/dubbo/pull/4058 | 789775b3ae35d673028dd99e5251e92334ff14c3 | ae669ead2ea075360742d70c9b3b026904a3eb90 | 2019-03-14T05:30:35Z | java | 2019-05-15T04:30:51Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,630 | ["dubbo-dependencies-bom/pom.xml"] | 为什么要把ZKClient's connectionTimeout设置成Integer的最大值 | 如题,在ZkclientWrapper中,实例化zkclient时,将连接超时时间设置为最大值,这样做在网络不好的时候,应该会造成阻塞。这样设计的目的是什么? | https://github.com/apache/dubbo/issues/3630 | https://github.com/apache/dubbo/pull/11611 | 77a4e16ec37e083fce024b1bf33a919cd05c3635 | 57ab2819a35fcabe6c44d366e08843231443a8aa | 2019-03-11T05:59:38Z | java | 2023-02-22T12:09:31Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,629 | ["dubbo-dependencies-bom/pom.xml"] | ServiceConfig duplicate export produces misleading exception | I mistakenly exported `ServiceConfig` twice, the second call produces the following exception which makes no sense:
```
java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_91]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91]
at org.apache.dubbo.config.AbstractConfig.refresh(AbstractConfig.java:568) [dubbo-2.7.0.jar:2.7.0]
at org.apache.dubbo.config.ServiceConfig.checkAndUpdateSubConfigs(ServiceConfig.java:272) [dubbo-2.7.0.jar:2.7.0]
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:328) [dubbo-2.7.0.jar:2.7.0]
at xx.xx.xx.xx.rpc.NodeRpcServerV3.start(NodeRpcServerV3.java:298) [classes/:?]
at xx.xx.xx.xx.rpc.NodeRpcV3Test.init(NodeRpcV3Test.java:21) [test-classes/:?]
....
Caused by: java.lang.IllegalArgumentException: Unsupported generic type false
at org.apache.dubbo.config.ServiceConfig.setGeneric(ServiceConfig.java:959) ~[dubbo-2.7.0.jar:2.7.0]
... 67 more
```
It took me at least one hour to locate the root cause.
Dubbo version: 2.7.0
I've crafted a demo for this issue at this [repo](https://github.com/JerryChin/dubbo-issue-3629). | https://github.com/apache/dubbo/issues/3629 | https://github.com/apache/dubbo/pull/10324 | 807fc1220382aa962523476d54080791493dedab | 71c6e604f0a6bdc3daa4121723b7dce1987ec269 | 2019-03-11T04:29:26Z | java | 2022-07-15T08:30:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,620 | ["dubbo-dependencies-bom/pom.xml"] | cusumer设置使用异步调用方法时,RpcContext中的ServerContext参数,无法从provider传到cusumer | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.6.6
* Operating System version: MacOS 10.14.3
* Java version: 1.8.0_171
### Steps to reproduce this issue
When I try to use RpcContext.getServerContext to pass data from provider to cusumer,if the method runs in sync mode, it works( Provider uses RpcContext.getServerContext().setAttachment to set Key-Value data,then Consumer uses RpcContext.getServerContext().getAttachment to get the Key-Value Data.). But if the method runs in async mode, it doesn't works. Consumer can't get the Key-Value by RpcContext.getServerContext().getAttachment.
1.
2. xxx
3. xxx
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/3620 | https://github.com/apache/dubbo/pull/10324 | 807fc1220382aa962523476d54080791493dedab | 71c6e604f0a6bdc3daa4121723b7dce1987ec269 | 2019-03-08T06:56:52Z | java | 2022-07-15T08:30:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,615 | ["dubbo-dependencies-bom/pom.xml"] | [Issue] SpringStatusChecker execute errors on non-XML Spring configuration |
### Environment
* Dubbo version: ALL
* Operating System version: ALL
* Java version: ALL
Error code:
```java
while (cls != null && method == null) {
try {
method = cls.getDeclaredMethod("getConfigLocations", new Class<?>[0]);
} catch (NoSuchMethodException t) {
cls = cls.getSuperclass();
}
}
``` | https://github.com/apache/dubbo/issues/3615 | https://github.com/apache/dubbo/pull/10324 | 807fc1220382aa962523476d54080791493dedab | 71c6e604f0a6bdc3daa4121723b7dce1987ec269 | 2019-03-07T09:22:29Z | java | 2022-07-15T08:30:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,613 | ["dubbo-dependencies-bom/pom.xml"] | Provide SSL encryption over underlying socket choice | Hey,
Is possible to encrypt the communication between provider and consumer? our RPC traffic will be on the Internet, so in our case It's extremely insecure to use Dubbo without any encryption.
Anyone can help me a bit. | https://github.com/apache/dubbo/issues/3613 | https://github.com/apache/dubbo/pull/11611 | 77a4e16ec37e083fce024b1bf33a919cd05c3635 | 57ab2819a35fcabe6c44d366e08843231443a8aa | 2019-03-07T08:24:01Z | java | 2023-02-22T12:09:31Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,598 | ["dubbo-dependencies-bom/pom.xml"] | metrics support in dubbo 2.7.1 | use https://github.com/dubbo/metrics to integrate metrics statistics in dubbo | https://github.com/apache/dubbo/issues/3598 | https://github.com/apache/dubbo/pull/10324 | 807fc1220382aa962523476d54080791493dedab | 71c6e604f0a6bdc3daa4121723b7dce1987ec269 | 2019-03-05T06:38:37Z | java | 2022-07-15T08:30:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,575 | ["dubbo-dependencies-bom/pom.xml"] | ExtensionLoader only collect exceptions but do not throws when loadResource |
**Dubbo version: master**
**JDK version: 1.8**
**Reproduce**
SPI config file:
META-INF/dubbo/internal/com.limore.ExtensionConflict
`impl1=com.limore.impl.ExtensionConflictImpl1`
META-INF/dubbo/com.limore.ExtensionConflict
`impl1=com.limore.impl.ExtensionConflictImpl2`
**Note: the SPI file in different directory**
then use ExtensionLoader load ExtensionConflict
```
ExtensionLoader.getExtensionLoader(ExtensionConflict.class).getExtension("impl1") // return ExtensionConflictImpl1
```
**result: no exception occured, ExtensionConflictImpl2 loaded by class loader, but returned ExtensionConflictImpl1**
**Expectation: throw 'Duplicate extension' exception**
**The Reason**
[ExtensionLoader#L764](https://github.com/apache/incubator-dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java#L764) throw 'duplicate extension' exception, and [ExtensionLoader#LL706](https://github.com/apache/incubator-dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java#L706) collect the exception, but there is no any code process the collected exceptions. reference [ExtensionLoader#L661](https://github.com/apache/incubator-dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java#L661) and [ExtensionLoader#L628](https://github.com/apache/incubator-dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java#L628) method.
| https://github.com/apache/dubbo/issues/3575 | https://github.com/apache/dubbo/pull/13391 | cf5f9db7855e4b18c716b52a7fd59fd764efa119 | dae5b1cf46a9bb1b5cbed72afee945e2a7f83dcd | 2019-02-27T14:55:34Z | java | 2023-11-21T02:21:39Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,564 | ["dubbo-dependencies-bom/pom.xml"] | add basic type support in Configuration. | int getInt();
boolean getBoolean();
... | https://github.com/apache/dubbo/issues/3564 | https://github.com/apache/dubbo/pull/13073 | 45d72b53bc2590068a5f9d3d3028bcb78ceb3604 | af490e68c1ac01ef9d9f096a1ac105acae2e560b | 2019-02-25T11:14:01Z | java | 2023-09-20T01:42:03Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,556 | ["dubbo-common/src/main/java/org/apache/dubbo/common/Version.java"] | NPE when package of interface is empty. | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.0
### Steps to reproduce this issue
1. Interface without package.

2. Export service.
```java
serviceConfig.setInterface(HelloService.class.getName());
serviceConfig.setRef(new HelloServiceImpl());
```
### Expected Result
Export service.
### Actual Result
Catch NPE when export service.
```
java.lang.NullPointerException
at com.alibaba.dubbo.common.Version.getVersion(Version.java:127)
at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:440)
at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:358)
at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:317)
```
| https://github.com/apache/dubbo/issues/3556 | https://github.com/apache/dubbo/pull/3557 | ade0cd70243416fadb0a4a52ad4e8df191738f92 | 5434ab74c724e4ed0f4b7dab11e6758a0a9c48d8 | 2019-02-25T07:23:18Z | java | 2019-02-26T03:48:02Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,555 | ["dubbo-dependencies-bom/pom.xml"] | service group is not supported in generic direct invocation | - [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.0
* Operating System version: all
* Java version: all
### Steps to reproduce this issue
1. start a dubbo provider with service group="1.0.0"
2. start a dubbo generic consumer with referenceConfig.setGroup("1.0.0")
3. call genericService.$invoke
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
success return.
### Actual Result
not found exported service,may be version or group mismatch.
If there is an exception, please attach the exception trace:
```
Exception in thread "main" org.apache.dubbo.rpc.RpcException: Failed to invoke remote method: $invoke, provider: dubbo://127.0.0.1:20890/org.apache.dubbo.samples.context.api.ContextService?application=generic-call-consumer&dubbo=2.0.2&generic=true&group=&interface=org.apache.dubbo.samples.context.api.ContextService&pid=13296®ister.ip=x.x.x.x&side=consumer×tamp=1551067201057, cause: org.apache.dubbo.remoting.RemotingException: Not found exported service: org.apache.dubbo.samples.context.api.ContextService:20890 in [1.0.0/org.apache.dubbo.samples.context.api.ContextService:20890], may be version or group mismatch , channel: consumer: /x.x.x.x:43004 --> provider: /x.x.x.x:20890, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=[sayHello, [Ljava.lang.String;@42f5a7d7, [Ljava.lang.Object;@4c3251f9], attachments={path=org.apache.dubbo.samples.context.api.ContextService, input=342, dubbo=2.0.2, interface=org.apache.dubbo.samples.context.api.ContextService, version=0.0.0, generic=true}]
org.apache.dubbo.remoting.RemotingException: Not found exported service: org.apache.dubbo.samples.context.api.ContextService:20890 in [1.0.0/org.apache.dubbo.samples.context.api.ContextService:20890], may be version or group mismatch , channel: consumer: /x.x.x.x:43004 --> provider: /x.x.x.x:20890, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=[sayHello, [Ljava.lang.String;@42f5a7d7, [Ljava.lang.Object;@4c3251f9], attachments={path=org.apache.dubbo.samples.context.api.ContextService, input=342, dubbo=2.0.2, interface=org.apache.dubbo.samples.context.api.ContextService, version=0.0.0, generic=true}]
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:223)
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:82)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:103)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:200)
at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.apache.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:113)
at org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:156)
at org.apache.dubbo.rpc.filter.GenericImplFilter.invoke(GenericImplFilter.java:172)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:88)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:49)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:54)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:77)
at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:57)
at org.apache.dubbo.common.bytecode.proxy0.$invoke(proxy0.java)
at org.apache.dubbo.samples.generic.call.GenericCallConsumer.main(GenericCallConsumer.java:74)
Caused by: org.apache.dubbo.remoting.RemotingException: org.apache.dubbo.remoting.RemotingException: Not found exported service: org.apache.dubbo.samples.context.api.ContextService:20890 in [1.0.0/org.apache.dubbo.samples.context.api.ContextService:20890], may be version or group mismatch , channel: consumer: /x.x.x.x:43004 --> provider: /x.x.x.x:20890, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=[sayHello, [Ljava.lang.String;@42f5a7d7, [Ljava.lang.Object;@4c3251f9], attachments={path=org.apache.dubbo.samples.context.api.ContextService, input=342, dubbo=2.0.2, interface=org.apache.dubbo.samples.context.api.ContextService, version=0.0.0, generic=true}]
org.apache.dubbo.remoting.RemotingException: Not found exported service: org.apache.dubbo.samples.context.api.ContextService:20890 in [1.0.0/org.apache.dubbo.samples.context.api.ContextService:20890], may be version or group mismatch , channel: consumer: /x.x.x.x:43004 --> provider: /x.x.x.x:20890, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=[sayHello, [Ljava.lang.String;@42f5a7d7, [Ljava.lang.Object;@4c3251f9], attachments={path=org.apache.dubbo.samples.context.api.ContextService, input=342, dubbo=2.0.2, interface=org.apache.dubbo.samples.context.api.ContextService, version=0.0.0, generic=true}]
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:223)
at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:82)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:103)
at org.apache.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:200)
at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:51)
at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.returnFromResponse(DefaultFuture.java:298)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:191)
at org.apache.dubbo.remoting.exchange.support.DefaultFuture.get(DefaultFuture.java:164)
at org.apache.dubbo.rpc.protocol.dubbo.DubboInvoker.doInvoke(DubboInvoker.java:108)
... 13 more
```
| https://github.com/apache/dubbo/issues/3555 | https://github.com/apache/dubbo/pull/10324 | 807fc1220382aa962523476d54080791493dedab | 71c6e604f0a6bdc3daa4121723b7dce1987ec269 | 2019-02-25T04:57:49Z | java | 2022-07-15T08:30:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,546 | ["dubbo-dependencies-bom/pom.xml"] | dubbo Http协议<metodName>.timeout参数配置不生效 | - [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo 2.6.3
* spring-integration-httpinvoker 2.0.6.RELEASE
* Operating System version: win10
* Java version: 1.8
### Steps to reproduce this issue
```java
protocol.refer(DemoService.class, URL.valueOf("http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?sayHello.timeout=60000"))
```
或
```xml
<dubbo:reference id="demoService" interface="com.wg.dubbo.service.DemoService" url="http://localhost:20880">
<dubbo:method name="sayHello" timeout="6000" retries="2"/>
</dubbo:reference>
```
provider超时的sayHello执行sleep 5秒,会报超时。
设置为
```java
protocol.refer(DemoService.class, URL.valueOf("http://127.0.0.1:20880/com.wg.dubbo.service.DemoService?timeout=60000"))
```
或
```xml
<dubbo:reference id="demoService" interface="com.wg.dubbo.service.DemoService" url="http://localhost:20880" timeout="6000" retries="2">
<dubbo:method name="sayHello" />
</dubbo:reference>
```
会timeout会生效 | https://github.com/apache/dubbo/issues/3546 | https://github.com/apache/dubbo/pull/13391 | cf5f9db7855e4b18c716b52a7fd59fd764efa119 | dae5b1cf46a9bb1b5cbed72afee945e2a7f83dcd | 2019-02-22T09:06:23Z | java | 2023-11-21T02:21:39Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,539 | ["dubbo-dependencies-bom/pom.xml"] | Why AdaptiveClassCodeGenerator instead of generating class directly | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
At the moment we create the adaptive extension class by `org.apache.dubbo.common.extension.ExtensionLoader#createAdaptiveExtensionClass`, which generates a Java class source `String` and compiles it.
So I'm wondering why is this strategy chosen and can we generate a proxy class directly (for example using cglib) of the adaptive extension class, it would save the time to compile and reduce the complexity when manipulating `String` to generate the source code, thus less errors may occur and more performant(I think).
Thanks | https://github.com/apache/dubbo/issues/3539 | https://github.com/apache/dubbo/pull/13391 | cf5f9db7855e4b18c716b52a7fd59fd764efa119 | dae5b1cf46a9bb1b5cbed72afee945e2a7f83dcd | 2019-02-21T14:58:16Z | java | 2023-11-21T02:21:39Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,535 | ["dubbo-dependencies-bom/pom.xml"] | ProtocolConfig配置不生效 | ### Environment
* Dubbo version: 2.7.0
* Operating System version: Windows
* Java version: 1.8
我从dubbo2.6.5升级到2.7.0之后,通过ProtocolConfig配置,如下:
```java
@Bean
public ProtocolConfig protocolConfig() {
ProtocolConfig config = new ProtocolConfig();
config.setName("dubbo");
config.setServer("netty4");
config.setPort(10003);
config.setHost("192.168.1.11");
config.setSerialization("hessian2");
config.setThreads(500);
return config;
}
```
来配置我要暴露的地址,结果通过zk客户端工具查看到providers下面注册的内容value是127.0.0.1,我的consumer也一直都连不上这个服务,consumer在另外的局域网地址上。请问如何解决此问题,在dubbo2.6.5的时候是192.168.1.11 | https://github.com/apache/dubbo/issues/3535 | https://github.com/apache/dubbo/pull/10324 | 807fc1220382aa962523476d54080791493dedab | 71c6e604f0a6bdc3daa4121723b7dce1987ec269 | 2019-02-21T09:37:06Z | java | 2022-07-15T08:30:00Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,533 | ["dubbo-dependencies-bom/pom.xml"] | NPE occurred when the configuration was deleted. | - [X] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.0
* Operating System version: MacOS
* Java version: 1.8
### Steps to reproduce this issue
When tag router is deleted by Dubbo Admin
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
java.lang.NullPointerException: null
at java.lang.String.<init>(String.java:515) ~[na:1.8.0_161]
at org.apache.dubbo.configcenter.support.zookeeper.CacheListener.childEvent(CacheListener.java:86) ~[dubbo-2.7.0.jar:2.7.0]
at org.apache.curator.framework.recipes.cache.TreeCache$2.apply(TreeCache.java:685) [curator-recipes-2.8.0.jar:na]
at org.apache.curator.framework.recipes.cache.TreeCache$2.apply(TreeCache.java:679) [curator-recipes-2.8.0.jar:na]
at org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:92) [curator-framework-2.8.0.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_161]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_161]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161]
``` | https://github.com/apache/dubbo/issues/3533 | https://github.com/apache/dubbo/pull/12744 | b7ad0c95b3d22dea58db1cc9d24400093614643b | 7a51c2379f4f7c4c6c6ed2ce53ae178304cbcc7b | 2019-02-21T09:18:15Z | java | 2023-07-19T06:06:17Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,522 | ["dubbo-dependencies-bom/pom.xml"] | Is there any plan to support spring cloud as rpc framework like feign? | As second party, we need to support some rpc framework. We use spring cloud as framework, but also need to support dubbo which first party required. | https://github.com/apache/dubbo/issues/3522 | https://github.com/apache/dubbo/pull/12821 | 1b8688c1796b32089299ad767aa8ad57cbc02ff2 | 4bc91875314bfae2ed3708b51a4045bfd8791746 | 2019-02-21T02:56:58Z | java | 2023-07-31T11:03:17Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,514 | ["dubbo-all/pom.xml"] | No such extension org.apache.dubbo.metadata.store.MetadataReportFactory by name redis | ### Environment
* Dubbo version: 2.7.0
* Operating System version: xxx
* Java version: 1.8
### Steps to reproduce this issue
```yaml
dubbo:
application:
name: ${spring.application.nam}
qos-enable: false
registry:
address: zookeeper://192.168.56.101:2181
client: curator
simplified: true
metadata-report:
address: redis://192.168.56.101:6379
```
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
```
java.lang.IllegalStateException: No such extension org.apache.dubbo.metadata.store.MetadataReportFactory by name redis
at org.apache.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:514)
at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:521)
at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:344)
at org.apache.dubbo.metadata.store.MetadataReportFactory$Adaptive.getMetadataReport(MetadataReportFactory$Adaptive.java)
at org.apache.dubbo.metadata.integration.MetadataReportService.<init>(MetadataReportService.java:54)
at org.apache.dubbo.metadata.integration.MetadataReportService.instance(MetadataReportService.java:67)
at org.apache.dubbo.config.AbstractInterfaceConfig.getMetadataReportService(AbstractInterfaceConfig.java:387)
at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:568)
at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:402)
at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:363)
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:345)
at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:318)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:112)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:58)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:354)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:886)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1242)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1230)
```
| https://github.com/apache/dubbo/issues/3514 | https://github.com/apache/dubbo/pull/3515 | f415fda0347e4ea6f75a1e62d05b8d560b051670 | a3629863f36bd7c58e49bf0910a9cdff46f055f5 | 2019-02-20T04:02:43Z | java | 2019-02-20T07:07:19Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,478 | ["dubbo-common/src/main/java/org/apache/dubbo/common/URL.java", "dubbo-common/src/test/java/org/apache/dubbo/common/URLTest.java", "dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ReferenceConfig.java", "dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java", "dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ServiceConfigTest.java", "dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/builders/ServiceBuilderTest.java", "dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java", "dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/RestProtocol.java", "dubbo-rpc/dubbo-rpc-rest/src/test/java/org/apache/dubbo/rpc/protocol/rest/RestProtocolTest.java"] | Keep interface key in the URL in simplify mode when it's different from path. | 1. non-simplify mode:
```
dubbo://120.0.0.1:20880/org.apache.dubbo.demo.DemoService?key=value
```
the store path of ZK will be: `/dubbo/porg.apache.dubbo.demo.DemoService/url`
2. simplify mode:
```
dubbo://120.0.0.1:20880/org.apache.dubbo.demo.DemoService?key=value
```
the store path of ZK will be: `/dubbo/porg.apache.dubbo.demo.DemoService/url`
3. simplify mode with path specified:
```
dubbo://120.0.0.1:20880/path-value?key=value
```
the store path of ZK will be: `/dubbo/path-value/url` | https://github.com/apache/dubbo/issues/3478 | https://github.com/apache/dubbo/pull/3479 | 08d5f15a4cb5ea014eb817b1b1106c8fae449998 | 2cfc2b322fa830816076de07a62992dc8c4f5d4c | 2019-02-14T10:01:00Z | java | 2019-03-14T08:38:05Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,477 | ["dubbo-common/src/main/java/org/apache/dubbo/common/URL.java", "dubbo-common/src/test/java/org/apache/dubbo/common/URLTest.java", "dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ReferenceConfig.java", "dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java", "dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ServiceConfigTest.java", "dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/builders/ServiceBuilderTest.java", "dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java", "dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/RestProtocol.java", "dubbo-rpc/dubbo-rpc-rest/src/test/java/org/apache/dubbo/rpc/protocol/rest/RestProtocolTest.java"] | NPE when exporting rest service using a given path. | When I set `path` in ServiceConfig or `contextpath` in ProtocolConfig, RestProtocol throws NPE on this line:
https://github.com/apache/incubator-dubbo/blob/master/dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/RestProtocol.java#L93
```java
Class implClass = ApplicationModel.getProviderModel(url.getServiceKey()).getServiceInstance().getClass();
```
<dubbo:service path="test" interface="org.apache.dubbo.samples.rest.api.facade.UserRestService" ref="userRestService"
protocol="rest" validation="true"/>
This is because we use `group/interface:version` as the key when putting ProviderModel:
```java
Application.initProviderModel(group/interface:version, providerModel)
```
but use `group/path:version` to get, as showed above.
I think to unify to `path` would solve this problem.
| https://github.com/apache/dubbo/issues/3477 | https://github.com/apache/dubbo/pull/3479 | 08d5f15a4cb5ea014eb817b1b1106c8fae449998 | 2cfc2b322fa830816076de07a62992dc8c4f5d4c | 2019-02-14T09:42:07Z | java | 2019-03-14T08:38:05Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,473 | ["dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/GenericFilter.java", "dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/telnet/LogTelnetHandler.java"] | Close Resources Properly | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: xxx
* Operating System version: xxx
* Java version: xxx
### Steps to reproduce this issue
1. xxx
2. xxx
3. xxx
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/3473 | https://github.com/apache/dubbo/pull/3474 | d414c7b53f6d6184687a057bdfcc5869a3af294f | 2e660dfef7282b43bc58113df39e61b7a79bdf0e | 2019-02-14T08:05:39Z | java | 2019-03-07T10:08:55Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,445 | ["dubbo-common/src/main/java/org/apache/dubbo/common/URL.java", "dubbo-common/src/test/java/org/apache/dubbo/common/URLTest.java", "dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ReferenceConfig.java", "dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java", "dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/ServiceConfigTest.java", "dubbo-config/dubbo-config-api/src/test/java/org/apache/dubbo/config/builders/ServiceBuilderTest.java", "dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java", "dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/RestProtocol.java", "dubbo-rpc/dubbo-rpc-rest/src/test/java/org/apache/dubbo/rpc/protocol/rest/RestProtocolTest.java"] | cannot register REST service in 2.7 due to the changes in RestProtoco#getContextPath | 2.7.0版本getContextPath方法:
```
protected String getContextPath(URL url) {
String contextPath = url.getPath();
return contextPath.endsWith("/") ? contextPath.substring(0,contextPath.length()-1) : contextPath;
}
```
无法将方法置入web容器中,退回2.6.5版本的方法:
```
protected String getContextPath(URL url) {
int pos = url.getPath().lastIndexOf("/");
return pos > 0 ? url.getPath().substring(0, pos) : "";
}
```
使用正常,两个方法应该不等价的。 | https://github.com/apache/dubbo/issues/3445 | https://github.com/apache/dubbo/pull/3479 | 08d5f15a4cb5ea014eb817b1b1106c8fae449998 | 2cfc2b322fa830816076de07a62992dc8c4f5d4c | 2019-02-10T08:43:03Z | java | 2019-03-14T08:38:05Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,408 | ["dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ReferenceConfig.java", "dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/filter/FutureFilter.java"] | GenericService泛化调用使用oninvoke、onreturn、onthrow时,FutureFilter的invocation.getMethodName()无法正确返回 | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.6.4
### Steps to reproduce this issue
1. GenericService泛化调用
2. 使用oninvoke、onreturn、onthrow
3. FutureFilter无法正常回调
### Expected Result
StaticContext.getKey(invoker.getUrl(), invocation.getMethodName(), Constants.ON_INVOKE_METHOD_KEY)
返回
com.alibaba.boot.dubbo.demo.consumer.DemoService:1.0.0.sayHello.oninvoke.method
### Actual Result
StaticContext.getKey(invoker.getUrl(), invocation.getMethodName(), Constants.ON_INVOKE_METHOD_KEY)
返回
com.alibaba.boot.dubbo.demo.consumer.DemoService:1.0.0.$invoke.oninvoke.method
预期是:
```
String methodName = invocation.getMethodName();
if("$invoke".equals(methodName)) {
Object[] arguments = invocation.getArguments();
methodName = (String) arguments[0];
}
```
| https://github.com/apache/dubbo/issues/3408 | https://github.com/apache/dubbo/pull/3528 | 05a98f3214d35ba13978bc88988d5a83864b8cd7 | 6034ceb21af7c34ef1778dad9a41b6ffa67667b6 | 2019-01-31T09:17:33Z | java | 2019-02-26T01:52:56Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,386 | ["dubbo-dependencies-bom/pom.xml", "dubbo-rpc/dubbo-rpc-triple/pom.xml"] | consumer always catch java.lang.reflect.UndeclaredThrowableException for the exception thrown from provider | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate. (This page is missing)
### Environment
* Dubbo version: 2.7.1-SNAPSHOT
* Operating System version: MacOSX 10.14.1
* Java version: 1.8.0_191
### Steps to reproduce this issue
1. Define exception class and other rpc classes
定义异常类和其他 RPC 相关类
#### API Defination
```java
public class ValidationException extends RuntimeException {
public ValidationException(String message) {
super(message);
}
}
```
```java
public interface MailService {
MailResponse send(MailRequest request);
}
```
```java
@Data
public class MailRequest implements Serializable {
/**
* 收件人邮箱地址
*/
@NotBlank(message = "收件人不能为空")
@Email(message = "收件人只能是一个 Email 地址")
private String to;
}
```
```java
@Data
public class MailResponse implements Serializable {
/** 是否成功*/
private boolean success = true;
}
```
#### Provider
```java
@Service(version = "${service.version}",protocol = "${dubbo.protocol.id}",application = "${dubbo.application.name}",registry = "${dubbo.registry.id}",executes = 32)
public class MailServiceImpl implements MailService {
// ...
@Override
public ServerResponse send(MailRequest request) {
Validator validator = Validation.buildDefaultValidatorFactory().getValidator();
Set<ConstraintViolation<MailRequest>> vset = validator.validate(request);
if (!vset.isEmpty()) {
throw new ValidationException(vset.iterator().next().getMessage());
}
return new MailResponse();
}
}
```
#### Consumer
```java
try {
MailResponse response = mailService.send(request);
System.out.println(response.isSuccess());
} catch (Exception e) {
e.printStackTrace();
}
```
### Expected Result
此处应当可捕获 `ValidationException`
Expect `ValidationException` to be caught.
### Actual Result
但是我们捕获到了 `UndeclaredThrowableException`
```
java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy36.send(Unknown Source)
at test.....MailRunner.lambda$runner$0(MailRunner.java:38)
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:804)
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:794)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:324)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
at test.....MailRunner.main(MailRunner.java:54)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.alibaba.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor$ReferenceBeanInvocationHandler.invoke(ReferenceAnnotationBeanPostProcessor.java:159)
... 8 more
Caused by: ....ValidationException: may not be empty
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.googlecode.jsonrpc4j.DefaultExceptionResolver.createThrowable(DefaultExceptionResolver.java:162)
at com.googlecode.jsonrpc4j.DefaultExceptionResolver.resolveException(DefaultExceptionResolver.java:82)
at com.googlecode.jsonrpc4j.JsonRpcClient.readResponse(JsonRpcClient.java:345)
at com.googlecode.jsonrpc4j.JsonRpcClient.readResponse(JsonRpcClient.java:285)
at com.googlecode.jsonrpc4j.JsonRpcHttpClient.invoke(JsonRpcHttpClient.java:161)
at com.googlecode.jsonrpc4j.spring.JsonProxyFactoryBean.invoke(JsonProxyFactoryBean.java:136)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy35.send(Unknown Source)
at com.alibaba.dubbo.common.bytecode.Wrapper0.invokeMethod(Wrapper0.java)
at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47)
at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:76)
at com.alibaba.dubbo.rpc.protocol.AbstractProxyProtocol$2.doInvoke(AbstractProxyProtocol.java:97)
at com.alibaba.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:155)
at com.alibaba.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:77)
at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:62)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:54)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:49)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:72)
at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56)
at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:78)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:244)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy0.send(proxy0.java)
... 13 more
```
| https://github.com/apache/dubbo/issues/3386 | https://github.com/apache/dubbo/pull/11845 | ae259ce21b6a93fb19a4e92213e51735c7d7b9d9 | cb0cdafc5a5cf20e00adfa3ad026db8ced19e25f | 2019-01-30T02:14:50Z | java | 2023-03-17T02:12:29Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,353 | ["dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/textui/TKvTest.java", "dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/textui/TLadderTest.java", "dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/textui/TTableTest.java"] | textui Unit test faild | - [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: xxx
* Operating System version: xxx
* Java version: xxx
### Steps to reproduce this issue
the following unit test has been failed in windows OS
org.apache.dubbo.qos.textui.TKvTest#test1
org.apache.dubbo.qos.textui.TLadderTest#testRendering
org.apache.dubbo.qos.textui.TTableTest#test1
org.apache.dubbo.qos.textui.TTableTest#test2
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/3353 | https://github.com/apache/dubbo/pull/3337 | 21046c85ea960c754d1f695530bff1a4b0aaa729 | 2308a36475621f337bef056e40f9b9454c972b19 | 2019-01-25T13:19:23Z | java | 2019-01-27T08:05:34Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,312 | ["dubbo-dependencies-bom/pom.xml", "dubbo-rpc/dubbo-rpc-triple/pom.xml"] | Add UT for the PR RedisRegistry |
Add missing UT for RedisRegistry which got identified as part of [PR](https://github.com/apache/incubator-dubbo/pull/3291) review
- [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: xxx
* Operating System version: xxx
* Java version: xxx
### Steps to reproduce this issue
1. xxx
2. xxx
3. xxx
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/3312 | https://github.com/apache/dubbo/pull/11470 | b7df96a80d4a153f412463060a5d00991204ce86 | 9f0c57965bcb55636d12806e228efd6fbaab3635 | 2019-01-22T15:11:37Z | java | 2023-02-06T09:27:09Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,294 | ["dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryDirectory.java", "dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java", "dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/AbstractClient.java"] | referenceconfig#destroy never invoke unregister | - [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: xxx
* Operating System version: xxx
* Java version: xxx
### Steps to reproduce this issue
1. xxx
2. xxx
3. xxx
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
### Actual Result
What actually happens?
If there is an exception, please attach the exception trace:
```
Just put your stack trace here!
```
| https://github.com/apache/dubbo/issues/3294 | https://github.com/apache/dubbo/pull/3295 | 0642b3e0bd3b4e39614e2faf5273fa16643159b5 | d27fb1f5aa46706a52f63b336932dc24ab95b82f | 2019-01-21T14:28:13Z | java | 2019-01-23T04:44:37Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,287 | ["dubbo-dependencies-bom/pom.xml", "dubbo-rpc/dubbo-rpc-triple/pom.xml"] | Async optimization. | * Unify Results used on the wire: AsyncRpcResult RpcResult SimpleAsyncRpcResult
* Possible async wrapper. https://github.com/apache/incubator-dubbo/issues/3113
* Some other possible improvements. | https://github.com/apache/dubbo/issues/3287 | https://github.com/apache/dubbo/pull/11470 | b7df96a80d4a153f412463060a5d00991204ce86 | 9f0c57965bcb55636d12806e228efd6fbaab3635 | 2019-01-21T05:16:51Z | java | 2023-02-06T09:27:09Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,237 | ["dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/RestProtocol.java"] | connectionMonitor in RestProtocol seems not work | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.6.5
### Confusion
the code below create a ```connectionMonitor``` instance, but ```Start``` method seems not called
```
@Override
protected <T> T doRefer(Class<T> serviceType, URL url) throws RpcException {
if (connectionMonitor == null) {
connectionMonitor = new ConnectionMonitor();
}
...
}
```
| https://github.com/apache/dubbo/issues/3237 | https://github.com/apache/dubbo/pull/3455 | fa2316eb29843439ae9097df2bd4f865ac88d538 | 10912c811598285c62f7c0f28530732dd1115e5b | 2019-01-15T14:16:43Z | java | 2019-02-12T17:01:10Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,236 | ["dubbo-remoting/dubbo-remoting-http/src/main/java/org/apache/dubbo/remoting/http/tomcat/TomcatHttpServer.java"] | Why does not tomcat throw an exception when `server.start` failed with a socket binding error. | Why does not tomcat throw an exception when `server.start` failed with a socket binding error.
https://github.com/apache/incubator-dubbo/blob/master/dubbo-remoting/dubbo-remoting-http/src/main/java/org/apache/dubbo/remoting/http/tomcat/TomcatHttpServer.java#L71
I do see the exception stack printed on the Console, whereas no exception was thrown in here:
```java
try {
tomcat.start();
} catch (LifecycleException e) {
throw new IllegalStateException("Failed to start tomcat server at " + url.getAddress(), e);
} catch (Exception ee) {
throw new IllegalStateException(e);
}
```
This behavior will cause a tomcat based HTTP service being registered unexpectedly to the Registry even after the binding has failed.
```java
@Override
public <T> Exporter<T> export(final Invoker<T> originInvoker) throws RpcException {
... ...
// socket binding exception extected
final ExporterChangeableWrapper<T> exporter = doLocalExport(originInvoker, providerUrl);
... ...
// url to registry
final Registry registry = getRegistry(originInvoker);
register(registryUrl, registeredProviderUrl);
return new DestroyableExporter<>(exporter);
}
``` | https://github.com/apache/dubbo/issues/3236 | https://github.com/apache/dubbo/pull/3589 | bb85d071beafc9f4f8c2e8c60493d33c95362a24 | 8f7b0c35938f12db8b075db87f9eeefb26c951d2 | 2019-01-15T09:12:28Z | java | 2019-03-04T16:40:14Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,231 | ["dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/tag/TagRouter.java"] | In dubbo-2.7 tag route, dubbo 2.6 client invoke 2.7 server work well but dubbo 2.7 client invoke 2.6 donot work well | 在tag route下, dubbo2.6作为client调用dubbo2.7 server,路由规则已经起效果; dubbo2.7作为client调用dubbo2.6路由规则没有生效。(在dubbo2.7,ops没有配置路由规则的前提下,只通过应用url的tag打标)。
发现问题代码, org.apache.dubbo.rpc.cluster.router.tag.TagRouter:
```
if (CollectionUtils.isEmpty(invokers)) {
return invokers;
}
if (tagRouterRule == null || !tagRouterRule.isValid() || !tagRouterRule.isEnabled()) {
return invokers;
}
```
没在ops里配置路由规则的时候,需要继续往下走。
----transplate here
Under tag route, dubbo2.6 calls dubbo2.7 server as client, routing rules have been effective; dubbo2.7 as client calls dubbo2.6 routing rules have not taken effect. (In dubbo2.7, ops is not configured with routing rules, only by applying the url tag).
Found the problem code, org.apache.dubbo.rpc.cluster.router.tag.TagRouter:
```
if (CollectionUtils.isEmpty(invokers)) {
return invokers;
}
if (tagRouterRule == null || !tagRouterRule.isValid() || !tagRouterRule.isEnabled()) {
return invokers;
}
```
When you do not configure routing rules in ops, you need to continue down. | https://github.com/apache/dubbo/issues/3231 | https://github.com/apache/dubbo/pull/3233 | 3c38f20a6736e8f5e9679383d7c1f5da80f54795 | 5acb4bf8686a6c315d8f2f3754f3635909208ab4 | 2019-01-15T04:49:39Z | java | 2019-01-15T10:24:51Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,186 | ["pom.xml"] | Remove unnessary content for pom file | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
Now dubbo requires java 8 or above, I notice there are still some configuration or profile for java6 (and hudson?)
Those content is not nessary any more, we need clean up it.
| https://github.com/apache/dubbo/issues/3186 | https://github.com/apache/dubbo/pull/3211 | 713a3ea96ded46ec54571a55d3370420f1e12455 | ea459212218696808fbf6cbbd579e31f748eec17 | 2019-01-10T13:19:59Z | java | 2019-01-31T09:07:53Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,163 | ["dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ReferenceConfig.java", "dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/filter/FutureFilter.java"] | CompletableFuture<T> support for GenericService. | 泛化调用中
```java
public interface GenericService {
Object $invoke(String method, String[] parameterTypes, Object[] args) throws GenericException;
}
```
这里可不可以异步调用返回个Future。我的工具实现会有多个 `ReferenceConfig` 缓存,我可以单独再用一个线程池来作为 `$invoke` 的执行上下文。但每个 `ReferenceConfig` 好像都有一组线程来维持,这个本身能不能异步调用? | https://github.com/apache/dubbo/issues/3163 | https://github.com/apache/dubbo/pull/3528 | 05a98f3214d35ba13978bc88988d5a83864b8cd7 | 6034ceb21af7c34ef1778dad9a41b6ffa67667b6 | 2019-01-07T09:40:54Z | java | 2019-02-26T01:52:56Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,158 | ["dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryDirectory.java", "dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java", "dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/transport/AbstractClient.java"] | [Dubbo - client always reconnect offline provider] Dubbo client bug. | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.0
* Operating System version: mac
* Java version: 1.8
### Steps to reproduce this issue
1. `AbstractClient#initConnectStatusCheckCommand` set break point at ` !isConnected()`.
2. `AbstractClient#close()` set break point here.
3. start client first, start provider and then shutdown provider gracefully , let method `AbstractClient.close()` be executed. Then select step `1` and trigger the thread to execute `!isConnected`, here will always try to connect the offline machine.
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
What do you expected from the above steps?
When the server goes offline, the client will not reconnect the offline machine.
### Actual Result
What actually happens?
The client reconnects the offline machine every 2 seconds and causes a large number of arp packets(because ip is recycled and not available now). | https://github.com/apache/dubbo/issues/3158 | https://github.com/apache/dubbo/pull/3295 | 0642b3e0bd3b4e39614e2faf5273fa16643159b5 | d27fb1f5aa46706a52f63b336932dc24ab95b82f | 2019-01-07T07:51:50Z | java | 2019-01-23T04:44:37Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,111 | ["dubbo-dependencies-bom/pom.xml"] | Happy new year 2019 | Change `NOTICE` file to embracing the new year:
change
```
Copyright 2018 The Apache Software Foundation
```
to
```
Copyright 2018-2019 The Apache Software Foundation
```
| https://github.com/apache/dubbo/issues/3111 | https://github.com/apache/dubbo/pull/11735 | e81e7562115937c9f87572441c9046dbe643966d | 80621216c8871992f073d1ae57e8c54e7cce2358 | 2019-01-02T02:19:28Z | java | 2023-03-06T11:26:37Z |
closed | apache/dubbo | https://github.com/apache/dubbo | 3,069 | ["dubbo-common/src/main/java/org/apache/dubbo/common/Constants.java", "dubbo-common/src/main/java/org/apache/dubbo/common/utils/ClassHelper.java", "dubbo-common/src/main/java/org/apache/dubbo/common/utils/StringUtils.java", "dubbo-common/src/test/java/org/apache/dubbo/common/utils/ClassHelperTest.java", "dubbo-common/src/test/java/org/apache/dubbo/common/utils/StringUtilsTest.java", "dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/MockInvoker.java"] | java.lang.NumberFormatException: For input string: "" | - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.
### Environment
* Dubbo version: 2.7.0
* Operating System version: Mac OS
* Java version: Java 8
### Steps to reproduce this issue
run the following UT
```java
@Test
public void testConvertPrimitive() {
Object result = ClassHelper.convertPrimitive(Integer.class, "");
}
```
Pls. provide [GitHub address] to reproduce this issue.
### Expected Result
No exception is thrown.
### Actual Result
Following exception is thrown:
```
java.lang.NumberFormatException: For input string: ""
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:662)
at java.base/java.lang.Integer.valueOf(Integer.java:983)
at org.apache.dubbo.common.utils.ClassHelper.convertPrimitive(ClassHelper.java:277)
at org.apache.dubbo.common.utils.ClassHelperTest.testConvertPrimitive(ClassHelperTest.java:125)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
```
### Improvement
1. Throwing exception is expensive, return null if input String is null or ""
2. Add more test cases to this method. | https://github.com/apache/dubbo/issues/3069 | https://github.com/apache/dubbo/pull/3093 | 1ecf2dda4195ff00b2dadd98a7c12df6f362a731 | c2c9de9d1206aebb3026a740d32cabea1677164c | 2018-12-27T02:43:22Z | java | 2019-02-02T05:20:32Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.