Skip to content

Latest commit

 

History

History
265 lines (200 loc) · 18.4 KB

CHANGES.md

File metadata and controls

265 lines (200 loc) · 18.4 KB

Release Notes

2.7.1

Notice

'zkclient' extension for 'org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter' is removed from Dubbo 2.7.1, and 'curator' extension becomes the default extension. If you happen to config your application to use 'zkclient' explicitly, pls. switch to use 'curator' instead.

New Features

  • service register support on nacos #3582
  • support consul as registry center, config center and metadata center #983
  • service registry support/config center support on etcd #808
  • metrics support in dubbo 2.7.1 #3598
  • @Argument @Method support #2405

Enhancement

  • [Enhancement] @EnableDubboConfigBinding annotates @Repeatable #1770
  • [Enhancement] Change the default behavior of @EnableDubboConfig.multiple() #3193
  • Should make annotation easier to use in multiple items circumstance #3039
  • NoSuchMethodError are thrown when add custom Filter using dubbo2.6.5 and JDK1.6 and upgrade to dubbo2.7.0 #3570
  • introduce dubbo-dependencies-zookeeper #3607
  • Zookeeper ConfigCenter reuse the client abstraction and connection session #3288
  • [Survey] Is it necessary to continue to maintain zkclient in dubbo project? #3569
  • Start to use IdleStateHandler in Netty4 #3341
  • Support multiple shared links #2457
  • Optimize heartbeat #3299
  • AccessLogFilter simple date format reduce instance creation #3026
  • Support wildcard ip for tag router rule. #3289
  • ScriptRouter should cache CompiledScript #390
  • Optimize compareTo in Router to guarantee consistent behaviour. #3302
  • RMI protocol doesn't support generic invocation #2779
  • a more elegant way to enhance HashedWheelTimer #3567
  • obtain local address incorrectly sometimes in dubbo #538
  • implement pull request #3412 on master branch #3418
  • enhancement for event of response (follow up for pull request #3043) #3244
  • bump up hessian-lite version #3423 #3513
  • [Dubbo-3610]make snakeyaml transitive, should we do this? #3659

Bugfixes

  • cannot register REST service in 2.7 due to the changes in RestProtoco#getContextPath #3445
  • Conflict between curator client and dubbo #3574
  • is there a problem in NettyBackedChannelBuffer.setBytes(...)? #2619
  • [Dubbo - client always reconnect offline provider] Dubbo client bug #3158
  • fix heartbeat internal #3579
  • logic issue in RedisRegistry leads to services cannot be discovered. #3291
  • Multicast demo fails with message "Can't assign requested address" #2423
  • Fix thrift protocol, use path to locate exporter. #3331
  • cannot use override to modify provider's configuration when hessian protocol is used #900
  • Condition is not properly used ? #1917
  • connectionMonitor in RestProtocol seems not work #3237
  • fail to parse config text with white space #3367
  • @Reference check=false doesn't take effect #195
  • [Issue] SpringStatusChecker execute errors on non-XML Spring configuration #3615
  • monitor's cluster config is set to failsafe and set to failsafe only #274
  • A question for ReferenceConfigCache. #1293
  • referenceconfig#destroy never invoke unregister #3294
  • Fix when qos is disable,log will print every time #3397
  • service group is not supported in generic direct invocation #3555
  • setOnreturn doesn't take effect in async generic invocation #208
  • Fix timeout filter not work in async way #3174
  • java.lang.NumberFormatException: For input string: "" #3069
  • NPE occurred when the configuration was deleted #3533
  • NPE when package of interface is empty #3556
  • NPE when exporting rest service using a given path. #3477
  • NullPointerException happened when using SpringContainer.getContext() #3476
  • Why does not tomcat throw an exception when server.start failed with a socket binding error. #3236
  • No such extension org.apache.dubbo.metadata.store.MetadataReportFactory by name redis #3514
  • dubbo 2.7.1-SNAPSHOT NoClassDefFoundError when use springboot #3426
  • NPE occurs when use @Reference in junit in spring boot application #3429
  • When refer the same service with more than one @References(with different configs) on consumer side, only one take effect #1306
  • consumer always catch java.lang.reflect.UndeclaredThrowableException for the exception thrown from provider #3386
  • dubbo2.7.0 com.alibaba.com.caucho.hessian.io.HessianProtocolException: 'com.alibaba.dubbo.common.URL' could not be instantiated #3342
  • Close Resources Properly #3473
  • SPI entires dup by 3 times. #2842
  • provider gets wrong interface name from attachment when use generic invocation in 2.6.3 #2981
  • HashedWheelTimer's queue gets full #3449
  • Modify MetadataReportRetry ThreadName #3550
  • Keep interface key in the URL in simplify mode when it's different from path. #3478
  • nc is not stable in dubbo's bootstrap script #936

2.7.0

Requirements: Java 8+ required

Please check here for notes and possible compatibility issues for upgrading from 2.6.x or lower to 2.7.0.

New Features

  • Enhancement of service governance rules.

    • Enriched Routing Rules.
      1. Conditional Routing. Supports both application-level and service-level conditions.
      2. Tag Routing. Newly introduced to better support traffic isolation, such as grey deployment.
    • Decoupling governance rules with the registry, making it easier to extend. Apollo and Zookeeper are available in this version. Nacos support is on the way...
    • Application-level Dynamic Configuration support.
    • Use YAML as the configuration language, which is more friendly to read and use.
  • Externalized Configuration. Supports reading dubbo.properties hosted in remote centralized configuration center - centralized configuration.

  • Simplified registry URL. With lower Registry memory use and less notification pressure from Service Directory, separates Configuration notification from Service Discovery.

  • Metadata Center. A totally new concept since 2.7.0, used to store service metadata including static configuration, service definition, method signature, etc.. By default, Zookeeper and Redis are supported as the backend storage. Will work as the basis of service testing, mock and other service governance features going to be supported in Dubbo-Admin.

  • Asynchronous Programming Model (only works for Dubbo protocol now)

    • Built-in support for the method with CompletableFuture signature.
    • Server-side asynchronous support, with an AsyncContext API works like Servlet 3.0.
    • Asynchronous filter chain callback.
  • Serialization Extension: Protobuf.

  • Caching Policy Extension: Expiring Cache.

Enhancements / Bugfixes

  • Load Balancing strategy enhancement: ConsitentHash #2190, LeastActive #2171, Random #2597, RoundRobin #2650.

  • Third-party dependency upgrading.

    • Switch default remoting to Netty 4.
    • Switch default Zookeeper client to Curator.
    • Upgrade Jetty to 9.x.
  • IPV6 support #2079.

  • Performance tuning, check hanging requests on a closed channel, make them return directly #2185.

  • Fixed the serialization problem of JDK primitive types in Kryo #2178.

  • Fixed the problem of failing to notify Consumer as early as possible after the Provider side deserialization failed #1903.

Upgrading and Compatibility Notifications

We have always keep compatibility in mind during the whole process of 2.7.0. We even want old users to upgrade with only on pom version upgrade, but it's hard to achieve that, especially when considering that we have the package renamed in this version, so we had some tradeoffs. If you only used the Dubbo's most basic features, you may have little problems of upgrading, but if you have used some advanced features or have some SPI extensions inside, you'd better read the upgrade notifications carefully. The compatibility issues can be classified into the following 5 categories, for each part, there will have detailed dos and don'ts published later in the official website.

  1. Interoperability between 2.7.0 and lower versions

  2. Package renaming

    com.alibaba.dubbo -> org.apache.dubbo

  3. Simplification of registered URLs

  4. Service Governance Rules

  5. Configuration

2.6.6

Enhancement / New feature:

  • tag route. #3065
  • Use Netty4 as default Netty version. #3029
  • upporting Java 8 Date/Time type when serializing with Kryo #3519
  • supoort config telnet #3511
  • add annotation driven in MethodConfig and ArgumentConfig #2603
  • add nacos-registry module #3296
  • add protocol attribute in @Rerefence #3555 *support the hierarchical interface in @Service #3251
  • change the default behavior in @EnableDubboConfig.multiple() #3193
  • inline source code of spring-context-support #3192
  • Simplify externalized configuration of Dubbo Protocol name #3189

BugFix:

  • update hessian-lite to 2.3.5, fix unnecessary class load #3538
  • Fix unregister when client destroyed(referenceconfig#destroy) #3502
  • SPI entires dup by 3 times #3315
  • fix Consumer throws RpcException after RegistryDirectory notify in high QPS #2016
  • fix NPE in @Reference when using Junit to test dubbo service #3429
  • fix consuer always catch java.lang.reflect.UndeclaredThrowableException for any exception throws in provider #3386
  • fix the priority of DubboConfigConfigurationSelector #2897
  • fix @Rerefence#parameters() not work #2301

2.6.5

Enhancements / Features:

  • Reactor the generation rule for @Service Bean name #2235
  • Introduce a new Spring ApplicationEvent for ServiceBean exporting #2251
  • [Enhancement] the algorithm of load issue on Windows. #1641
  • add javadoc to dubbo-all module good first issue. #2600
  • [Enhancement] Reactor the generation rule for @Service Bean name type/enhancement #2235
  • Optimize LeastActiveLoadBalance and add weight test case. #2540
  • Smooth Round Robin selection. #2578 #2647
  • [Enhancement] Resolve the placeholders for sub-properties. #2297
  • Add ability to turn off SPI auto injection, special support for generic Object type injection. #2681

Bugfixes:

  • @Service(register=false) is not work. #2063
  • Our customized serialization id exceeds the maximum limit, now it cannot work on 2.6.2 anymore. #1903
  • Consumer throws RpcException after RegistryDirectory notify in high QPS. #2016
  • Annotation @Reference can't support to export a service with a sync one and an async one . #2194
  • org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor#generateReferenceBeanCacheKey has a bug. #2522
  • 2.6.x Spring Event & Bugfix. #2256
  • Fix incorrect descriptions for dubbo-serialization module. #2665
  • A empty directory dubbo-config/dubbo-config-spring/src/test/resources/work after package source tgz. #2560
  • Fixed 2.6.x branch a minor issue with doConnect not using getConnectTimeout() in NettyClient. (No issue). #2622
  • Bean name of @service annotated class does not resolve placeholder. #1755

Issues and Pull Requests, check milestone-2.6.5.

2.6.4

Enhancements / Features

  • Support access Redis with password, #2146
  • Support char array for GenericService, #2137
  • Direct return when the server goes down abnormally, #2451
  • Add log for trouble-shooting when qos start failed, #2455
  • PojoUtil support subclasses of java.util.Date, #2502
  • Add ip and application name for MonitorService, #2166
  • New ASCII logo, #2402

Bugfixes

  • Change consumer retries default value from 0 to 2, #2303
  • Fix the problem that attachment is lost when retry, #2024
  • Fix NPE when telnet get a null parameter, #2453

UT stability

  • Improve the stability by changing different port, setting timeout to 3000ms, #2501

Issues and Pull Requests, check milestone-2.6.4.

2.6.3

Enhancements / Features

  • Support implicit delivery of attachments from provider to consumer, #889
  • Support inject Spring bean to SPI by bean type, #1837
  • Add generic invoke and attachments support for http&hessian protocol, #1827
  • Get the real methodname to support consistenthash for generic invoke, #1872
  • Remove validation key from provider url on Consumer side, config depedently, #1386
  • Introducing the Bootstrap module as a unified entry for Dubbo startup and resource destruction, #1820
  • Open TCP_NODELAY on Netty 3, #1746
  • Support specify proxy type on provider side, #1873
  • Support dbindex in redis, #1831
  • Upgrade tomcat to 8.5.31, #1781

Bugfixes

  • ExecutionDispatcher meet with user docs, #1089
  • Remove side effects of Dubbo custom loggers on Netty logger, #1717
  • Fix isShutdown() judge of Dubbo biz threadpool always return true, #1426
  • Selection of invoker node under the critical condition of only two nodes, #1759
  • Listener cann't be removed during unsubscribe when use ZK as registry, #1792
  • URL parsing problem when user filed contains '@', #1808
  • Check null in CacheFilter to avoid NPE, #1828
  • Fix potential deadlock in DubboProtocol, #1836
  • Restore the bug that attachment has not been updated in the RpcContext when the Dubbo built-in retry mechanism is triggered, #1453
  • Some other small bugfixes

Performance Tuning

  • ChannelState branch prediction optimization. #1643
  • Optimize AtomicPositiveInteger, less memory and compute cost, #348
  • Introduce embedded Threadlocal to replace the JDK implementation, #1745

Hessian-lite