(dubbo) branch 3.2 updated: Fix ModuleEnvironment#getDynamicGlobalConfiguration (#13781)

2024-02-28 Thread crazyhzm
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/3.2 by this push:
 new 428ca27a94 Fix ModuleEnvironment#getDynamicGlobalConfiguration (#13781)
428ca27a94 is described below

commit 428ca27a94826e5dadda1b2ab0d588ba3ece5fa2
Author: jiangyuan <469391...@qq.com>
AuthorDate: Thu Feb 29 15:25:22 2024 +0800

Fix ModuleEnvironment#getDynamicGlobalConfiguration (#13781)

* Update ModuleEnvironment#getDynamicGlobalConfiguration

* add unit test

* update
---
 .../apache/dubbo/common/config/ModuleEnvironment.java  | 18 +-
 .../config/OrderedPropertiesConfigurationTest.java | 16 
 2 files changed, 21 insertions(+), 13 deletions(-)

diff --git 
a/dubbo-common/src/main/java/org/apache/dubbo/common/config/ModuleEnvironment.java
 
b/dubbo-common/src/main/java/org/apache/dubbo/common/config/ModuleEnvironment.java
index 3de18ccbf0..c014c57a64 100644
--- 
a/dubbo-common/src/main/java/org/apache/dubbo/common/config/ModuleEnvironment.java
+++ 
b/dubbo-common/src/main/java/org/apache/dubbo/common/config/ModuleEnvironment.java
@@ -29,8 +29,6 @@ import java.util.Map;
 import java.util.Optional;
 import java.util.concurrent.atomic.AtomicBoolean;
 
