You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2024/05/06 07:13:54 UTC

(dubbo) 01/01: Merge branch 'apache-3.2' into apache-3.3

This is an automated email from the ASF dual-hosted git repository.

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

commit 07440a06792a8a5053a7424d6278d7338397ef1e
Merge: 583b57be2b d16f0ca310
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Mon May 6 15:12:13 2024 +0800

    Merge branch 'apache-3.2' into apache-3.3
    
    # Conflicts:
    #       README.md
    #       dubbo-common/src/main/java/org/apache/dubbo/common/constants/RegistryConstants.java
    #       dubbo-dependencies-bom/pom.xml
    #       dubbo-dependencies/dubbo-dependencies-zookeeper-curator5/pom.xml
    #       dubbo-dependencies/dubbo-dependencies-zookeeper/pom.xml
    #       dubbo-remoting/dubbo-remoting-http12/pom.xml
    #       dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/stream/TripleServerStream.java
    #       pom.xml

 .gitignore                                         |  3 +
 README.md                                          |  6 +-
 .../dubbo/rpc/cluster/router/state/BitList.java    | 74 +++++++++++-----------
 .../rpc/cluster/router/state/BitListTest.java      | 42 ++++++++++++
 .../src/main/java/org/apache/dubbo/common/URL.java | 21 ++++++
 .../dubbo/common/constants/RegistryConstants.java  |  7 ++
 .../dubbo-demo-native-consumer/pom.xml             |  2 +-
 .../dubbo-demo-native-provider/pom.xml             |  2 +-
 dubbo-demo/dubbo-demo-spring-boot/pom.xml          |  2 +-
 dubbo-dependencies-bom/pom.xml                     | 10 +--
 dubbo-maven-plugin/pom.xml                         |  2 +-
 .../apache/dubbo/registry/nacos/NacosRegistry.java | 74 +++++++++++++++++-----
 .../observability/pom.xml                          |  2 +-
 13 files changed, 180 insertions(+), 67 deletions(-)

