dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

Dubbo 2.7.5 has just been released

Open chickenlj opened this issue 6 years ago • 10 comments

Please check 2.7.5 Release Notes for details, more detailed docs will be published later at the official website.

chickenlj avatar Dec 29 '19 08:12 chickenlj

Is it compatible with 2.7.3? And can I use dubbo 2.7.5 and use dubbo-spring-boot 2.7.3?

Beside these, I think dubbo can do better on these:

  • release notes should show if there are something compatible with previous version
  • show roadmap and release notes on officical website

RojerAlone avatar Dec 30 '19 06:12 RojerAlone

Another stuff is for Refactoring of config module, what user should do for jdk11 env and what user should do with manual config instantiation should list in website.

for example how new config works with below code:

 @Configuration
    @EnableDubbo(scanBasePackages = "org.apache.dubbo.samples.metadatareport.configcenter.impl")
    @PropertySource("classpath:/spring/dubbo-provider.properties")
    static public class ProviderConfiguration {
        @Bean
        public ProviderConfig providerConfig() {
            ProviderConfig providerConfig = new ProviderConfig();
            providerConfig.setTimeout(1000);
            return providerConfig;
        }
    }

htynkn avatar Dec 30 '19 07:12 htynkn

Is it compatible with 2.7.3? And can I use dubbo 2.7.5 and use dubbo-spring-boot 2.7.3?

Beside these, I think dubbo can do better on these:

  • release notes should show if there are something compatible with previous version
  • show roadmap and release notes on officical website

I found there are some compatibility since 2.7.5:

  • the constructor of AbstractRouter remove DynamicConfiguration param
  • constant "dubbo.tag" was removed from org.apache.dubbo.rpc.cluster.Constants to CommonConstants

RojerAlone avatar Jan 06 '20 05:01 RojerAlone

Another compatibility problem, method org.apache.dubbo.rpc.Filter.Listener.onResponse was renamed to onMessage, I think create a new onMessage method and annotation @Deprecated on onResponse is better than renaming directly.

Besides this, I start my service failed because of NPE:

java.lang.NullPointerException: null
	at org.apache.dubbo.registry.integration.RegistryProtocol.register(RegistryProtocol.java:178) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:209) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:60) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:143) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:64) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:470) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:315) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:287) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:205) ~[dubbo-2.7.5.jar:2.7.5]

I read the code and found that dubbo would add a RegisterStatedURL to ProviderModel when register self, but can't find an exist model. The related compont is refactored, and is there some docs?

And more, it seems 2.7.5 has some compatibility question, should we create a special issue to collect them?

RojerAlone avatar Jan 06 '20 12:01 RojerAlone

Another compatibility problem, method org.apache.dubbo.rpc.Filter.Listener.onResponse was renamed to onMessage, I think create a new onMessage method and annotation @Deprecated on onResponse is better than renaming directly.

Besides this, I start my service failed because of NPE:

java.lang.NullPointerException: null
	at org.apache.dubbo.registry.integration.RegistryProtocol.register(RegistryProtocol.java:178) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:209) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:60) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:143) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:64) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:470) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:315) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:287) ~[dubbo-2.7.5.jar:2.7.5]
	at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:205) ~[dubbo-2.7.5.jar:2.7.5]

I read the code and found that dubbo would add a RegisterStatedURL to ProviderModel when register self, but can't find an exist model. The related compont is refactored, and is there some docs?

And more, it seems 2.7.5 has some compatibility question, should we create a special issue to collect them?

I got this Exception too!

haozi000005 avatar Jan 08 '20 09:01 haozi000005

我实现org.apache.dubbo.rpc.cluster.loadbalance.AbstractLoadBalance来写拓展,但是现在getWeight方法吧protected 修饰去掉了。我又需要自己在实现类里面重新写一遍getWeight的实现,请问是基于什么考虑,建议还是加上protected修饰

haozi000005 avatar Jan 08 '20 09:01 haozi000005

Thanks you all for the feedbacks, I am working on these possible issues.

chickenlj avatar Jan 10 '20 04:01 chickenlj

Thanks you all for the feedbacks, I am working on these possible issues.

will u fix it by release a new version 2.7.5.1 like 2.7.4.1? I saw some commits about compatibility has been merged into master.

RojerAlone avatar Jan 10 '20 11:01 RojerAlone

will u fix it by release a new version 2.7.5.1 like 2.7.4.1? I saw some commits about compatibility has been merged into master.

Yes, we are considering doing this.

chickenlj avatar Jan 13 '20 06:01 chickenlj

https://github.com/apache/dubbo/issues/5669

chickenlj avatar Jan 16 '20 09:01 chickenlj