-import static 
org.apache.dubbo.common.constants.LoggerCodeConstants.COMMON_UNEXPECTED_EXCEPTION;
-
 public class ModuleEnvironment extends Environment implements ModuleExt {
 
 // delegate
@@ -94,19 +92,13 @@ public class ModuleEnvironment extends Environment 
implements ModuleExt {
 @Override
 public Configuration getDynamicGlobalConfiguration() {
 if (dynamicConfiguration == null) {
-return applicationDelegate.getDynamicGlobalConfiguration();
+CompositeConfiguration configuration = new 
CompositeConfiguration();
+
configuration.addConfiguration(applicationDelegate.getDynamicGlobalConfiguration());
+configuration.addConfiguration(orderedPropertiesConfiguration);
+return configuration;
 }
+
 if (dynamicGlobalConfiguration == null) {
-if (dynamicConfiguration == null) {
-if (logger.isWarnEnabled()) {
-logger.warn(
-COMMON_UNEXPECTED_EXCEPTION,
-"",
-"",
-"dynamicConfiguration is null , return 
globalConfiguration.");
-}
-return getConfiguration();
-}
 dynamicGlobalConfiguration = new CompositeConfiguration();
 dynamicGlobalConfiguration.addConfiguration(dynamicConfiguration);
 dynamicGlobalConfiguration.addConfiguration(getConfiguration());
diff --git 
a/dubbo-common/src/test/java/org/apache/dubbo/common/config/OrderedPropertiesConfigurationTest.java
 
b/dubbo-common/src/test/java/org/apache/dubbo/common/config/OrderedPropertiesConfigurationTest.java
index 8fc082de28..aaf2eb628f 100644
--- 
a/dubbo-common/src/test/java/org/apache/dubbo/common/config/OrderedPropertiesConfigurationTest.java
+++ 
b/dubbo-common/src/test/java/org/apache/dubbo/common/config/OrderedPropertiesConfigurationTest.java
@@ -17,6 +17,8 @@
 package org.apache.dubbo.common.config;
 
 import org.apache.dubbo.rpc.model.ApplicationModel;
+import org.apache.dubbo.rpc.model.FrameworkModel;
+import org.apache.dubbo.rpc.model.ModuleModel;
 
 import org.junit.jupiter.api.Assertions;
 import org.junit.jupiter.api.Test;
@@ -32,4 +34,18 @@ class OrderedPropertiesConfigurationTest {
 ApplicationModel.defaultModel().getDefaultModule());
 Assertions.assertEquals("999", 
configuration.getInternalProperty("testKey"));
 }
+
+@Test
+void testGetPropertyFromOrderedPropertiesConfiguration() {
+FrameworkModel frameworkModel = new FrameworkModel();
+
+ApplicationModel applicationModel = frameworkModel.newApplication();
+
+ModuleModel moduleModel = applicationModel.newModule();
+ModuleEnvironment moduleEnvironment = moduleModel.modelEnvironment();
+
+Configuration configuration = 
moduleEnvironment.getDynamicGlobalConfiguration();
+// MockOrderedPropertiesProvider2  initProperties
+Assertions.assertEquals("999", configuration.getString("testKey"));
+}
 }



(dubbo) branch 3.2 updated: Refresh valid invokers after connectivity check (#13773)

2024-02-28 Thread albumenj
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/3.2 by this push:
 new 17b75a7895 Refresh valid invokers after connectivity check (#13773)
17b75a7895 is described below

commit 17b75a78955effbf82f4cd958c37545209c152e1
Author: Albumen Kevin 
AuthorDate: Thu Feb 29 11:26:11 2024 +0800

Refresh valid invokers after connectivity check (#13773)
---
 .../rpc/cluster/directory/AbstractDirectory.java   | 167 +
 .../org/apache/dubbo/common/utils/LockUtils.java   |  54 +++
 .../apache/dubbo/common/utils/LockUtilsTest.java   | 144 ++
 3 files changed, 301 insertions(+), 64 deletions(-)

diff --git 
a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/directory/AbstractDirectory.java
 
b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/directory/AbstractDirectory.java
index 087eacbade..be68810f4a 100644
--- 
a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/directory/AbstractDirectory.java
+++ 
b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/directory/AbstractDirectory.java
@@ -25,6 +25,7 @@ import org.apache.dubbo.common.logger.ErrorTypeAwareLogger;
 import org.apache.dubbo.common.logger.LoggerFactory;
 import org.apache.dubbo.common.threadpool.manager.FrameworkExecutorRepository;
 import org.apache.dubbo.common.utils.ConcurrentHashSet;
+import org.apache.dubbo.common.utils.LockUtils;
 import org.apache.dubbo.common.utils.NetUtils;
 import org.apache.dubbo.common.utils.StringUtils;
 import org.apache.dubbo.metrics.event.MetricsEventBus;
@@ -56,6 +57,8 @@ import java.util.concurrent.ScheduledFuture;
 import java.util.concurrent.Semaphore;
 import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.concurrent.locks.ReentrantLock;
 import java.util.stream.Collectors;
 
 import static org.apache.dubbo.common.constants.CommonConstants.CONSUMER;
@@ -122,6 +125,8 @@ public abstract class AbstractDirectory implements 
Directory {
 
 private volatile ScheduledFuture connectivityCheckFuture;
 
+private final ReentrantLock invokerRefreshLock = new ReentrantLock();
+
 /**
  * The max count of invokers for each reconnect task select to try to 
reconnect.
  */
@@ -293,17 +298,19 @@ public abstract class AbstractDirectory implements 
Directory {
 
 @Override
 public void addInvalidateInvoker(Invoker invoker) {
-// 1. remove this invoker from validInvokers list, this invoker will 
not be listed in the next time
-if (removeValidInvoker(invoker)) {
-// 2. add this invoker to reconnect list
-invokersToReconnect.add(invoker);
-// 3. try start check connectivity task
-checkConnectivity();
-
-logger.info("The invoker " + invoker.getUrl()
-+ " has been added to invalidate list due to connectivity 
problem. "
-+ "Will trying to reconnect to it in the background.");
-}
+LockUtils.safeLock(invokerRefreshLock, LockUtils.DEFAULT_TIMEOUT, () 
-> {
+// 1. remove this invoker from validInvokers list, this invoker 
will not be listed in the next time
+if (removeValidInvoker(invoker)) {
+// 2. add this invoker to reconnect list
+invokersToReconnect.add(invoker);
+// 3. try start check connectivity task
+checkConnectivity();
+
+logger.info("The invoker " + invoker.getUrl()
++ " has been added to invalidate list due to 
connectivity problem. "
++ "Will trying to reconnect to it in the background.");
+}
+});
 }
 
 public void checkConnectivity() {
@@ -322,23 +329,30 @@ public abstract class AbstractDirectory implements 
Directory {
 // 1. pick invokers from invokersToReconnect
 // limit max reconnectTaskTryCount, prevent this 
task hang up all the connectivityExecutor
 // for long time
-if (invokersToReconnect.size() < 
reconnectTaskTryCount) {
-invokersToTry.addAll(invokersToReconnect);
-} else {
-for (int i = 0; i < reconnectTaskTryCount; 
i++) {
-Invoker tInvoker = 
invokersToReconnect.get(
-
ThreadLocalRandom.current().nextInt(invokersToReconnect.size()));
-if (!invokersToTry.contains(tInvoker)) {
-// ignore if is selected, 
invokersToTry's size is always smaller than
-// 

(dubbo-go-samples) 01/01: Merge pull request #691 from EndlessSeeker/feat_error

2024-02-28 Thread liujun
This is an automated email from the ASF dual-hosted git repository.

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

commit d56d35d0a3f4f47960713c37ccca753597804c52
Merge: 1f27105c a5825ae1
Author: Ken Liu 
AuthorDate: Thu Feb 29 10:47:21 2024 +0800

Merge pull request #691 from EndlessSeeker/feat_error

feat(error): add error handling sample

 README.md  |   1 +
 README_CN.md   |   1 +
 error/README.md| 146 +
 error/README_zn.md | 146 +
 error/go-client/cmd/main.go|  52 +
 error/go-server/cmd/main.go|  65 ++
 error/proto/greet.pb.go| 230 +
 error/proto/greet.proto|  34 +++
 error/proto/greet.triple.go| 139 +
 .../error/tests/integration/error_test.go  |  44 
 .../error/tests/integration/main_test.go   |  46 +
 start_integrate_test.sh|   3 +
 12 files changed, 907 insertions(+)




(dubbo-go-samples) branch main updated (1f27105c -> d56d35d0)

2024-02-28 Thread liujun
This is an automated email from the ASF dual-hosted git repository.

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


from 1f27105c Merge pull request #690 from EndlessSeeker/feat_context
 add 717e04d8 feat(error): add error handling sample
 add a5825ae1 chore(error): sort import
 new d56d35d0 Merge pull request #691 from EndlessSeeker/feat_error

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 README.md  |   1 +
 README_CN.md   |   1 +
 error/README.md| 146 +
 error/README_zn.md | 146 +
 {helloworld => error}/go-client/cmd/main.go|   9 +-
 {helloworld => error}/go-server/cmd/main.go|  13 +-
 {context => error}/proto/greet.pb.go   |   0
 {helloworld => error}/proto/greet.proto|   0
 {context => error}/proto/greet.triple.go   |   0
 .../tests/integration/error_test.go}   |  17 ++-
 .../tests/integration/main_test.go |   2 +-
 start_integrate_test.sh|   3 +
 12 files changed, 328 insertions(+), 10 deletions(-)
 create mode 100644 error/README.md
 create mode 100644 error/README_zn.md
 copy {helloworld => error}/go-client/cmd/main.go (83%)
 copy {helloworld => error}/go-server/cmd/main.go (82%)
 copy {context => error}/proto/greet.pb.go (100%)
 copy {helloworld => error}/proto/greet.proto (100%)
 copy {context => error}/proto/greet.triple.go (100%)
 copy integrate_test/{helloworld/tests/integration/helloworld_test.go => 
error/tests/integration/error_test.go} (77%)
 copy integrate_test/{context => error}/tests/integration/main_test.go (95%)



(dubbo-go-samples) 01/01: Merge pull request #690 from EndlessSeeker/feat_context

2024-02-28 Thread liujun
This is an automated email from the ASF dual-hosted git repository.

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

commit 1f27105ca6bc261b5999c136d2bb8db17b567a32
Merge: b88e2ec1 b9bb5b07
Author: Ken Liu 
AuthorDate: Thu Feb 29 10:47:01 2024 +0800

Merge pull request #690 from EndlessSeeker/feat_context

feat(context): add context sample and introduction

 context/README.md  | 168 +++
 context/README_zn.md   | 167 +++
 context/go-client/cmd/main.go  |  54 +
 context/go-server/cmd/main.go  |  72 +++
 context/proto/greet.pb.go  | 230 +
 context/proto/greet.proto  |  34 +++
 context/proto/greet.triple.go  | 139 +
 .../context/tests/integration/context_test.go  |  43 
 .../context/tests/integration/main_test.go |  46 +
 start_integrate_test.sh|   1 +
 10 files changed, 954 insertions(+)



(dubbo-go-samples) branch main updated (b88e2ec1 -> 1f27105c)

2024-02-28 Thread liujun
This is an automated email from the ASF dual-hosted git repository.

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


from b88e2ec1 Merge pull request #687 from FoghostCn/metrics-sample
 add 3dcc9386 feat(context): add context sample and introduction
 add e4c61652 chore(context): add integration test
 add 1724b9fd fix(context): server returns context params
 add b9bb5b07 chore(context): sort import
 new 1f27105c Merge pull request #690 from EndlessSeeker/feat_context

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 context/README.md  | 168 +
 context/README_zn.md   | 167 
 {helloworld => context}/go-client/cmd/main.go  |  11 +-
 {rpc/grpc => context}/go-server/cmd/main.go|  20 ++-
 {helloworld => context}/proto/greet.pb.go  |   0
 {metrics => context}/proto/greet.proto |   2 +-
 {helloworld => context}/proto/greet.triple.go  |   0
 .../tests/integration/context_test.go} |  10 +-
 .../tests/integration/main_test.go |   4 +-
 start_integrate_test.sh|   1 +
 10 files changed, 373 insertions(+), 10 deletions(-)
 create mode 100644 context/README.md
 create mode 100644 context/README_zn.md
 copy {helloworld => context}/go-client/cmd/main.go (77%)
 copy {rpc/grpc => context}/go-server/cmd/main.go (66%)
 copy {helloworld => context}/proto/greet.pb.go (100%)
 copy {metrics => context}/proto/greet.proto (94%)
 copy {helloworld => context}/proto/greet.triple.go (100%)
 copy integrate_test/{helloworld/tests/integration/helloworld_test.go => 
context/tests/integration/context_test.go} (76%)
 copy integrate_test/{timeout => context}/tests/integration/main_test.go (95%)



(dubbo-go) branch main updated: feat: deep copy the configuration when instanceOptions flow to ServerOptions/ClientOptions (#2596)

2024-02-28 Thread liujun
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/main by this push:
 new 8efb9ea90 feat: deep copy the configuration when instanceOptions flow 
to ServerOptions/ClientOptions (#2596)
8efb9ea90 is described below

commit 8efb9ea902733e0fd7d947df13e0091c07b820ea
Author: setcy 
AuthorDate: Thu Feb 29 10:26:10 2024 +0800

feat: deep copy the configuration when instanceOptions flow to 
ServerOptions/ClientOptions (#2596)

fixes #2592
---
 dubbo.go |  24 ++--
 dubbo_test.go|  98 +
 global/application_config.go |  19 +++
 global/config_center_config.go   |  27 
 global/config_test.go| 300 +++
 global/consumer_config.go|  30 
 global/custom_config.go  |  20 ++-
 global/logger_config.go  |  36 +
 global/metadata_report_config.go |  24 
 global/method_config.go  |  23 +++
 global/metric_config.go  | 109 ++
 global/otel_config.go|  33 +
 global/profiles_config.go|  11 ++
 global/protocol_config.go|  16 +++
 global/provider_config.go|  38 +
 global/reference_config.go   |  54 +++
 global/registry_config.go|  31 
 global/service_config.go |  66 +
 global/shutdown_config.go|  29 
 global/tls_config.go |  14 ++
 options.go   | 106 ++
 21 files changed, 1095 insertions(+), 13 deletions(-)

diff --git a/dubbo.go b/dubbo.go
index b779b78f7..ea9739b81 100644
--- a/dubbo.go
+++ b/dubbo.go
@@ -70,12 +70,12 @@ func (ins *Instance) NewClient(opts ...client.ClientOption) 
(*client.Client, err
}
 
var cliOpts []client.ClientOption
-   conCfg := ins.insOpts.Consumer
-   appCfg := ins.insOpts.Application
-   regsCfg := ins.insOpts.Registries
-   sdCfg := ins.insOpts.Shutdown
-   metricsCfg := ins.insOpts.Metrics
-   otelCfg := ins.insOpts.Otel
+   conCfg := ins.insOpts.CloneConsumer()
+   appCfg := ins.insOpts.CloneApplication()
+   regsCfg := ins.insOpts.CloneRegistries()
+   sdCfg := ins.insOpts.CloneShutdown()
+   metricsCfg := ins.insOpts.CloneMetrics()
+   otelCfg := ins.insOpts.CloneOtel()
 
if conCfg != nil {
if conCfg.Check {
@@ -125,12 +125,12 @@ func (ins *Instance) NewServer(opts 
...server.ServerOption) (*server.Server, err
}
 
var srvOpts []server.ServerOption
-   appCfg := ins.insOpts.Application
-   regsCfg := ins.insOpts.Registries
-   prosCfg := ins.insOpts.Protocols
-   sdCfg := ins.insOpts.Shutdown
-   metricsCfg := ins.insOpts.Metrics
-   otelCfg := ins.insOpts.Otel
+   appCfg := ins.insOpts.CloneApplication()
+   regsCfg := ins.insOpts.CloneRegistries()
+   prosCfg := ins.insOpts.CloneProtocols()
+   sdCfg := ins.insOpts.CloneShutdown()
+   metricsCfg := ins.insOpts.CloneMetrics()
+   otelCfg := ins.insOpts.CloneOtel()
 
if appCfg != nil {
srvOpts = append(srvOpts,
diff --git a/dubbo_test.go b/dubbo_test.go
new file mode 100644
index 0..e23c97394
--- /dev/null
+++ b/dubbo_test.go
@@ -0,0 +1,98 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package dubbo
+
+import (
+   "testing"
+)
+
+import (
+   "github.com/stretchr/testify/assert"
+)
+
+import (
+   "dubbo.apache.org/dubbo-go/v3/client"
+   "dubbo.apache.org/dubbo-go/v3/common/constant"
+   "dubbo.apache.org/dubbo-go/v3/registry"
+   "dubbo.apache.org/dubbo-go/v3/server"
+)
+
+// TestIndependentConfig tests the configurations of the `instance`, `client`, 
and `server` are independent.
+func TestIndependentConfig(t *testing.T) {
+   // instance configuration
+   ins, err := NewInstance(
+   WithName("dubbo_test"),
+   WithRegistry(
+   registry.WithZookeeper(),
+   registry.WithAddress("127.0.0.1:2181"),
+   ),
+   )

(dubbo-website) branch asf-site-v2 updated: deploy: 3b6fe90020530c9f75a3c72ba4e9cc7dc682749c

2024-02-28 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch asf-site-v2
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/asf-site-v2 by this push:
 new fe04b6378ff deploy: 3b6fe90020530c9f75a3c72ba4e9cc7dc682749c
fe04b6378ff is described below

commit fe04b6378fffc71036479dbe62a1187cccdb65a7
Author: AlbumenJ 
AuthorDate: Wed Feb 28 09:53:14 2024 +

deploy: 3b6fe90020530c9f75a3c72ba4e9cc7dc682749c
---
 sitemap.xml| 2 +-
 zh-cn/docsv2.7/dev/principals/general-knowledge/index.html | 6 +++---
 zh-cn/docsv2.7/dev/principals/index.xml| 2 +-
 zh-cn/sitemap.xml  | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sitemap.xml b/sitemap.xml
index 6d3b4cb0476..5fc264fe288 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1 +1 @@
-http://www.sitemaps.org/schemas/sitemap/0.9;>https://dubbo.apache.org/zh-cn/sitemap.xml2024-02-06T10:06:40+08:00https://dubbo.apache.org/en/sitemap.xml2024-02-01T17:47:34+08:00
\ No newline at end of file
+http://www.sitemaps.org/schemas/sitemap/0.9;>https://dubbo.apache.org/zh-cn/sitemap.xml2024-02-28T17:48:45+08:00https://dubbo.apache.org/en/sitemap.xml2024-02-01T17:47:34+08:00
\ No newline at end of file
diff --git a/zh-cn/docsv2.7/dev/principals/general-knowledge/index.html 
b/zh-cn/docsv2.7/dev/principals/general-knowledge/index.html
index 84695f5799d..7eca3bfb7ee 100644
--- a/zh-cn/docsv2.7/dev/principals/general-knowledge/index.html
+++ b/zh-cn/docsv2.7/dev/principals/general-knowledge/index.html
@@ -1,5 +1,5 @@
 https://dubbo.apache.org/zh-cn/docsv2.7/dev/principals/general-knowledge/>https://www.google.com/ https://app.netlify.com/;;>https://dubbo.apache.org/zh-cn/docsv2.7/dev/principals/general-knowledge/;>https://dubbo.apache.org/zh-cn/docsv2.7/dev/principals/general-knowledge/;>用户文档
 入门介绍
 背景
@@ -198,8 +198,8 @@
 Redis 
注册中心安装
 Zookeeper 
注册中心安装
 Simple 
监控中心安装https://dubbo.apac [...]
-比如 Spring 的 ApplicationContext,Dubbo 的 ServiceManager 
等。服务域的对象通常会比较重,而且是线程安全的,并以单一实例服务于所有调用。什么是会话?就是一次交互过程。会话中重要的概念是上下文,什么是上下文?比如我们说:“老地方见”,这里的“老地方”就是上下文信息。为什么说“老地方”对方会知道,因为我们前面定义了“老地方”的具体内容。所以说,上下文通常持有交互过程中的状态变量等。会话对象通常较轻,每次请求都重新创建实例,请求结束后销毁。简而言之:把元信息交由实体域持有,把一次请求中的临时状态由会话域持有,由服务域贯穿整个过程。在重要的过程上设置拦截接口如果你要写个远程调用框架,那远程调用的过程应该有一个统
 一的拦截接口。如果你要写一个 ORM 框架,那至少 SQL 的执行过程,Mapping 过程要有拦截接口;如果你要写一个 Web 
框架,那请求的执行过程应该要有拦 [...]

(dubbo-website) branch cn-site updated: deploy: 3b6fe90020530c9f75a3c72ba4e9cc7dc682749c

2024-02-28 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch cn-site
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/cn-site by this push:
 new bc7467acf2a deploy: 3b6fe90020530c9f75a3c72ba4e9cc7dc682749c
bc7467acf2a is described below

commit bc7467acf2ad394690451987db4403cd7d9e611d
Author: AlbumenJ 
AuthorDate: Wed Feb 28 09:53:18 2024 +

deploy: 3b6fe90020530c9f75a3c72ba4e9cc7dc682749c
---
 sitemap.xml| 2 +-
 zh-cn/docsv2.7/dev/principals/general-knowledge/index.html | 6 +++---
 zh-cn/docsv2.7/dev/principals/index.xml| 2 +-
 zh-cn/sitemap.xml  | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/sitemap.xml b/sitemap.xml
index 0065efb53c1..e2ac7f7207e 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1 +1 @@
-http://www.sitemaps.org/schemas/sitemap/0.9;>https://cn.dubbo.apache.org/zh-cn/sitemap.xml2024-02-06T10:06:40+08:00https://cn.dubbo.apache.org/en/sitemap.xml2024-02-01T17:47:34+08:00
\ No newline at end of file
+http://www.sitemaps.org/schemas/sitemap/0.9;>https://cn.dubbo.apache.org/zh-cn/sitemap.xml2024-02-28T17:48:45+08:00https://cn.dubbo.apache.org/en/sitemap.xml2024-02-01T17:47:34+08:00
\ No newline at end of file
diff --git a/zh-cn/docsv2.7/dev/principals/general-knowledge/index.html 
b/zh-cn/docsv2.7/dev/principals/general-knowledge/index.html
index c5aaccba88b..b915f62c2fe 100644
--- a/zh-cn/docsv2.7/dev/principals/general-knowledge/index.html
+++ b/zh-cn/docsv2.7/dev/principals/general-knowledge/index.html
@@ -1,5 +1,5 @@
 https://cn.dubbo.apache.org/zh-cn/docsv2.7/dev/principals/general-knowledge/>var
 _hmt=_hmt||[];(function(){var 
e,t=document.createElement("script");t.src="https://hm.baidu.com/hm.js?3b78f49ba47181e4d998a66b689446e9",e=document.getElementsByTagName("script")[0],e.parentNode.insertBefore(t,e)})()https://cn.dubbo.apache.org/zh-cn/docsv2.7/dev/principals/general-knowledge/;>https://cn.dubbo.apache.org/zh-cn/docsv2.7/dev/principals/general-knowledge/;>用户文档
 入门介绍
 背景
@@ -198,8 +198,8 @@
 Redis 
注册中心安装
 Zookeeper 
注册中心安装
 Simple 
监控中心安装https://cn.dubbo.a [...]
-比如 Spring 的 ApplicationContext,Dubbo 的 ServiceManager 
等。服务域的对象通常会比较重,而且是线程安全的,并以单一实例服务于所有调用。什么是会话?就是一次交互过程。会话中重要的概念是上下文,什么是上下文?比如我们说:“老地方见”,这里的“老地方”就是上下文信息。为什么说“老地方”对方会知道,因为我们前面定义了“老地方”的具体内容。所以说,上下文通常持有交互过程中的状态变量等。会话对象通常较轻,每次请求都重新创建实例,请求结束后销毁。简而言之:把元信息交由实体域持有,把一次请求中的临时状态由会话域持有,由服务域贯穿整个过程。在重要的过程上设置拦截接口如果你要写个远程调用框架,那远程调用的过程应该有一个统
 一的拦截接口。如果你要写一个 ORM 框架,那至少 SQL 的执行过程,Mapping 过程要有拦截接口;如果你要写一个 Web 
框架,那请求的执行过程应该要有拦 [...]

(dubbo-website) branch master updated: Update general-knowledge.md (#2930)

2024-02-28 Thread albumenj
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 3b6fe900205 Update general-knowledge.md (#2930)
3b6fe900205 is described below

commit 3b6fe90020530c9f75a3c72ba4e9cc7dc682749c
Author: Zaki <91261012+cnza...@users.noreply.github.com>
AuthorDate: Wed Feb 28 17:48:45 2024 +0800

Update general-knowledge.md (#2930)
---
 content/zh-cn/docsv2.7/dev/principals/general-knowledge.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/content/zh-cn/docsv2.7/dev/principals/general-knowledge.md 
b/content/zh-cn/docsv2.7/dev/principals/general-knowledge.md
index cf80fa833b7..9434df27b7e 100644
--- a/content/zh-cn/docsv2.7/dev/principals/general-knowledge.md
+++ b/content/zh-cn/docsv2.7/dev/principals/general-knowledge.md
@@ -57,7 +57,7 @@ weight: 6
 
 ## 微核插件式,平等对待第三方 
 
-大凡发展的比较好的框架,都遵守微核的理念。Eclipse 的微核是 OSGi, Spring 的微核是 BeanFactory,Maven 的微核是 
Plexus。通常核心是不应该带有功能性的,而是一个生命周期和集成容器,这样各功能可以通过相同的方式交互及扩展,并且任何功能都可以被替换。如果做不到微核,至少要平等对待第三方,即原作者能实现的功能,扩展者应该可以通过扩展的方式全部做到。原作者要把自己也当作扩展者,这样才能保证框架的可持续性及由内向外的稳定性。
 
+但凡发展的比较好的框架,都遵守微核的理念。Eclipse 的微核是 OSGi, Spring 的微核是 BeanFactory,Maven 的微核是 
Plexus。通常核心是不应该带有功能性的,而是一个生命周期和集成容器,这样各功能可以通过相同的方式交互及扩展,并且任何功能都可以被替换。如果做不到微核,至少要平等对待第三方,即原作者能实现的功能,扩展者应该可以通过扩展的方式全部做到。原作者要把自己也当作扩展者,这样才能保证框架的可持续性及由内向外的稳定性。
 
 
 ## 不要控制外部对象的生命周期 
 
@@ -75,4 +75,4 @@ weight: 6
 
 ## 增量式扩展,而不要扩充原始核心概念
 
-参见:[谈谈扩充式扩展与增量式扩展](../expansibility)
\ No newline at end of file
+参见:[谈谈扩充式扩展与增量式扩展](../expansibility)



(dubbo-website) branch master updated: Updated footer CSS (#2929)

2024-02-28 Thread albumenj
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 3c65ceef761 Updated footer CSS (#2929)
3c65ceef761 is described below

commit 3c65ceef7610a113a0938f7a6b2b79854da4eb4f
Author: rashi arora <74211043+rashi12122...@users.noreply.github.com>
AuthorDate: Wed Feb 28 15:13:32 2024 +0530

Updated footer CSS (#2929)

* Update _styles_project.scss

* Update _styles_project.scss

* Update footer.html

* Update _styles_project.scss
---
 assets/scss/_styles_project.scss | 13 +
 layouts/partials/footer.html |  2 +-
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss
index e04cb0341fa..10dd5125a46 100644
--- a/assets/scss/_styles_project.scss
+++ b/assets/scss/_styles_project.scss
@@ -8,19 +8,24 @@ assets/scss/_styles_project.scss
 
 #my-footer ul {
   list-style: none;
-  margin-left: 50px;
-  display: inline;
   font-size: 0.8em;
+  display: flex;
+flex-direction: row;
+flex-wrap: wrap;
+align-items: center;
+justify-content: center;
+padding: 0;
 }
 
 #my-footer li {
   display: inline;
   margin-left: 10px;
   line-height: 40px;
-  float: left
 }
 
 #my-footer img {
+   display: block;
+  margin:auto;
   max-width: 6rem;
   max-height: 2.5rem;
 }
@@ -111,4 +116,4 @@ assets/scss/_styles_project.scss
   background-repeat: no-repeat;
   background-position: center center;
   background-size: cover;
-}
\ No newline at end of file
+}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index e91a69fb633..7183bee24bc 100755
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -30,7 +30,7 @@
 
   
   
-
+
 
   https://www.apache.org;>Foundation
   https://www.apache.org/licenses/;>License



(dubbo) branch 3.2 updated (93a6c88ed6 -> 5dd56fee81)

2024-02-28 Thread albumenj
This is an automated email from the ASF dual-hosted git repository.

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


from 93a6c88ed6 Bump org.apache.maven.plugins:maven-shade-plugin from 3.5.1 
to 3.5.2 (#13793)
 add 5dd56fee81 Bump bytebuddy.version from 1.14.11 to 1.14.12 (#13798)

No new revisions were added by this update.

Summary of changes:
 dubbo-spring-boot/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



(dubbo) branch dependabot/maven/bytebuddy.version-1.14.12 deleted (was 11f6f7bae5)

2024-02-28 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch dependabot/maven/bytebuddy.version-1.14.12
in repository https://gitbox.apache.org/repos/asf/dubbo.git


 was 11f6f7bae5 Bump bytebuddy.version from 1.14.11 to 1.14.12

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



(dubbo) branch 3.2 updated (2e0734d470 -> 93a6c88ed6)

2024-02-28 Thread albumenj
This is an automated email from the ASF dual-hosted git repository.

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


from 2e0734d470 Bump org.apache.tomcat.embed:tomcat-embed-core from 8.5.98 
to 8.5.99 (#13794)
 add 93a6c88ed6 Bump org.apache.maven.plugins:maven-shade-plugin from 3.5.1 
to 3.5.2 (#13793)

No new revisions were added by this update.

Summary of changes:
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



(dubbo) branch dependabot/maven/org.apache.maven.plugins-maven-shade-plugin-3.5.2 deleted (was a9d17e66c3)

2024-02-28 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/maven/org.apache.maven.plugins-maven-shade-plugin-3.5.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git


 was a9d17e66c3 Bump org.apache.maven.plugins:maven-shade-plugin from 3.5.1 
to 3.5.2

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



(dubbo) branch dependabot/maven/log4j2_version-2.23.0 deleted (was 4d535f2d8f)

2024-02-28 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch dependabot/maven/log4j2_version-2.23.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


 was 4d535f2d8f Bump log4j2_version from 2.22.1 to 2.23.0

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



(dubbo) branch dependabot/maven/org.apache.tomcat.embed-tomcat-embed-core-8.5.99 deleted (was 484b7fd28b)

2024-02-28 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/maven/org.apache.tomcat.embed-tomcat-embed-core-8.5.99
in repository https://gitbox.apache.org/repos/asf/dubbo.git


 was 484b7fd28b Bump org.apache.tomcat.embed:tomcat-embed-core from 8.5.98 
to 8.5.99

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



(dubbo) branch 3.2 updated (c4d686af5e -> 2e0734d470)

2024-02-28 Thread albumenj
This is an automated email from the ASF dual-hosted git repository.

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


from c4d686af5e Bump log4j2_version from 2.22.1 to 2.23.0 (#13795)
 add 2e0734d470 Bump org.apache.tomcat.embed:tomcat-embed-core from 8.5.98 
to 8.5.99 (#13794)

No new revisions were added by this update.

Summary of changes:
 dubbo-dependencies-bom/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



(dubbo) branch 3.2 updated (5c15c3ffd8 -> c4d686af5e)

2024-02-28 Thread albumenj
This is an automated email from the ASF dual-hosted git repository.

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


from 5c15c3ffd8 Bump org.graalvm.buildtools:native-maven-plugin from 0.10.0 
to 0.10.1 (#13797)
 add c4d686af5e Bump log4j2_version from 2.22.1 to 2.23.0 (#13795)

No new revisions were added by this update.

Summary of changes:
 dubbo-dependencies-bom/pom.xml | 2 +-
 dubbo-spring-boot/pom.xml  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)



(dubbo) branch dependabot/maven/org.graalvm.buildtools-native-maven-plugin-0.10.1 deleted (was 1768920e62)

2024-02-28 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/maven/org.graalvm.buildtools-native-maven-plugin-0.10.1
in repository https://gitbox.apache.org/repos/asf/dubbo.git


 was 1768920e62 Bump org.graalvm.buildtools:native-maven-plugin from 0.10.0 
to 0.10.1

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



(dubbo) branch 3.2 updated (3d0e8c2868 -> 5c15c3ffd8)

2024-02-28 Thread albumenj
This is an automated email from the ASF dual-hosted git repository.

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


from 3d0e8c2868 Bump com.alibaba.fastjson2:fastjson2 from 2.0.46 to 2.0.47 
(#13792)
 add 5c15c3ffd8 Bump org.graalvm.buildtools:native-maven-plugin from 0.10.0 
to 0.10.1 (#13797)

No new revisions were added by this update.

Summary of changes:
 dubbo-demo/dubbo-demo-native/dubbo-demo-native-consumer/pom.xml | 2 +-
 dubbo-demo/dubbo-demo-native/dubbo-demo-native-provider/pom.xml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)



(dubbo) branch dependabot/maven/com.alibaba.fastjson2-fastjson2-2.0.47 deleted (was 67a5a7f8db)

2024-02-28 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/maven/com.alibaba.fastjson2-fastjson2-2.0.47
in repository https://gitbox.apache.org/repos/asf/dubbo.git


 was 67a5a7f8db Bump com.alibaba.fastjson2:fastjson2 from 2.0.46 to 2.0.47

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



(dubbo) branch 3.2 updated (e8a535485a -> 3d0e8c2868)

2024-02-28 Thread albumenj
This is an automated email from the ASF dual-hosted git repository.

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


from e8a535485a Bump org.testcontainers:testcontainers from 1.19.5 to 
1.19.6 (#13796)
 add 3d0e8c2868 Bump com.alibaba.fastjson2:fastjson2 from 2.0.46 to 2.0.47 
(#13792)

No new revisions were added by this update.

Summary of changes:
 dubbo-dependencies-bom/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



(dubbo) branch dependabot/maven/org.testcontainers-testcontainers-1.19.6 deleted (was f31a7e47bf)

2024-02-28 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/maven/org.testcontainers-testcontainers-1.19.6
in repository https://gitbox.apache.org/repos/asf/dubbo.git


 was f31a7e47bf Bump org.testcontainers:testcontainers from 1.19.5 to 1.19.6

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



(dubbo) branch 3.2 updated: Bump org.testcontainers:testcontainers from 1.19.5 to 1.19.6 (#13796)

2024-02-28 Thread albumenj
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/3.2 by this push:
 new e8a535485a Bump org.testcontainers:testcontainers from 1.19.5 to 
1.19.6 (#13796)
e8a535485a is described below

commit e8a535485afdfb274218310909e90982dd08451e
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Wed Feb 28 17:25:31 2024 +0800

Bump org.testcontainers:testcontainers from 1.19.5 to 1.19.6 (#13796)

Bumps 
[org.testcontainers:testcontainers](https://github.com/testcontainers/testcontainers-java)
 from 1.19.5 to 1.19.6.
- [Release 
notes](https://github.com/testcontainers/testcontainers-java/releases)
- 
[Changelog](https://github.com/testcontainers/testcontainers-java/blob/main/CHANGELOG.md)
- 
[Commits](https://github.com/testcontainers/testcontainers-java/compare/1.19.5...1.19.6)

---
updated-dependencies:
- dependency-name: org.testcontainers:testcontainers
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] 
Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
---
 dubbo-config/dubbo-config-api/pom.xml | 2 +-
 dubbo-dependencies-bom/pom.xml| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dubbo-config/dubbo-config-api/pom.xml 
b/dubbo-config/dubbo-config-api/pom.xml
index b9e740597c..b941bd80da 100644
--- a/dubbo-config/dubbo-config-api/pom.xml
+++ b/dubbo-config/dubbo-config-api/pom.xml
@@ -236,7 +236,7 @@
 
   org.testcontainers
   testcontainers
-  1.19.5
+  1.19.6
   test
 
 
diff --git a/dubbo-dependencies-bom/pom.xml b/dubbo-dependencies-bom/pom.xml
index 79de033da1..3d8094a581 100644
--- a/dubbo-dependencies-bom/pom.xml
+++ b/dubbo-dependencies-bom/pom.xml
@@ -153,7 +153,7 @@
 
 2.2.7
 1.2.0
-1.19.5
+1.19.6
 3.2.13
 1.6.13