diff --cc README.md
index 520c2b04a1,89fded1c5a..6b371e8b3b
--- a/README.md
+++ b/README.md
@@@ -123,39 -242,13 +123,39 @@@ Please follow the [template](https://gi
  Please report security vulnerabilities to [us](mailto:security@dubbo.apache.org) privately.
  
  ## Contact
 +* WeChat: apachedubbo
 +* DingTalk group: 37290003945
 +* Mailing list: [guide](https://dubbo.apache.org/zh-cn/contact/)
 +* Twitter: [@ApacheDubbo](https://twitter.com/ApacheDubbo)
 +* Security issues: please mail to [us](mailto:security@dubbo.apache.org) privately.
  
 -* Mailing list:
 -    * dev list: for dev/user discussion. [subscribe](mailto:dev-subscribe@dubbo.apache.org), [unsubscribe](mailto:dev-unsubscribe@dubbo.apache.org), [archive](https://lists.apache.org/list.html?dev@dubbo.apache.org),  [guide](https://github.com/apache/dubbo/wiki/Mailing-list-subscription-guide)
 +## Contributing
  
 -* Bugs: [Issues](https://github.com/apache/dubbo/issues/new?template=dubbo-issue-report-template.md)
 -* Gitter: [Gitter channel](https://gitter.im/alibaba/dubbo)
 -* Twitter: [@ApacheDubbo](https://twitter.com/ApacheDubbo)
 +See [CONTRIBUTING](https://github.com/apache/dubbo/blob/master/CONTRIBUTING.md) for details on submitting patches and the contribution workflow.
 +
 +### How can I contribute?
 +
 +* Take a look at issues with tags marked [`Good first issue`](https://github.com/apache/dubbo/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) or [`Help wanted`](https://github.com/apache/dubbo/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22).
 +* Join the discussion on the mailing list, subscription [guide](https://github.com/apache/dubbo/wiki/Mailing-list-subscription-guide).
 +* Answer questions on [issues](https://github.com/apache/dubbo/issues).
 +* Fix bugs reported on [issues](https://github.com/apache/dubbo/issues), and send us a pull request.
 +* Review the existing [pull request](https://github.com/apache/dubbo/pulls).
 +* Improve the [website](https://github.com/apache/dubbo-website), typically we need
-   * blog post
-   * translation on documentation
-   * use cases around the integration of Dubbo in enterprise systems.
++    * blog post
++    * translation on documentation
++    * use cases around the integration of Dubbo in enterprise systems.
 +* Improve the [dubbo-admin/dubbo-monitor](https://github.com/apache/dubbo-admin).
 +* Contribute to the projects listed in [ecosystem](https://github.com/dubbo).
 +* Other forms of contribution not explicitly enumerated above.
 +* If you would like to contribute, please send an email to dev@dubbo.apache.org to let us know!
 +
 +## Reporting bugs
 +
 +Please follow the [template](https://github.com/apache/dubbo/issues/new?template=dubbo-issue-report-template.md) for reporting any issues.
 +
 +## Reporting a security vulnerability
 +
 +Please report security vulnerabilities to [us](mailto:security@dubbo.apache.org) privately.
  
  ## Dubbo ecosystem
  
diff --cc dubbo-common/src/main/java/org/apache/dubbo/common/constants/RegistryConstants.java
index 0302f318ea,18cb945aee..0b7732ec8b
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/constants/RegistryConstants.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/constants/RegistryConstants.java
@@@ -141,5 -141,11 +141,12 @@@ public interface RegistryConstants 
      String ENABLE_EMPTY_PROTECTION_KEY = "enable-empty-protection";
      boolean DEFAULT_ENABLE_EMPTY_PROTECTION = false;
      String REGISTER_CONSUMER_URL_KEY = "register-consumer-url";
 +    String REGISTRY_PROTOCOL_TYPE = "registry-protocol-type";
+ 
+     /**
+      * export noting suffix servicename
+      * by default, dubbo export servicename is "${interface}:${version}:", this servicename with ':' suffix
+      * for compatible, we should export noting suffix servicename, eg: ${interface}:${version}
+      */
+     String NACOE_REGISTER_COMPATIBLE = "nacos.register-compatible";
  }
diff --cc dubbo-demo/dubbo-demo-spring-boot/pom.xml
index 1075039282,56c065f201..9e43674d89
--- a/dubbo-demo/dubbo-demo-spring-boot/pom.xml
+++ b/dubbo-demo/dubbo-demo-spring-boot/pom.xml
@@@ -35,9 -35,10 +35,9 @@@
      <skip_maven_deploy>true</skip_maven_deploy>
      <spring-boot.version>2.7.18</spring-boot.version>
      <spring-boot-maven-plugin.version>2.7.18</spring-boot-maven-plugin.version>
-     <micrometer-core.version>1.12.4</micrometer-core.version>
+     <micrometer-core.version>1.12.5</micrometer-core.version>
    </properties>
 +
    <dependencyManagement>
      <dependencies>
        <dependency>
diff --cc dubbo-dependencies-bom/pom.xml
index f93cc03543,d7cb5a87bc..67198d01e6
--- a/dubbo-dependencies-bom/pom.xml
+++ b/dubbo-dependencies-bom/pom.xml
@@@ -91,11 -91,11 +91,11 @@@
      <!-- Common libs -->
      <!-- <spring_version>4.3.30.RELEASE</spring_version> -->
      <spring_version>5.3.33</spring_version>
-     <spring_security_version>5.8.11</spring_security_version>
+     <spring_security_version>5.8.12</spring_security_version>
      <javassist_version>3.30.2-GA</javassist_version>
 -    <bytebuddy.version>1.14.13</bytebuddy.version>
 +    <byte-buddy_version>1.14.13</byte-buddy_version>
      <netty_version>3.2.10.Final</netty_version>
-     <netty4_version>4.1.108.Final</netty4_version>
+     <netty4_version>4.1.109.Final</netty4_version>
      <httpclient_version>4.5.14</httpclient_version>
      <httpcore_version>4.4.16</httpcore_version>
      <fastjson_version>1.2.83</fastjson_version>
@@@ -120,9 -120,8 +120,9 @@@
      <commons_lang3_version>3.14.0</commons_lang3_version>
      <envoy_api_version>0.1.35</envoy_api_version>
      <micrometer.version>1.12.4</micrometer.version>
 -
 +    <opentelemetry.version>1.26.0</opentelemetry.version>
 +    <zipkin-reporter.version>2.16.4</zipkin-reporter.version>
-     <micrometer-tracing.version>1.2.4</micrometer-tracing.version>
+     <micrometer-tracing.version>1.2.5</micrometer-tracing.version>
      <t_digest.version>3.3</t_digest.version>
      <prometheus_client.version>0.16.0</prometheus_client.version>
      <reactive.version>1.0.4</reactive.version>
@@@ -148,10 -144,9 +148,10 @@@
      <logback_version>1.2.13</logback_version>
      <!-- Fix the bug of log4j refer:https://github.com/apache/logging-log4j2/pull/608 -->
      <log4j2_version>2.23.1</log4j2_version>
-     <commons_io_version>2.16.0</commons_io_version>
+     <commons_io_version>2.16.1</commons_io_version>
 +    <commons-codec_version>1.16.0</commons-codec_version>
  
 -    <embedded_redis_version>0.13.0</embedded_redis_version>
 +    <embedded_redis_version>1.1.0</embedded_redis_version>
  
      <!-- Alibaba -->
      <alibaba_spring_context_support_version>1.0.11</alibaba_spring_context_support_version>
diff --cc dubbo-maven-plugin/pom.xml
index 59ebaedeff,afdafe42ff..6d17b6dbd5
--- a/dubbo-maven-plugin/pom.xml
+++ b/dubbo-maven-plugin/pom.xml
@@@ -68,29 -65,8 +68,29 @@@
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
-       <version>2.16.0</version>
+       <version>2.16.1</version>
      </dependency>
 +
 +    <!-- Takes no effect for this dependency. To notify github dependencies bot to update ${protobuf-java.version} property.  -->
 +    <dependency>
 +      <groupId>com.google.protobuf</groupId>
 +      <artifactId>protobuf-java</artifactId>
 +      <version>${protobuf-java.version}</version>
 +      <scope>test</scope>
 +      <optional>true</optional>
 +    </dependency>
 +
 +    <dependency>
 +      <groupId>org.sonatype.plexus</groupId>
 +      <artifactId>plexus-build-api</artifactId>
 +      <version>0.0.7</version>
 +      <exclusions>
 +        <exclusion>
 +          <groupId>org.codehaus.plexus</groupId>
 +          <artifactId>plexus-utils</artifactId>
 +        </exclusion>
 +      </exclusions>
 +    </dependency>
    </dependencies>
  
    <build>
diff --cc dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistry.java
index ea53a2035b,27f6608b81..b2e934c194
--- a/dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistry.java
+++ b/dubbo-registry/dubbo-registry-nacos/src/main/java/org/apache/dubbo/registry/nacos/NacosRegistry.java
@@@ -109,12 -109,10 +111,11 @@@ public class NacosRegistry extends Fail
      private static final String UP = "UP";
  
      /**
-      * The separator for service name
-      * Change a constant to be configurable, it's designed for Windows file name that is compatible with old
-      * Nacos binary release(< 0.6.1)
+      * The separator for service name Change a constant to be configurable, it's designed for Windows file name that is
+      * compatible with old Nacos binary release(< 0.6.1)
       */
 -    private static final String SERVICE_NAME_SEPARATOR = System.getProperty("nacos.service.name.separator", ":");
 +    private static final String SERVICE_NAME_SEPARATOR = SystemPropertyConfigUtils.getSystemProperty(
 +            CommonConstants.ThirdPartyProperty.NACOS_SERVICE_NAME_SEPARATOR, ":");
  
      /**
       * The pagination size of query for Nacos service names(only for Dubbo-OPS)