[GitHub] [servicecomb-service-center] DFSOrange closed pull request #959: 【WIP】support merge push task

2021-06-07 Thread GitBox


DFSOrange closed pull request #959:
URL: https://github.com/apache/servicecomb-service-center/pull/959


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [servicecomb-java-chassis] liubao68 merged pull request #2406: [#2398]in safe mode , before merge Instances should ping instance

2021-06-07 Thread GitBox


liubao68 merged pull request #2406:
URL: https://github.com/apache/servicecomb-java-chassis/pull/2406


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[servicecomb-java-chassis] branch master updated: [#2398]in safe mode , before merge Instances should ping instance (#2406)

2021-06-07 Thread liubao
This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
 new ffe4956  [#2398]in safe mode , before merge Instances should ping 
instance (#2406)
ffe4956 is described below

commit ffe4956bcedd3702f8723f54992b7eb34cee1b47
Author: fanjiang-2021 <84115877+fanjiang-2...@users.noreply.github.com>
AuthorDate: Tue Jun 8 11:10:11 2021 +0800

[#2398]in safe mode , before merge Instances should ping instance (#2406)

Co-authored-by: f3430 
---
 .../apache/servicecomb/registry/consumer/MicroserviceVersions.java | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/consumer/MicroserviceVersions.java
 
b/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/consumer/MicroserviceVersions.java
index 3ea0d7b..47b9523 100644
--- 
a/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/consumer/MicroserviceVersions.java
+++ 
b/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/consumer/MicroserviceVersions.java
@@ -254,12 +254,15 @@ public class MicroserviceVersions {
   Collection inUseInstances) {
 MergedInstances mergedInstances = new MergedInstances();
 pulledInstances.stream().forEach(mergedInstances::addInstance);
+MicroserviceInstancePing ping = 
SPIServiceUtils.getPriorityHighestService(MicroserviceInstancePing.class);
 
 if (safeMode) {
   // in safe mode, instances will never be deleted
   inUseInstances.forEach(instance -> {
 if 
(!mergedInstances.instanceIdMap.containsKey(instance.getInstanceId())) {
-  mergedInstances.addInstance(instance);
+  if (ping.ping(instance)) {
+mergedInstances.addInstance(instance);
+  }
 }
   });
   return mergedInstances;
@@ -267,7 +270,7 @@ public class MicroserviceVersions {
 
 if (pulledInstances.isEmpty() && inUseInstances != null && 
ServiceRegistryCommonConfig
 .isEmptyInstanceProtectionEnabled()) {
-  MicroserviceInstancePing ping = 
SPIServiceUtils.getPriorityHighestService(MicroserviceInstancePing.class);
+
   inUseInstances.stream().forEach(instance -> {
 if 
(!mergedInstances.instanceIdMap.containsKey(instance.getInstanceId())) {
   if (ping.ping(instance)) {


[GitHub] [servicecomb-java-chassis] codecov-commenter commented on pull request #2406: [#2398]in safe mode , before merge Instances should ping instance

2021-06-07 Thread GitBox


codecov-commenter commented on pull request #2406:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/2406#issuecomment-856396219


   # 
[Codecov](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2406?src=pr=h1_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 Report
   > Merging 
[#2406](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2406?src=pr=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 (f2ffd6b) into 
[master](https://codecov.io/gh/apache/servicecomb-java-chassis/commit/efbeee2f21c356084b829c84af0afded80612d36?el=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 (efbeee2) will **increase** coverage by `0.05%`.
   > The diff coverage is `33.33%`.
   
   [![Impacted file tree 
graph](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2406/graphs/tree.svg?width=650=150=pr=KXfDcr9rX2_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2406?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
   
   ```diff
   @@ Coverage Diff  @@
   ## master#2406  +/-   ##
   
   + Coverage 79.95%   80.00%   +0.05% 
 Complexity 1408 1408  
   
 Files  1549 1549  
 Lines 4134841349   +1 
 Branches   3444 3445   +1 
   
   + Hits  3305933081  +22 
   + Misses 6815 6795  -20 
   + Partials   1474 1473   -1 
   ```
   
   
   | [Impacted 
Files](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2406?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 | Coverage Δ | |
   |---|---|---|
   | 
[...cecomb/registry/consumer/MicroserviceVersions.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2406/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Zm91bmRhdGlvbnMvZm91bmRhdGlvbi1yZWdpc3RyeS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvcmVnaXN0cnkvY29uc3VtZXIvTWljcm9zZXJ2aWNlVmVyc2lvbnMuamF2YQ==)
 | `81.39% <33.33%> (-0.64%)` | :arrow_down: |
   | 
[...mb/serviceregistry/task/MicroserviceWatchTask.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2406/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-c2VydmljZS1yZWdpc3RyeS9yZWdpc3RyeS1zZXJ2aWNlLWNlbnRlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvc2VydmljZXJlZ2lzdHJ5L3Rhc2svTWljcm9zZXJ2aWNlV2F0Y2hUYXNrLmphdmE=)
 | `70.00% <0.00%> (+1.66%)` | :arrow_up: |
   | 
[...mb/serviceregistry/client/http/RestClientUtil.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2406/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-c2VydmljZS1yZWdpc3RyeS9yZWdpc3RyeS1zZXJ2aWNlLWNlbnRlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvc2VydmljZXJlZ2lzdHJ5L2NsaWVudC9odHRwL1Jlc3RDbGllbnRVdGlsLmphdmE=)
 | `77.57% <0.00%> (+1.86%)` | :arrow_up: |
   | 
[...egistry/client/http/ServiceRegistryClientImpl.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2406/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-c2VydmljZS1yZWdpc3RyeS9yZWdpc3RyeS1zZXJ2aWNlLWNlbnRlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvc2VydmljZXJlZ2lzdHJ5L2NsaWVudC9odHRwL1NlcnZpY2VSZWdpc3RyeUNsaWVudEltcGwuamF2YQ==)
 | `71.56% <0.00%> (+2.70%)` | :arrow_up: |
   | 
[...rviceregistry/client/http/WebsocketClientUtil.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2406/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-c2VydmljZS1yZWdpc3RyeS9yZWdpc3RyeS1zZXJ2aWNlLWNlbnRlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvc2VydmljZXJlZ2lzdHJ5L2NsaWVudC9odHRwL1dlYnNvY2tldENsaWVudFV0aWwuamF2YQ==)
 | `77.19% <0.00%> (+3.50%)` | :arrow_up: |
   | 
[...cecomb/serviceregistry/task/ServiceCenterTask.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2406/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-c2VydmljZS1yZWdpc3RyeS9yZWdpc3RyeS1zZXJ2aWNlLWNlbnRlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvc2VydmljZXJlZ2lzdHJ5L3Rhc2svU2VydmljZUNlbnRlclRhc2suamF2YQ==)
 | `89.79% <0.00%> (+6.12%)` | :arrow_up: |
   
 

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2398: 实例变更的可靠性测试问题

2021-06-07 Thread GitBox


liubao68 commented on issue #2398:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/2398#issuecomment-856386009


   注册中心和提供端同时重启属于一个特殊的情况。 
[PR](https://github.com/apache/servicecomb-java-chassis/pull/2406) 
可以帮助缓解这个场景下的问题。 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[servicecomb-website] 01/02: Merge branch 'master' into asf-site

2021-06-07 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/servicecomb-website.git

commit bdd26b199e3e6d98713441d7381c25dde7af1c30
Merge: 9a52491 0842813
Author: Willem Jiang 
AuthorDate: Tue Jun 8 10:06:22 2021 +0800

Merge branch 'master' into asf-site

 _data/navigation.yml| 40 +++---
 _docs/cn/products/service-center/install.md |  6 ++--
 _docs/products/service-center/install.md|  6 ++--
 _pages/cn/home.md   |  2 +-
 _pages/home.md  |  2 +-
 _posts/cn/2018-04-25-open-design.md | 38 ++---
 _release/cn/release.md  |  5 +--
 _release/cn/service_center_downloads.md |  5 +--
 _release/cn/service_center_releaseNotes.md  | 52 +++-
 _release/java_chassis_releaseNotes.md   | 44 +---
 _release/release.md |  5 +--
 _release/service_center_downloads.md|  5 +--
 _release/service_center_releaseNotes.md | 53 -
 13 files changed, 188 insertions(+), 75 deletions(-)

diff --cc _release/java_chassis_releaseNotes.md
index f55fa53,955d9da..a762e31
--- a/_release/java_chassis_releaseNotes.md
+++ b/_release/java_chassis_releaseNotes.md
@@@ -7,42 -7,43 +7,48 @@@ excerpt: "Release Notes
  last_modified_at: 2019-04-12T00:50:43-55:00
  ---
  Release Notes - Apache ServiceComb - Version java-chassis-2.2.0
--
++
 +View
 in github
-  
   
-   
++
++
 +
 +   Release Notes - Apache ServiceComb - Version java-chassis-2.1.5
 +
- 在 
github 查看
-  
   
+ View
 in github
 - 
   
 -  
++
++
+ 
 -Release Notes - Apache ServiceComb - Version java-chassis-2.1.5
 -
 -在 
github 查看
 - 
   
 - 
++   Release Notes - Apache ServiceComb - Version java-chassis-2.1.5
++
++View
 in github
++
 +
  
  Release Notes - Apache ServiceComb - Version java-chassis-2.1.3
 -
 -在 
github 查看
 - 
   
 -  
 +
- 在 
github 查看
-  
   
-   
++View
 in github
++
++
  
  Release Notes - Apache ServiceComb - Version java-chassis-2.1.2
 -
 -在 
github 查看
 - 
   
 -  


  
  
- 在 
github 查看
-  
   
-   



++View
 in github
++
++
  Release Notes - Apache ServiceComb - Version java-chassis-2.1.0
 -   
 -在 
github 查看
 - 
   
 +
- 在 
github 查看
-  
   
++View
 in github
++
  
  
  Release Notes - Apache ServiceComb - Version java-chassis-1.3.1
 -
 -在 
github 查看
 - 
   
 -
 +
- 在 
github 查看
-  
   
- 
++View
 in github
++
++
  
  Release Notes - Apache ServiceComb - Version java-chassis-1.3.0
 -
 -在 
github 查看
 - 
   
 -
 +
- 在 
github 查看
-

[servicecomb-website] branch asf-site updated (9a52491 -> 27f6642)

2021-06-07 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a change to branch asf-site
in repository https://gitbox.apache.org/repos/asf/servicecomb-website.git.


from 9a52491  Publish the webiste
 add 7ea3d5c  release java chassis 2.2.0
 add d4887c3  update some broken links
 add 0842813  release service-center 2.0.0 (#268)
 new bdd26b1  Merge branch 'master' into asf-site
 new 27f6642  Publish the website

The 2 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:
 _data/navigation.yml   | 38 
 _docs/cn/products/service-center/install.md|  6 +--
 _docs/products/service-center/install.md   |  6 +--
 _pages/cn/home.md  |  2 +-
 _pages/home.md |  2 +-
 _posts/cn/2018-04-25-open-design.md| 38 
 _release/cn/release.md |  5 +-
 _release/cn/service_center_downloads.md|  5 +-
 _release/cn/service_center_releaseNotes.md | 52 -
 _release/java_chassis_releaseNotes.md  | 44 ++
 _release/release.md|  5 +-
 _release/service_center_downloads.md   |  5 +-
 _release/service_center_releaseNotes.md| 53 +-
 content/cn/docs/open-design/index.html | 36 +++
 .../products/service-center/install/index.html |  6 +--
 .../docs/users/application-boot-process/index.html | 12 ++---
 .../cn/docs/users/communicate-protocol/index.html  | 12 ++---
 .../cn/docs/users/customized-tracing/index.html| 12 ++---
 content/cn/docs/users/deploy-mode/index.html   | 12 ++---
 .../cn/docs/users/develop-with-jax-rs/index.html   | 12 ++---
 .../users/develop-with-rest-template/index.html| 12 ++---
 content/cn/docs/users/develop-with-rpc/index.html  | 12 ++---
 .../develop-with-spring-boot-starter/index.html| 12 ++---
 .../docs/users/develop-with-springmvc/index.html   | 12 ++---
 .../users/develop-with-transparent-rpc/index.html  | 12 ++---
 .../cn/docs/users/distributed-tracing/index.html   | 12 ++---
 content/cn/docs/users/dynamic-config/index.html| 12 ++---
 content/cn/docs/users/edge-in-1.0.0-m1/index.html  | 12 ++---
 .../cn/docs/users/edging-service/nginx/index.html  | 12 ++---
 .../cn/docs/users/edging-service/zuul/index.html   | 12 ++---
 content/cn/docs/users/healthcheck/index.html   | 12 ++---
 content/cn/docs/users/index.html   | 12 ++---
 content/cn/docs/users/invoke-control/index.html| 12 ++---
 .../cn/docs/users/local-develop-test/index.html| 12 ++---
 .../index.html | 12 ++---
 content/cn/docs/users/metrics-in-0.5.0/index.html  | 12 ++---
 .../cn/docs/users/metrics-in-1.0.0-m1/index.html   | 12 ++---
 .../index.html | 12 ++---
 .../index.html | 12 ++---
 content/cn/docs/users/run-mode/index.html  | 12 ++---
 .../docs/users/service-configurations/index.html   | 12 ++---
 content/cn/docs/users/service-contract/index.html  | 12 ++---
 .../cn/docs/users/service-definition/index.html| 12 ++---
 content/cn/docs/users/service-heartbeat/index.html | 12 ++---
 .../users/service-interface-constraints/index.html | 12 ++---
 content/cn/docs/users/setup-environment/index.html | 12 ++---
 .../cn/docs/users/use-service-contract/index.html  | 12 ++---
 content/cn/docs/users/use-tls/index.html   | 12 ++---
 content/cn/index.html  |  2 +-
 content/cn/release/index.html  |  5 +-
 .../cn/release/service-center-downloads/index.html | 12 -
 .../service-center-release-notes/index.html| 52 -
 .../products/service-center/install/index.html |  6 +--
 .../docs/users/application-boot-process/index.html | 12 ++---
 content/docs/users/communicate-protocol/index.html | 12 ++---
 content/docs/users/customized-tracing/index.html   | 12 ++---
 content/docs/users/develop-with-jax-rs/index.html  | 12 ++---
 .../users/develop-with-rest-template/index.html| 12 ++---
 content/docs/users/develop-with-rpc/index.html | 12 ++---
 .../develop-with-spring-boot-starter/index.html| 12 ++---
 .../docs/users/develop-with-springmvc/index.html   | 12 ++---
 .../users/develop-with-transparent-rpc/index.html  | 12 ++---
 content/docs/users/distributed-tracing/index.html  | 12 ++---
 content/docs/users/dynamic-config/index.html   | 12 ++---
 content/docs/users/edge-in-1.0.0-m1/index.html | 12 ++---
 content/docs/users/edging-service/nginx/index.html | 12 ++---
 content/docs/users/edging-service/zuul/index.html  | 12 ++---

[servicecomb-website] branch master updated: release service-center 2.0.0 (#268)

2021-06-07 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 0842813  release service-center 2.0.0 (#268)
0842813 is described below

commit 08428133014d5ee209df7625b413d4d16783ff57
Author: little-cui 
AuthorDate: Tue Jun 8 09:56:40 2021 +0800

release service-center 2.0.0 (#268)

Co-authored-by: Willem Jiang 
---
 _data/navigation.yml| 10 +++---
 _docs/cn/products/service-center/install.md |  6 ++--
 _docs/products/service-center/install.md|  6 ++--
 _pages/cn/home.md   |  2 +-
 _pages/home.md  |  2 +-
 _release/cn/release.md  |  5 +--
 _release/cn/service_center_downloads.md |  5 +--
 _release/cn/service_center_releaseNotes.md  | 52 +++-
 _release/release.md |  5 +--
 _release/service_center_downloads.md|  5 +--
 _release/service_center_releaseNotes.md | 53 -
 11 files changed, 129 insertions(+), 22 deletions(-)

diff --git a/_data/navigation.yml b/_data/navigation.yml
index 561716d..63ef737 100755
--- a/_data/navigation.yml
+++ b/_data/navigation.yml
@@ -100,8 +100,9 @@ t:
 
   - title: ServiceCenter User Guide
 children:
-  - title: 1.3.0
-url: https://service-center.readthedocs.io/en/latest/
+
+  - title: 2.0.0
+url: 
https://service-center.readthedocs.io/en/latest/user-guides.html
 
   - title: Kie User Guide
 children:
@@ -292,8 +293,9 @@ t:
 
   - title: ServiceCenter用户手册
 children:
-  - title: 1.3.0(英文版)
-url: https://service-center.readthedocs.io/en/latest/
+  
+  - title: 2.0.0(英文版)
+url: 
https://service-center.readthedocs.io/en/latest/user-guides.html
 
   - title: Kie 用户手册
 children:
diff --git a/_docs/cn/products/service-center/install.md 
b/_docs/cn/products/service-center/install.md
index 14dc5d3..d7dad6d 100644
--- a/_docs/cn/products/service-center/install.md
+++ b/_docs/cn/products/service-center/install.md
@@ -13,14 +13,14 @@ ServiceCenter是一个服务注册中心。 服务提供者可以将自身的实
  
 ## 版本发布包启动
 1. 下载 [最新版本的Service-Center](/cn/release/service-center-downloads/)  
-   此处使用了 apache-servicecomb-service-center-1.3.0-linux-amd64.tar.gz 
包做介绍,实际操作时请根据系统环境从下载页面选取最新版本 
+   此处使用了 apache-servicecomb-service-center-2.0.0-linux-amd64.tar.gz 
包做介绍,实际操作时请根据系统环境从下载页面选取最新版本 
 2. 启动服务
```bash
# 解压tar包
-   $ tar -zxvf  apache-servicecomb-service-center-1.3.0-linux-amd64.tar.gz
+   $ tar -zxvf  apache-servicecomb-service-center-2.0.0-linux-amd64.tar.gz

# 启动servicecenter服务
-   $ cd apache-servicecomb-service-center-1.3.0-linux-amd64/
+   $ cd apache-servicecomb-service-center-2.0.0-linux-amd64/
$ ./start-service-center.sh
```
 3. 查看服务状态
diff --git a/_docs/products/service-center/install.md 
b/_docs/products/service-center/install.md
index 9cb4427..d542bec 100644
--- a/_docs/products/service-center/install.md
+++ b/_docs/products/service-center/install.md
@@ -13,14 +13,14 @@ ServiceCenter is a service registry. The service provider 
can register its own i
  
 ## Run with release package
 1. Download [the latest release package of 
Service-Center](/release/service-center-downloads/)  
-   This example uses  
apache-servicecomb-service-center-1.3.0-linux-amd64.tar.gz  
+   This example uses  
apache-servicecomb-service-center-2.0.0-linux-amd64.tar.gz  
 2. Start service-center
```bash
# Decompression the package
-   $ tar -zxvf  apache-servicecomb-service-center-1.3.0-linux-amd64.tar.gz
+   $ tar -zxvf  apache-servicecomb-service-center-2.0.0-linux-amd64.tar.gz

# Start the service of servicecenter
-   $ cd apache-servicecomb-service-center-1.3.0-linux-amd64/
+   $ cd apache-servicecomb-service-center-2.0.0-linux-amd64/
$ ./start-service-center.sh
```
 3. View service status
diff --git a/_pages/cn/home.md b/_pages/cn/home.md
index 104960d..fd206b7 100755
--- a/_pages/cn/home.md
+++ b/_pages/cn/home.md
@@ -31,7 +31,7 @@ intro:
 Apache ServiceComb 
Java-Chassis 发布 2.2.0
   
   
-Apache ServiceComb 
Service-Center 发布 1.3.0
+Apache ServiceComb 
Service-Center 发布 2.0.0
   
   
 Apache ServiceComb Toolkit 
发布0.2.0
diff --git a/_pages/home.md b/_pages/home.md
index 34315e0..e0fc927 100755
--- a/_pages/home.md
+++ b/_pages/home.md
@@ -31,7 +31,7 @@ intro:
 Apache ServiceComb Java-Chassis 
Release Version 2.2.0
   
   
-Apache ServiceComb 
Service-Center Release Version 1.3.0
+Apache ServiceComb 
Service-Center Release Version 2.0.0
   
   
 Apache ServiceComb Toolkit 0.2.0 is 
released
diff --git a/_release/cn/release.md b/_release/cn/release.md
index 920a7be..3019713 100755
--- a/_release/cn/release.md
+++ 

[GitHub] [servicecomb-website] WillemJiang merged pull request #268: release service-center 2.0.0

2021-06-07 Thread GitBox


WillemJiang merged pull request #268:
URL: https://github.com/apache/servicecomb-website/pull/268


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [servicecomb-website] WillemJiang merged pull request #267: update some broken links

2021-06-07 Thread GitBox


WillemJiang merged pull request #267:
URL: https://github.com/apache/servicecomb-website/pull/267


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[servicecomb-website] branch master updated: update some broken links

2021-06-07 Thread ningjiang
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new d4887c3  update some broken links
d4887c3 is described below

commit d4887c3f56efd84aaf4693cc9df64831645a74fa
Author: liubao68 
AuthorDate: Thu May 13 14:52:27 2021 +0800

update some broken links
---
 _data/navigation.yml| 38 ++---
 _posts/cn/2018-04-25-open-design.md | 38 ++---
 2 files changed, 38 insertions(+), 38 deletions(-)

diff --git a/_data/navigation.yml b/_data/navigation.yml
index 28fcc55..561716d 100755
--- a/_data/navigation.yml
+++ b/_data/navigation.yml
@@ -90,28 +90,28 @@ t:
 users:
   - title: Java Chassis User Guide
 children:
-  - title: 1.2.1
-url: https://docs.servicecomb.io/java-chassis/en_US/index.html
+  - title: 2.x
+url: 
https://huaweicse.github.io/servicecomb-java-chassis-doc/java-chassis/en_US/
 
-  - title: Saga User Guide
+  - title: Pack User Guide
 children:
   - title: 0.5.0
-url: https://docs.servicecomb.io/saga/en_US/index.html
+url: 
https://github.com/apache/servicecomb-pack/blob/master/docs/user_guide.md
 
   - title: ServiceCenter User Guide
 children:
-  - title: 1.2.0
-url: https://docs.servicecomb.io/service-center/en_US/index.html
+  - title: 1.3.0
+url: https://service-center.readthedocs.io/en/latest/
 
   - title: Kie User Guide
 children:
-  - title: 0.1.0
-url: /docs/kie/0.1.0/index.html
+  - title: 0.2.0
+url: https://kie.readthedocs.io/en/latest/
 
   - title: Mesher User Guide
 children:
   - title: 1.6.3
-url: /docs/mesher/1.6.3/index.html
+url: https://mesher.readthedocs.io/en/latest/
 developers:
   - title: "Projects"
 url: /developers/
@@ -282,28 +282,28 @@ t:
 users:
   - title: Java-chassis用户手册
 children:
-  - title: 1.2.1
-url: https://docs.servicecomb.io/java-chassis/zh_CN/index.html
+  - title: 2.x
+url: 
https://huaweicse.github.io/servicecomb-java-chassis-doc/java-chassis/zh_CN/
 
-  - title: Saga用户手册
+  - title: Pack用户手册
 children:
-  - title: 0.5.0
-url: https://docs.servicecomb.io/saga/zh_CN/index.html
+  - title: 0.5.0(英文版)
+url: 
https://github.com/apache/servicecomb-pack/blob/master/docs/user_guide.md
 
   - title: ServiceCenter用户手册
 children:
-  - title: 1.2.0
-url: https://docs.servicecomb.io/service-center/zh_CN/index.html
+  - title: 1.3.0(英文版)
+url: https://service-center.readthedocs.io/en/latest/
 
   - title: Kie 用户手册
 children:
-  - title: 0.1.0(英文版)
-url: /docs/kie/0.1.0/index.html
+  - title: 0.2.0(英文版)
+url: https://kie.readthedocs.io/en/latest/
 
   - title: Mesher 用户手册
 children:
   - title: 1.6.3(英文版)
-url: /docs/mesher/1.6.3/index.html
+url: https://mesher.readthedocs.io/en/latest/
 
 developers:
   - title: "项目列表"
diff --git a/_posts/cn/2018-04-25-open-design.md 
b/_posts/cn/2018-04-25-open-design.md
index 23b8ef3..8cc0646 100644
--- a/_posts/cn/2018-04-25-open-design.md
+++ b/_posts/cn/2018-04-25-open-design.md
@@ -18,7 +18,7 @@ redirect_from:
 
 ## 写在前面
 
-[开源微服务框架 Apache ServiceComb](http://servicecomb.incubator.apache.org/cn/) 
的前身为华为云的 [微服务引擎 CSE (Cloud Service Engine) 
云服务](https://support.huaweicloud.com/usermanual-servicestage/zh-cn_topic_0053812706.html),
  ServiceComb 的早期版本和多数第一批做微服务或分布式框架先贤一样,为了追求高性能,做过非常多如 改善编码效率 
和改进通信协议等尝试。然而,随着业务规模的递增,需求也逐渐呈现多样化,单方面通过传统手段追求高性能导致在面对多样化需求时遇到了各种挑战,遗留系统的通信、接入各种不同的终端、协议健壮性、防攻击等各种挑战迎面而来。
+[开源微服务框架 Apache ServiceComb][servicecomb] 的前身为华为云的 [微服务引擎 CSE (Cloud Service 
Engine) 
云服务](https://support.huaweicloud.com/devg-servicestage/ss-devg-0002.html),  
ServiceComb 的早期版本和多数第一批做微服务或分布式框架先贤一样,为了追求高性能,做过非常多如 改善编码效率 
和改进通信协议等尝试。然而,随着业务规模的递增,需求也逐渐呈现多样化,单方面通过传统手段追求高性能导致在面对多样化需求时遇到了各种挑战,遗留系统的通信、接入各种不同的终端、协议健壮性、防攻击等各种挑战迎面而来。
 
 Apache 
ServiceComb,愿景是帮助企业快速构建云原生应用,通过一系列解决方案帮助用户快速开发微服务应用的同时实现对这些微服务应用的高效运维管理,保持中立性以避免厂商LockIn成为了关键任务。对于此,
 Apache ServiceComb 需要有友好的机制能够对接各微服务主流技术栈技术 或 开发框架。
 
@@ -34,7 +34,7 @@ Apache ServiceComb,愿景是帮助企业快速构建云原生应用,通过
 
 每位技术人员都或多或少拥有自己的 Coding 习惯或爱好的技术, 使用个人熟练的方式从事技术工作往往更加高效和舒适。
 
-[开源微服务框架 Apache ServiceComb](http://servicecomb.incubator.apache.org/cn/) 
的早期版本实现了 gRPC 协议,然而在项目演进过程中我们发现大量技术人员并不熟悉书写 IDL , 对 IDL 具体支持哪些特性也不清楚。 
大多数情况下,用户每碰到一个场景就需要翻开协议规范看一遍, 而 IDL 缺少配套的编辑或语法检查等工具也导致了开发效率的降低。
+[开源微服务框架 Apache ServiceComb][servicecomb] 的早期版本实现了 gRPC 
协议,然而在项目演进过程中我们发现大量技术人员并不熟悉书写 IDL , 对 IDL 

[GitHub] [servicecomb-java-chassis] fanjiang-2021 opened a new pull request #2406: in safe mode , before merge Instances should ping instance

2021-06-07 Thread GitBox


fanjiang-2021 opened a new pull request #2406:
URL: https://github.com/apache/servicecomb-java-chassis/pull/2406


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2405: ServiceComb 服务与服务之间是怎么做认证的?

2021-06-07 Thread GitBox


liubao68 commented on issue #2405:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/2405#issuecomment-856359365


   默认没提供认证机制。 
你可以配置[证书认证(TLS)](http://servicecomb.gitee.io/servicecomb-java-chassis-doc/java-chassis/zh_CN/security/tls/)、[公钥认证](http://servicecomb.gitee.io/servicecomb-java-chassis-doc/java-chassis/zh_CN/security/shi-yong-rsa-ren-zheng/)等,
 以及添加自己的认证。 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[servicecomb-java-chassis] branch master updated: [SCB-2274]change connecting config/dashboard services rule to round robin (#2404)

2021-06-07 Thread liubao
This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
 new efbeee2  [SCB-2274]change connecting config/dashboard services rule to 
round robin (#2404)
efbeee2 is described below

commit efbeee2f21c356084b829c84af0afded80612d36
Author: liubao68 
AuthorDate: Mon Jun 7 20:06:24 2021 +0800

[SCB-2274]change connecting config/dashboard services rule to round robin 
(#2404)
---
 .../config/center/client/AddressManager.java   |  12 +--
 .../config/center/client/ConfigCenterClient.java   |  14 ++-
 .../servicecomb/config/kie/client/KieClient.java   |  26 ++---
 .../config/kie/client/model/KieAddressManager.java |  16 +--
 .../service/center/client/AddressManager.java  |  19 ++--
 .../center/client/ServiceCenterRawClient.java  |   2 -
 .../service/center/client/ServiceCenterWatch.java  |  26 ++---
 demo/demo-cse-v1/pom.xml   |   4 +
 .../dashboard/monitor/AddressManager.java  | 117 -
 .../monitor/DefaultMonitorDataPublisher.java   |  36 +++
 10 files changed, 92 insertions(+), 180 deletions(-)

diff --git 
a/clients/config-center-client/src/main/java/org/apache/servicecomb/config/center/client/AddressManager.java
 
b/clients/config-center-client/src/main/java/org/apache/servicecomb/config/center/client/AddressManager.java
index cc073ff..28772d4 100644
--- 
a/clients/config-center-client/src/main/java/org/apache/servicecomb/config/center/client/AddressManager.java
+++ 
b/clients/config-center-client/src/main/java/org/apache/servicecomb/config/center/client/AddressManager.java
@@ -19,7 +19,6 @@ package org.apache.servicecomb.config.center.client;
 
 import java.util.ArrayList;
 import java.util.List;
-import java.util.Random;
 
 import org.apache.commons.lang.StringUtils;
 import org.apache.servicecomb.http.client.common.HttpUtils;
@@ -31,13 +30,12 @@ public class AddressManager {
 
   private final List addresses;
 
-  private int index;
+  private int index = 0;
 
   public AddressManager(String projectName, List addresses) {
 this.projectName = StringUtils.isEmpty(projectName) ? DEFAULT_PROJECT : 
projectName;
 this.addresses = new ArrayList<>(addresses.size());
 addresses.forEach((address -> this.addresses.add(formatAddress(address;
-this.index = new Random().nextInt(addresses.size());
   }
 
   private String formatAddress(String address) {
@@ -48,18 +46,12 @@ public class AddressManager {
 }
   }
 
-  public String nextAddress() {
+  public String address() {
 synchronized (this) {
   this.index++;
   if (this.index >= addresses.size()) {
 this.index = 0;
   }
-}
-return address();
-  }
-
-  public String address() {
-synchronized (this) {
   return addresses.get(index);
 }
   }
diff --git 
a/clients/config-center-client/src/main/java/org/apache/servicecomb/config/center/client/ConfigCenterClient.java
 
b/clients/config-center-client/src/main/java/org/apache/servicecomb/config/center/client/ConfigCenterClient.java
index c362804..3e668d2 100644
--- 
a/clients/config-center-client/src/main/java/org/apache/servicecomb/config/center/client/ConfigCenterClient.java
+++ 
b/clients/config-center-client/src/main/java/org/apache/servicecomb/config/center/client/ConfigCenterClient.java
@@ -30,10 +30,14 @@ import 
org.apache.servicecomb.http.client.common.HttpRequest;
 import org.apache.servicecomb.http.client.common.HttpResponse;
 import org.apache.servicecomb.http.client.common.HttpTransport;
 import org.apache.servicecomb.http.client.common.HttpUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import com.fasterxml.jackson.core.type.TypeReference;
 
 public class ConfigCenterClient implements ConfigCenterOperation {
+  private static final Logger LOGGER = 
LoggerFactory.getLogger(ConfigCenterClient.class);
+
   public static final String DEFAULT_APP_SEPARATOR = "@";
 
   public static final String DEFAULT_SERVICE_SEPARATOR = "#";
@@ -57,11 +61,15 @@ public class ConfigCenterClient implements 
ConfigCenterOperation {
 QueryConfigurationsResponse queryConfigurationsResponse = new 
QueryConfigurationsResponse();
 
 Map configurations = new HashMap<>();
+
+String uri = null;
 try {
+  uri = addressManager.address() + "/configuration/items?dimensionsInfo="
+  + HttpUtils.encodeURLParam(dimensionsInfo) + "=" + 
request.getRevision();
+
   Map headers = new HashMap<>();
   headers.put("x-environment", request.getEnvironment());
-  HttpRequest httpRequest = new HttpRequest(addressManager.address() + 
"/configuration/items?dimensionsInfo="
-  + HttpUtils.encodeURLParam(dimensionsInfo) + "=" + 
request.getRevision(), headers, null,
+  HttpRequest httpRequest = new HttpRequest(uri, headers, null,
   

[GitHub] [servicecomb-java-chassis] liubao68 merged pull request #2404: [SCB-2274]change connecting config/dashboard services rule to round robbin

2021-06-07 Thread GitBox


liubao68 merged pull request #2404:
URL: https://github.com/apache/servicecomb-java-chassis/pull/2404


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [servicecomb-java-chassis] Pangzhihong opened a new issue #2405: ServiceComb 服务与服务之间是怎么做认证的?

2021-06-07 Thread GitBox


Pangzhihong opened a new issue #2405:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2405


   ServiceComb 服务与服务之间是怎么做认证的? 我看在服务里面直接调用其他服务,其中有没有一些认证过程啊,比如证书认证? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [servicecomb-java-chassis] codecov-commenter commented on pull request #2404: [SCB-2274]change connecting config/dashboard services rule to round robbin

2021-06-07 Thread GitBox


codecov-commenter commented on pull request #2404:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/2404#issuecomment-855716884


   # 
[Codecov](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2404?src=pr=h1_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 Report
   > Merging 
[#2404](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2404?src=pr=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 (7d6453a) into 
[master](https://codecov.io/gh/apache/servicecomb-java-chassis/commit/d66630946f450a7c0815c4a2482143d193559bcc?el=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 (d666309) will **increase** coverage by `0.04%`.
   > The diff coverage is `42.30%`.
   
   [![Impacted file tree 
graph](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2404/graphs/tree.svg?width=650=150=pr=KXfDcr9rX2_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2404?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
   
   ```diff
   @@ Coverage Diff  @@
   ## master#2404  +/-   ##
   
   + Coverage 79.93%   79.97%   +0.04% 
 Complexity 1408 1408  
   
 Files  1549 1549  
 Lines 4135641348   -8 
 Branches   3444 3444  
   
   + Hits  3305733068  +11 
   + Misses 6826 6808  -18 
   + Partials   1473 1472   -1 
   ```
   
   
   | [Impacted 
Files](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2404?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 | Coverage Δ | |
   |---|---|---|
   | 
[...pache/servicecomb/config/kie/client/KieClient.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2404/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Y2xpZW50cy9jb25maWcta2llLWNsaWVudC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvY29uZmlnL2tpZS9jbGllbnQvS2llQ2xpZW50LmphdmE=)
 | `0.00% <0.00%> (ø)` | |
   | 
[...omb/config/kie/client/model/KieAddressManager.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2404/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Y2xpZW50cy9jb25maWcta2llLWNsaWVudC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvY29uZmlnL2tpZS9jbGllbnQvbW9kZWwvS2llQWRkcmVzc01hbmFnZXIuamF2YQ==)
 | `0.00% <0.00%> (ø)` | |
   | 
[.../service/center/client/ServiceCenterRawClient.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2404/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Y2xpZW50cy9zZXJ2aWNlLWNlbnRlci1jbGllbnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NlcnZpY2Vjb21iL3NlcnZpY2UvY2VudGVyL2NsaWVudC9TZXJ2aWNlQ2VudGVyUmF3Q2xpZW50LmphdmE=)
 | `67.64% <ø> (+3.75%)` | :arrow_up: |
   | 
[...comb/service/center/client/ServiceCenterWatch.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2404/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Y2xpZW50cy9zZXJ2aWNlLWNlbnRlci1jbGllbnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NlcnZpY2Vjb21iL3NlcnZpY2UvY2VudGVyL2NsaWVudC9TZXJ2aWNlQ2VudGVyV2F0Y2guamF2YQ==)
 | `0.00% <0.00%> (ø)` | |
   | 
[...vicecomb/service/center/client/AddressManager.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2404/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Y2xpZW50cy9zZXJ2aWNlLWNlbnRlci1jbGllbnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3NlcnZpY2Vjb21iL3NlcnZpY2UvY2VudGVyL2NsaWVudC9BZGRyZXNzTWFuYWdlci5qYXZh)
 | `64.70% <80.00%> (+19.70%)` | :arrow_up: |
   | 
[...rvicecomb/config/center/client/AddressManager.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/2404/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Y2xpZW50cy9jb25maWctY2VudGVyLWNsaWVudC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvY29uZmlnL2NlbnRlci9jbGllbnQvQWRkcmVzc01hbmFnZXIuamF2YQ==)
 | `68.75% <100.00%> (-4.94%)` | :arrow_down: |
   | 

[GitHub] [servicecomb-java-chassis] liubao68 opened a new pull request #2404: [SCB-2274]change connecting config/dashboard services rule to round robbin

2021-06-07 Thread GitBox


liubao68 opened a new pull request #2404:
URL: https://github.com/apache/servicecomb-java-chassis/pull/2404


   
   Follow this checklist to help us incorporate your contribution quickly and 
easily:
   
- [ ] Make sure there is a [JIRA 
issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually 
before you start working on it).  Trivial changes like typos do not require a 
JIRA issue.  Your pull request should address just this issue, without pulling 
in other changes.
- [ ] Each commit in the pull request should have a meaningful subject line 
and body.
- [ ] Format the pull request title like `[SCB-XXX] Fixes bug in 
ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA 
issue.
- [ ] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
- [ ] Run `mvn clean install -Pit` to make sure basic checks pass. A more 
thorough check will be performed on your pull request automatically.
- [ ] If this contribution is large, please file an Apache [Individual 
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [servicecomb-kie] tianxiaoliang merged pull request #183: Add config error

2021-06-07 Thread GitBox


tianxiaoliang merged pull request #183:
URL: https://github.com/apache/servicecomb-kie/pull/183


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[servicecomb-kie] branch master updated: Add config error (#183)

2021-06-07 Thread tianxiaoliang
This is an automated email from the ASF dual-hosted git repository.

tianxiaoliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-kie.git


The following commit(s) were added to refs/heads/master by this push:
 new d6a4a9f  Add config error (#183)
d6a4a9f is described below

commit d6a4a9ff027968b6af2a4ddfbf1f8ac554ae453d
Author: little-cui 
AuthorDate: Mon Jun 7 14:43:45 2021 +0800

Add config error (#183)

* Add config error

* Use foundation/validator instead
---
 server/resource/v1/admin_resource.go   |  5 ++--
 server/resource/v1/common.go   | 12 
 server/resource/v1/history_resource.go | 15 +-
 server/resource/v1/kv_resource.go  | 54 +-
 4 files changed, 45 insertions(+), 41 deletions(-)

diff --git a/server/resource/v1/admin_resource.go 
b/server/resource/v1/admin_resource.go
index 5b4c191..d359044 100644
--- a/server/resource/v1/admin_resource.go
+++ b/server/resource/v1/admin_resource.go
@@ -21,6 +21,7 @@ import (
"github.com/apache/servicecomb-kie/pkg/model"
"github.com/apache/servicecomb-kie/server/service"
goRestful "github.com/emicklei/go-restful"
+   "github.com/go-chassis/cari/config"
"github.com/go-chassis/go-chassis/v2/pkg/runtime"
"github.com/go-chassis/go-chassis/v2/server/restful"
"github.com/go-chassis/openlog"
@@ -59,7 +60,7 @@ func (r *AdminResource) HealthCheck(context *restful.Context) 
{
resp := {}
latest, err := service.RevisionService.GetRevision(context.Ctx, domain)
if err != nil {
-   WriteErrResponse(context, http.StatusInternalServerError, 
err.Error())
+   WriteErrResponse(context, config.ErrInternal, err.Error())
return
}
resp.Revision = strconv.FormatInt(latest, 10)
@@ -67,7 +68,7 @@ func (r *AdminResource) HealthCheck(context *restful.Context) 
{
resp.Timestamp = time.Now().Unix()
total, err := service.KVService.Total(context.Ctx, domain)
if err != nil {
-   WriteErrResponse(context, http.StatusInternalServerError, 
err.Error())
+   WriteErrResponse(context, config.ErrInternal, err.Error())
return
}
resp.Total = total
diff --git a/server/resource/v1/common.go b/server/resource/v1/common.go
index 96b6eb9..70f6010 100644
--- a/server/resource/v1/common.go
+++ b/server/resource/v1/common.go
@@ -23,6 +23,7 @@ import (
"errors"
"github.com/apache/servicecomb-kie/pkg/model"
"github.com/apache/servicecomb-kie/server/service/mongo/session"
+   "github.com/go-chassis/cari/config"
"github.com/go-chassis/cari/rbac"
"net/http"
"strconv"
@@ -100,10 +101,11 @@ func ReadLabelCombinations(req *goRestful.Request) 
([]map[string]string, error)
 }
 
 //WriteErrResponse write error message to client
-func WriteErrResponse(context *restful.Context, status int, msg string) {
+func WriteErrResponse(context *restful.Context, code int32, msg string) {
+   configErr := config.NewError(code, msg)
context.Resp.Header().Set(goRestful.HEADER_ContentType, 
goRestful.MIME_JSON)
-   context.WriteHeader(status)
-   b, err := json.MarshalIndent({Msg: msg}, "", " ")
+   context.WriteHeader(configErr.StatusCode())
+   b, err := json.MarshalIndent(configErr, "", " ")
if err != nil {
openlog.Error("can not marshal:" + err.Error())
return
@@ -261,13 +263,13 @@ func queryAndResponse(rctx *restful.Context, request 
*model.ListKVRequest) {
}
rev, err := service.RevisionService.GetRevision(rctx.Ctx, 
request.Domain)
if err != nil {
-   WriteErrResponse(rctx, http.StatusInternalServerError, 
err.Error())
+   WriteErrResponse(rctx, config.ErrInternal, err.Error())
return
}
kv, err := service.KVService.List(rctx.Ctx, request.Domain, 
request.Project, opts...)
if err != nil {
openlog.Error("common: " + err.Error())
-   WriteErrResponse(rctx, http.StatusInternalServerError, 
common.MsgDBError)
+   WriteErrResponse(rctx, config.ErrInternal, common.MsgDBError)
return
}
rctx.ReadResponseWriter().Header().Set(common.HeaderRevision, 
strconv.FormatInt(rev, 10))
diff --git a/server/resource/v1/history_resource.go 
b/server/resource/v1/history_resource.go
index acf7fb1..dbfbf80 100644
--- a/server/resource/v1/history_resource.go
+++ b/server/resource/v1/history_resource.go
@@ -21,6 +21,7 @@ import (
"github.com/apache/servicecomb-kie/pkg/common"
"github.com/apache/servicecomb-kie/pkg/model"
"github.com/apache/servicecomb-kie/server/service"
+   "github.com/go-chassis/cari/config"
"net/http"
 
goRestful "github.com/emicklei/go-restful"
@@ -40,12 +41,12 @@ func (r