[GitHub] [servicecomb-java-chassis] bambi2016 opened a new issue, #3269: 有什么好的办法可以实现多环境配置servicecomb tsl通信

2022-08-08 Thread GitBox


bambi2016 opened a new issue, #3269:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3269

   
https://servicecomb.apache.org/references/java-chassis/zh_CN/security/tls.html
   有些环境不需要tls通信,有些需要,如何配置实现?
   
我试着通过这个参数servicecomb.rest.address配置,一个有sslEnabled=true参数,一个没有这个参数,但发现不行,还是会去读取ssl.sslCustomClass:
 org.apache.servicecomb.demo.DemoSSLCustom,导致问题。


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org.apache.org

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



[servicecomb-website] branch asf-site updated: Publish the website of ServiceComb

2022-08-08 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


The following commit(s) were added to refs/heads/asf-site by this push:
 new c87020de Publish the website of ServiceComb
c87020de is described below

commit c87020de16948b83deb7c7839966c09bb67662ab
Author: Willem Jiang 
AuthorDate: Tue Aug 9 10:11:51 2022 +0800

Publish the website of ServiceComb
---
 content/cn/index.html|   2 +-
 content/cn/release/index.html|   5 +-
 content/cn/release/pack-downloads/index.html |   7 +-
 content/cn/release/pack-release-notes/index.html |  12 ++-
 content/feed.xml |   2 +-
 content/index.html   |   2 +-
 content/release/index.html   |   5 +-
 content/release/pack-downloads/index.html|   7 +-
 content/release/pack-release-notes/index.html|  12 ++-
 content/sitemap.xml  | 112 +++
 10 files changed, 95 insertions(+), 71 deletions(-)

diff --git a/content/cn/index.html b/content/cn/index.html
index 567cf2c1..47beca89 100644
--- a/content/cn/index.html
+++ b/content/cn/index.html
@@ -323,7 +323,7 @@
 
   最新新闻
 left_ul li{width:100%} 
-  Apache 
ServiceComb Java-Chassis 发布 2.7.0   Apache ServiceComb 社区 暑假coding 2020 活动   Apache ServiceComb Pack 发布0.7.0  
 Apache ServiceComb 
Service-Center 发布 2.1.0   Apache ServiceComb Toolkit 发布0.2.0 
 
+  Apache 
ServiceComb Java-Chassis 发布 2.7.0   Apache ServiceComb 社区 暑假coding 2020 活动   Apache ServiceComb Pack 发布 0.7.1  
 Apache ServiceComb 
Service-Center 发布 2.1.0   Apache ServiceComb Toolkit 发布0.2.0 
 
   Apache 
ServiceComb 社区接受新开普软件研究院的代码捐赠   Apache
 ServiceComb 社区meetup及新品发布   Apache ServiceComb 
荣获中国开源云联盟组织的中国优秀开源项目一等奖   Apache ServiceComb 
社区联合传智播客的黑马程序员、博学谷、传智汇子品牌发布微服务化教程   https://gitter [...]
 
 
diff --git a/content/cn/release/index.html b/content/cn/release/index.html
index 19b22193..57b87195 100644
--- a/content/cn/release/index.html
+++ b/content/cn/release/index.html
@@ -533,10 +533,7 @@
 
 
   
-ServiceComb Pack 0.7.0 
(released on 2022-05-16)
-  
-  
-ServiceComb Pack 0.6.0 
(released on 2020-05-26)
+ServiceComb Pack 0.7.1 
(released on 2022-08-09)
   
   
 ServiceComb 
Service-Center 2.1.0 (released on 2022-03-15)
diff --git a/content/cn/release/pack-downloads/index.html 
b/content/cn/release/pack-downloads/index.html
index 98e82e80..75055fb2 100644
--- a/content/cn/release/pack-downloads/index.html
+++ b/content/cn/release/pack-downloads/index.html
@@ -537,7 +537,12 @@
   
   
 
-  Apache ServiceComb Pack 0.7.0(LATEST)
+  Apache ServiceComb Pack 0.7.1(LATEST)
+  https://dlcdn.apache.org/servicecomb/servicecomb-pack/0.7.1/apache-servicecomb-pack-distribution-0.7.1-src.zip;>[src]
 https://www.apache.org/dist/servicecomb/servicecomb-pack/0.7.1/apache-servicecomb-pack-distribution-0.7.1-src.zip.asc;>[asc]
 https://www.apache.org/dist/servicecomb/servicecomb-pack/0.7.1/apache-servicecomb-pack-distribution-0.7.1-src.zip.sha512;>[sha512]
+  https://dlcdn.apache.org/servicecomb/servicecomb-pack/0.7.1/apache-servicecomb-pack-distribution-0.7.1-bin.zip;>[Binary]
 https://www.apache.org/dist/servicecomb/servicecomb-pack/0.7.1/apache-servicecomb-pack-distribution-0.7.1-bin.zip.asc;>[asc]
 https://www.apache.org/dist/servicecomb/servicecomb-pack/0.7.1/apache-servicecomb-pack-distribution-0.7.1-bin.zip.sha512;>[sha512]
+
+
+  Apache ServiceComb Pack 0.7.0
   https://dlcdn.apache.org/servicecomb/servicecomb-pack/0.7.0/apache-servicecomb-pack-distribution-0.7.0-src.zip;>[src]
 https://www.apache.org/dist/servicecomb/servicecomb-pack/0.7.0/apache-servicecomb-pack-distribution-0.7.0-src.zip.asc;>[asc]
 https://www.apache.org/dist/servicecomb/servicecomb-pack/0.7.0/apache-servicecomb-pack-distribution-0.7.0-src.zip.sha512;>[sha512]
   https://dlcdn.apache.org/servicecomb/servicecomb-pack/0.7.0/apache-servicecomb-pack-distribution-0.7.0-bin.zip;>[Binary]
 https://www.apache.org/dist/servicecomb/servicecomb-pack/0.7.0/apache-servicecomb-pack-distribution-0.7.0-bin.zip.asc;>[asc]
 https://www.apache.org/dist/servicecomb/servicecomb-pack/0.7.0/apache-servicecomb-pack-distribution-0.7.0-bin.zip.sha512;>[sha512]
 
diff --git a/content/cn/release/pack-release-notes/index.html 
b/content/cn/release/pack-release-notes/index.html
index 17ae2c05..8c8d590d 100644
--- a/content/cn/release/pack-release-notes/index.html
+++ b/content/cn/release/pack-release-notes/index.html
@@ -525,7 +525,17 @@
   
 
   
-Release Notes - Apache 
ServiceComb - Version pack-0.7.0
+Release Notes - Apache 
ServiceComb - Version pack-0.7.1
+
+
+Sub-task
+
+
+[https://issues.apache.org/jira/browse/SCB-2657;>SCB-2657] -  
   Fix wrong version placeholder 

[servicecomb-website] branch master updated: Pack Release 0.7.1 (#297)

2022-08-08 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 de4f9edb Pack Release 0.7.1 (#297)
de4f9edb is described below

commit de4f9edb9d27324285af13e5b283d57cda125ae8
Author: Lei Zhang 
AuthorDate: Tue Aug 9 10:08:48 2022 +0800

Pack Release 0.7.1 (#297)
---
 _pages/cn/home.md|  2 +-
 _pages/home.md   |  2 +-
 _release/cn/pack_downloads.md| 15 ---
 _release/cn/pack_releaseNotes.md |  9 +
 _release/cn/release.md   |  4 +---
 _release/pack_downloads.md   | 15 ---
 _release/pack_releaseNotes.md|  8 
 _release/release.md  |  4 +---
 8 files changed, 37 insertions(+), 22 deletions(-)

diff --git a/_pages/cn/home.md b/_pages/cn/home.md
index 36081906..8fb3fff5 100755
--- a/_pages/cn/home.md
+++ b/_pages/cn/home.md
@@ -28,7 +28,7 @@ intro:
   Apache ServiceComb 社区 暑假coding 2020 活动
   
   
-  Apache ServiceComb Pack 发布0.7.0
+  Apache ServiceComb Pack 发布 0.7.1
   
   
 Apache ServiceComb 
Service-Center 发布 2.1.0
diff --git a/_pages/home.md b/_pages/home.md
index 9ca1b6f9..24c8103e 100755
--- a/_pages/home.md
+++ b/_pages/home.md
@@ -28,7 +28,7 @@ intro:
 Apache ServiceComb Summer Code 2020
   
   
-Apache ServiceComb Pack 0.7.0 is 
released
+Apache ServiceComb Pack 0.7.1 is 
released
   
   
 Apache ServiceComb 
Service-Center Release Version 2.1.0
diff --git a/_release/cn/pack_downloads.md b/_release/cn/pack_downloads.md
index 94ca3d71..58a79627 100644
--- a/_release/cn/pack_downloads.md
+++ b/_release/cn/pack_downloads.md
@@ -9,13 +9,14 @@ last_modified_at: 2022-05-16T00:50:43-55:00
 
 ## 发布包
 
-| 版本号   | 源码|   发布包 |
-| -- | - | 
- |
-|**Apache ServiceComb Pack 
0.7.0(LATEST)**|[[src]](https://dlcdn.apache.org/servicecomb/servicecomb-pack/0.7.0/apache-servicecomb-pack-distribution-0.7.0-src.zip)
 
[[asc]](https://www.apache.org/dist/servicecomb/servicecomb-pack/0.7.0/apache-servicecomb-pack-distribution-0.7.0-src.zip.asc)
 
[[sha512]](https://www.apache.org/dist/servicecomb/servicecomb-pack/0.7.0/apache-servicecomb-pack-distribution-0.7.0-src.zip.sha512)|[[Binary]](https://dlcdn.apache.org/servicecomb/servicecomb-pack/0.7.
 [...]
-|Apache ServiceComb Pack 
0.6.0|[[src]](https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-pack/0.6.0/apache-servicecomb-pack-distribution-0.6.0-src.zip)
 
[[asc]](https://www.apache.org/dist/servicecomb/servicecomb-pack/0.6.0/apache-servicecomb-pack-distribution-0.6.0-src.zip.asc)
 
[[sha512]](https://www.apache.org/dist/servicecomb/servicecomb-pack/0.6.0/apache-servicecomb-pack-distribution-0.6.0-src.zip.sha512)|[[Binary]](https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-pac
 [...]
-|Apache ServiceComb Pack 0.5.0
|[[src]](https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-pack/0.5.0/apache-servicecomb-pack-distribution-0.5.0-src.zip)
 
[[asc]](https://www.apache.org/dist/servicecomb/servicecomb-pack/0.5.0/apache-servicecomb-pack-distribution-0.5.0-src.zip.asc)
 
[[sha512]](https://www.apache.org/dist/servicecomb/servicecomb-pack/0.5.0/apache-servicecomb-pack-distribution-0.5.0-src.zip.sha512)|[[Binary]](https://apache.org/dyn/closer.cgi/servicecomb/ser
 [...]
-|Apache ServiceComb Pack 0.4.0
|[[src]](https://archive.apache.org/dist/servicecomb/servicecomb-pack/0.4.0/apache-servicecomb-pack-distribution-0.4.0-src.zip)
 
[[asc]](https://archive.apache.org/dist/servicecomb/servicecomb-pack/0.4.0/apache-servicecomb-pack-distribution-0.4.0-src.zip.asc)
 
[[sha512]](https://archive.apache.org/dist/servicecomb/servicecomb-pack/0.4.0/apache-servicecomb-pack-distribution-0.4.0-src.zip.sha512)|[[Binary]](https://archive.apache.org/dist/servicecomb
 [...]
-|Apache ServiceComb Pack 0.3.0
|[[src]](https://archive.apache.org/dist/servicecomb/servicecomb-pack/0.3.0/apache-servicecomb-pack-distribution-0.3.0-src.zip)
 
[[asc]](https://archive.apache.org/dist/servicecomb/servicecomb-pack/0.3.0/apache-servicecomb-pack-distribution-0.3.0-src.zip.asc)
 
[[sha512]](https://archive.apache.org/dist/servicecomb/servicecomb-pack/0.3.0/apache-servicecomb-pack-distribution-0.3.0-src.zip.sha512)|[[Binary]](https://archive.apache.org/dist/servicecomb
 [...]
+| 版本号   | 源码   




   

[GitHub] [servicecomb-website] WillemJiang merged pull request #297: ServiceComb Pack Release 0.7.1

2022-08-08 Thread GitBox


WillemJiang merged PR #297:
URL: https://github.com/apache/servicecomb-website/pull/297


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[GitHub] [servicecomb-java-chassis] Vientu commented on a diff in pull request #3261: [SCB-2663]Support to update microservice properties to the registration center.

2022-08-08 Thread GitBox


Vientu commented on code in PR #3261:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/3261#discussion_r940817220


##
service-registry/registry-service-center/src/main/java/org/apache/servicecomb/serviceregistry/task/MicroserviceRegisterTask.java:
##
@@ -86,6 +86,24 @@ protected boolean doRegister() {
 if (!StringUtils.isEmpty(serviceId)) {
   // This microservice has been registered, so we just use the serviceId 
gotten from service center
   microservice.setServiceId(serviceId);
+
+  // Need to update microservice properties if we have modified or added 
properties of microservices.
+  Microservice microserviceTemp = new Microservice();

Review Comment:
   To support the gray deployment function。



##
service-registry/registry-service-center/src/main/java/org/apache/servicecomb/serviceregistry/task/MicroserviceRegisterTask.java:
##
@@ -86,6 +86,24 @@ protected boolean doRegister() {
 if (!StringUtils.isEmpty(serviceId)) {
   // This microservice has been registered, so we just use the serviceId 
gotten from service center
   microservice.setServiceId(serviceId);
+
+  // Need to update microservice properties if we have modified or added 
properties of microservices.
+  Microservice microserviceTemp = new Microservice();
+  
EnvAdapterManager.INSTANCE.processMicroserviceWithAdapters(microserviceTemp);
+  if (!microserviceTemp.getProperties().isEmpty()) {
+Map propertiesTemp = microserviceTemp.getProperties();
+if (srClient.getMicroservice(serviceId) != null) {
+  
microserviceTemp.setProperties(srClient.getMicroservice(serviceId).getProperties());
+  microserviceTemp.getProperties().putAll(propertiesTemp);

Review Comment:
   OK



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[GitHub] [servicecomb-java-chassis] Vientu commented on a diff in pull request #3261: [SCB-2663]Support to update microservice properties to the registration center.

2022-08-08 Thread GitBox


Vientu commented on code in PR #3261:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/3261#discussion_r940817106


##
clients/service-center-client/src/test/java/org/apache/servicecomb/service/center/client/ServiceCenterClientTest.java:
##
@@ -489,4 +490,22 @@ public void TestUpdateServiceSchema() throws IOException {
 
 Assertions.assertTrue(result);
   }
+
+  @Test
+  public void TestUpdateMicroserviceProperties() throws IOException {

Review Comment:
   OK



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[GitHub] [servicecomb-java-chassis] liubao68 closed pull request #3239: [#SCB-2648] ClientPoolManager#findByContext will cause memory leak

2022-08-08 Thread GitBox


liubao68 closed pull request #3239: [#SCB-2648] ClientPoolManager#findByContext 
will cause memory leak
URL: https://github.com/apache/servicecomb-java-chassis/pull/3239


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[servicecomb-java-chassis] branch master updated: [SCB-2665]Add the load balance governance (#3267)

2022-08-08 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 493fcdc1b [SCB-2665]Add the load balance governance  (#3267)
493fcdc1b is described below

commit 493fcdc1b8649afaf80db0ac14775939cd0cab73
Author: lbc97 <82015813+lb...@users.noreply.github.com>
AuthorDate: Mon Aug 8 21:21:56 2022 +0800

[SCB-2665]Add the load balance governance  (#3267)
---
 .../governance/GovernanceConfiguration.java| 12 +
 .../governance/handler/LoadBalanceHandler.java | 48 +
 .../governance/policy/LoadBalancerPolicy.java  | 30 +++
 .../properties/LoadBalanceProperties.java  | 33 
 .../servicecomb/loadbanlance/LoadBalance.java  | 30 +++
 .../servicecomb/loadbanlance/LoadBalanceImpl.java  | 30 +++
 .../governance/GovernancePropertiesTest.java   | 12 ++---
 .../servicecomb/governance/LoadBalancerTest.java   | 60 ++
 governance/src/test/resources/application.yaml | 12 -
 9 files changed, 260 insertions(+), 7 deletions(-)

diff --git 
a/governance/src/main/java/org/apache/servicecomb/governance/GovernanceConfiguration.java
 
b/governance/src/main/java/org/apache/servicecomb/governance/GovernanceConfiguration.java
index 3109ba3ad..a89ae12f7 100644
--- 
a/governance/src/main/java/org/apache/servicecomb/governance/GovernanceConfiguration.java
+++ 
b/governance/src/main/java/org/apache/servicecomb/governance/GovernanceConfiguration.java
@@ -25,6 +25,7 @@ import 
org.apache.servicecomb.governance.handler.FaultInjectionHandler;
 import org.apache.servicecomb.governance.handler.IdentifierRateLimitingHandler;
 import org.apache.servicecomb.governance.handler.InstanceBulkheadHandler;
 import org.apache.servicecomb.governance.handler.InstanceIsolationHandler;
+import org.apache.servicecomb.governance.handler.LoadBalanceHandler;
 import org.apache.servicecomb.governance.handler.RateLimitingHandler;
 import org.apache.servicecomb.governance.handler.RetryHandler;
 import 
org.apache.servicecomb.governance.handler.ext.AbstractCircuitBreakerExtension;
@@ -43,6 +44,7 @@ import 
org.apache.servicecomb.governance.properties.FaultInjectionProperties;
 import 
org.apache.servicecomb.governance.properties.IdentifierRateLimitProperties;
 import org.apache.servicecomb.governance.properties.InstanceBulkheadProperties;
 import 
org.apache.servicecomb.governance.properties.InstanceIsolationProperties;
+import org.apache.servicecomb.governance.properties.LoadBalanceProperties;
 import org.apache.servicecomb.governance.properties.MatchProperties;
 import org.apache.servicecomb.governance.properties.RateLimitProperties;
 import org.apache.servicecomb.governance.properties.RetryProperties;
@@ -102,6 +104,11 @@ public class GovernanceConfiguration {
 return new FaultInjectionProperties();
   }
 
+  @Bean
+  public LoadBalanceProperties loadBalanceProperties() {
+return new LoadBalanceProperties();
+  }
+
   // handlers configuration
   @Bean
   public BulkheadHandler bulkheadHandler(BulkheadProperties 
bulkheadProperties) {
@@ -113,6 +120,11 @@ public class GovernanceConfiguration {
 return new InstanceBulkheadHandler(instanceBulkheadProperties);
   }
 
+  @Bean
+  public LoadBalanceHandler loadBalanceHandler(LoadBalanceProperties 
loadBalanceProperties) {
+return new LoadBalanceHandler(loadBalanceProperties);
+  }
+
   @Bean
   public CircuitBreakerHandler circuitBreakerHandler(CircuitBreakerProperties 
circuitBreakerProperties,
   AbstractCircuitBreakerExtension circuitBreakerExtension,
diff --git 
a/governance/src/main/java/org/apache/servicecomb/governance/handler/LoadBalanceHandler.java
 
b/governance/src/main/java/org/apache/servicecomb/governance/handler/LoadBalanceHandler.java
new file mode 100644
index 0..b8eb58cd7
--- /dev/null
+++ 
b/governance/src/main/java/org/apache/servicecomb/governance/handler/LoadBalanceHandler.java
@@ -0,0 +1,48 @@
+/*
+ * 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 org.apache.servicecomb.governance.handler;
+

[GitHub] [servicecomb-java-chassis] liubao68 merged pull request #3267: [SCB-2665]Add the load balance governance

2022-08-08 Thread GitBox


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


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[GitHub] [servicecomb-java-chassis] trydofor commented on issue #3266: BUG zero-config failed to register(401) with handler-publickey-auth on

2022-08-08 Thread GitBox


trydofor commented on issue #3266:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/3266#issuecomment-1208106655

   > I think we can not use ProviderAuthHanlder for zero config. Because it 
needs to register public key to a registry and zero config has no centralized 
data repository.
   
   yes. the `onBootEvent` can not register public key to zero-config.
   so in my case, if using zero-config then must implement one of
   
   * multicast public-key and keep in jvm (multicast+caffeine)
   * have some centralized/distributed repo (hazelcast/redis)


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[servicecomb-java-chassis] branch master updated: [SCB-2664]fix findByContext may cause out of memory if not used in a … (#3268)

2022-08-08 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 cfecef012 [SCB-2664]fix findByContext may cause out of memory if not 
used in a … (#3268)
cfecef012 is described below

commit cfecef0129d28796907e750a903493bd01235af8
Author: liubao68 
AuthorDate: Mon Aug 8 20:53:06 2022 +0800

[SCB-2664]fix findByContext may cause out of memory if not used in a … 
(#3268)
---
 .../jaxrs/client/TestCodeFirstJaxrsReactive.java   | 56 ++
 .../foundation/vertx/client/ClientPoolManager.java |  8 ++--
 .../foundation/vertx/client/http/HttpClients.java  | 29 ++-
 .../vertx/server/TcpServerConnection.java  |  4 +-
 .../vertx/client/TestClientPoolManager.java| 16 +++
 5 files changed, 73 insertions(+), 40 deletions(-)

diff --git 
a/demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/TestCodeFirstJaxrsReactive.java
 
b/demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/TestCodeFirstJaxrsReactive.java
new file mode 100644
index 0..2fdaffe3e
--- /dev/null
+++ 
b/demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/TestCodeFirstJaxrsReactive.java
@@ -0,0 +1,56 @@
+/*
+ * 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 org.apache.servicecomb.demo.jaxrs.client;
+
+import java.util.concurrent.CompletableFuture;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicInteger;
+
+import org.apache.servicecomb.demo.CategorizedTestCase;
+import org.apache.servicecomb.demo.TestMgr;
+import org.apache.servicecomb.provider.pojo.RpcReference;
+import org.springframework.stereotype.Component;
+
+@Component
+public class TestCodeFirstJaxrsReactive implements CategorizedTestCase {
+  interface AddOperation {
+CompletableFuture add(int a, int b);
+  }
+
+  @RpcReference(microserviceName = "jaxrs", schemaId = "codeFirst")
+  AddOperation addOperation;
+
+  @Override
+  public void testAllTransport() throws Exception {
+final int count = 10;
+CountDownLatch latch = new CountDownLatch(count);
+AtomicInteger result = new AtomicInteger(0);
+
+for (int i = 0; i < count; i++) {
+  new Thread(() -> addOperation.add(1, 2)
+  .whenComplete((r, e) -> addOperation.add(r, r).whenComplete((r1, e1) 
-> {
+result.addAndGet(r1);
+latch.countDown();
+  }))).start();
+}
+
+latch.await(3, TimeUnit.SECONDS);
+TestMgr.check(count * 6, result.get());
+  }
+}
diff --git 
a/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/client/ClientPoolManager.java
 
b/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/client/ClientPoolManager.java
index dd99b006a..900f994c1 100644
--- 
a/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/client/ClientPoolManager.java
+++ 
b/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/client/ClientPoolManager.java
@@ -95,9 +95,9 @@ public class ClientPoolManager {
 return clientPool;
   }
 
-  // this will make "client.thread-count" bigger than which in 
microservice.yaml
-  // maybe it's better to remove "client.thread-count", just use 
"rest/highway.thread-count"
-  return createClientPool(currentContext);
+  // Maybe executed in a call back of a reactive call.
+  // The Context is created in a non-event thread and passed to the event 
loop
+  // thread by vert.x.
 }
 
 // not in correct context:
@@ -120,7 +120,7 @@ public class ClientPoolManager {
   }
 
   private void assertPoolsInitialized() {
-if (pools.size() == 0) {
+if (pools.isEmpty()) {
   throw new IllegalStateException("client pool not initialized 
successfully when making calls."
   + "Please check if system boot up is ready or some errors happened 
when startup.");
 }
diff --git 

[GitHub] [servicecomb-java-chassis] liubao68 merged pull request #3268: [SCB-2664]fix findByContext may cause out of memory if not used in a …

2022-08-08 Thread GitBox


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


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[GitHub] [servicecomb-java-chassis] codecov-commenter commented on pull request #3267: add loadbalance governance

2022-08-08 Thread GitBox


codecov-commenter commented on PR #3267:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/3267#issuecomment-1208082334

   # 
[Codecov](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/3267?src=pr=h1_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 Report
   > Merging 
[#3267](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/3267?src=pr=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 (507e1b4) into 
[master](https://codecov.io/gh/apache/servicecomb-java-chassis/commit/31ef85f60bab86cadf25a7c794e53d4495b70b5f?el=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 (31ef85f) will **increase** coverage by `0.01%`.
   > The diff coverage is `100.00%`.
   
   > :exclamation: Current head 507e1b4 differs from pull request most recent 
head e6a5b75. Consider uploading reports for the commit e6a5b75 to get more 
accurate results
   
   ```diff
   @@ Coverage Diff  @@
   ## master#3267  +/-   ##
   
   + Coverage 77.44%   77.45%   +0.01% 
 Complexity 1439 1439  
   
 Files  1641 1646   +5 
 Lines 4357543596  +21 
 Branches   3665 3665  
   
   + Hits  3374633767  +21 
 Misses 8309 8309  
 Partials   1520 1520  
   ```
   
   
   | [Impacted 
Files](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/3267?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation)
 | Coverage Δ | |
   |---|---|---|
   | 
[...ervicecomb/governance/GovernanceConfiguration.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/3267/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Z292ZXJuYW5jZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvZ292ZXJuYW5jZS9Hb3Zlcm5hbmNlQ29uZmlndXJhdGlvbi5qYXZh)
 | `100.00% <100.00%> (ø)` | |
   | 
[...icecomb/governance/handler/LoadBalanceHandler.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/3267/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Z292ZXJuYW5jZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvZ292ZXJuYW5jZS9oYW5kbGVyL0xvYWRCYWxhbmNlSGFuZGxlci5qYXZh)
 | `100.00% <100.00%> (ø)` | |
   | 
[...vicecomb/governance/policy/LoadBalancerPolicy.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/3267/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Z292ZXJuYW5jZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvZ292ZXJuYW5jZS9wb2xpY3kvTG9hZEJhbGFuY2VyUG9saWN5LmphdmE=)
 | `100.00% <100.00%> (ø)` | |
   | 
[...b/governance/properties/LoadBalanceProperties.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/3267/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Z292ZXJuYW5jZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvZ292ZXJuYW5jZS9wcm9wZXJ0aWVzL0xvYWRCYWxhbmNlUHJvcGVydGllcy5qYXZh)
 | `100.00% <100.00%> (ø)` | |
   | 
[...g/apache/servicecomb/loadbanlance/LoadBalance.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/3267/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Z292ZXJuYW5jZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvbG9hZGJhbmxhbmNlL0xvYWRCYWxhbmNlLmphdmE=)
 | `100.00% <100.00%> (ø)` | |
   | 
[...ache/servicecomb/loadbanlance/LoadBalanceImpl.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/3267/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Z292ZXJuYW5jZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvbG9hZGJhbmxhbmNlL0xvYWRCYWxhbmNlSW1wbC5qYXZh)
 | `100.00% <100.00%> (ø)` | |
   | 
[.../servicecomb/registry/discovery/DiscoveryTree.java](https://codecov.io/gh/apache/servicecomb-java-chassis/pull/3267/diff?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=The+Apache+Software+Foundation#diff-Zm91bmRhdGlvbnMvZm91bmRhdGlvbi1yZWdpc3RyeS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvc2VydmljZWNvbWIvcmVnaXN0cnkvZGlzY292ZXJ5L0Rpc2NvdmVyeVRyZWUuamF2YQ==)
 | `96.49% <0.00%> (-3.51%)` | :arrow_down: |
   | 

[servicecomb-service-center] branch master updated: [feat]Upgrade 3rd party version (#1327)

2022-08-08 Thread littlecui
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new d291b0a1 [feat]Upgrade 3rd party version (#1327)
d291b0a1 is described below

commit d291b0a1de11d82df1490ff4f68b7192b2c24c5d
Author: little-cui 
AuthorDate: Mon Aug 8 17:54:12 2022 +0800

[feat]Upgrade 3rd party version (#1327)
---
 go.mod | 16 +++-
 go.sum | 11 +++
 2 files changed, 22 insertions(+), 5 deletions(-)

diff --git a/go.mod b/go.mod
index e100c100..a2521cb3 100644
--- a/go.mod
+++ b/go.mod
@@ -3,14 +3,20 @@ module github.com/apache/servicecomb-service-center
 replace (
github.com/apache/servicecomb-service-center/api => ./api
github.com/apache/servicecomb-service-center/eventbase => ./eventbase
+   // github.com/openzipkin/zipkin-go-opentracing depends on
github.com/apache/thrift => github.com/apache/thrift 
v0.0.0-20180125231006-3d556248a8b9
+   // beego depends on
+   go.opentelemetry.io/otel => go.opentelemetry.io/otel v0.20.0
+   go.opentelemetry.io/otel/sdk => go.opentelemetry.io/otel/sdk v0.20.0
+   go.opentelemetry.io/otel/trace => go.opentelemetry.io/otel/trace v0.20.0
+   github.com/go-logr/logr => github.com/go-logr/logr v0.2.0
 )
 
 require (
github.com/NYTimes/gziphandler v1.1.1
github.com/apache/servicecomb-kie v0.2.1-0.20220730063957-66e6f5efd400
github.com/apache/servicecomb-service-center/eventbase 
v0.0.0-20220120070230-26997eb876ca
-   github.com/beego/beego/v2 v2.0.2
+   github.com/beego/beego/v2 v2.0.4
github.com/cheggaaa/pb v1.0.25
github.com/deckarep/golang-set v1.8.0
github.com/elithrar/simple-scrypt v1.3.0
@@ -89,7 +95,7 @@ require (
github.com/go-chassis/sc-client v0.6.1-0.20210918130508-2b9daad232da // 
indirect
github.com/go-chassis/seclog v1.3.1-0.20210917082355-52c40864f240 // 
indirect
github.com/go-logfmt/logfmt v0.5.0 // indirect
-   github.com/go-logr/logr v0.2.0 // indirect
+   github.com/go-logr/logr v1.2.3 // indirect
github.com/go-openapi/jsonpointer v0.19.3 // indirect
github.com/go-openapi/jsonreference v0.19.3 // indirect
github.com/go-openapi/swag v0.19.5 // indirect
@@ -150,13 +156,13 @@ require (
go.etcd.io/etcd/server/v3 v3.5.4 // indirect
go.opentelemetry.io/contrib v0.20.0 // indirect

go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc 
v0.20.0 // indirect
-   go.opentelemetry.io/otel v0.20.0 // indirect
+   go.opentelemetry.io/otel v1.7.0 // indirect
go.opentelemetry.io/otel/exporters/otlp v0.20.0 // indirect
go.opentelemetry.io/otel/metric v0.20.0 // indirect
-   go.opentelemetry.io/otel/sdk v0.20.0 // indirect
+   go.opentelemetry.io/otel/sdk v1.7.0 // indirect
go.opentelemetry.io/otel/sdk/export/metric v0.20.0 // indirect
go.opentelemetry.io/otel/sdk/metric v0.20.0 // indirect
-   go.opentelemetry.io/otel/trace v0.20.0 // indirect
+   go.opentelemetry.io/otel/trace v1.7.0 // indirect
go.opentelemetry.io/proto/otlp v0.7.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
diff --git a/go.sum b/go.sum
index 6590fc44..773d3370 100644
--- a/go.sum
+++ b/go.sum
@@ -99,6 +99,8 @@ github.com/apache/servicecomb-kie 
v0.2.1-0.20220730063957-66e6f5efd400 h1:zvkDWV
 github.com/apache/servicecomb-kie v0.2.1-0.20220730063957-66e6f5efd400/go.mod 
h1:64faZcMJTiTzcIFBO+4/i2TlzfILq1PUoB5DF61J+Bk=
 github.com/apache/thrift v0.0.0-20180125231006-3d556248a8b9 
h1:ymi1nHra1RZXqjg5xvka4YVyK+3uKPk2B9HUlPRIiBc=
 github.com/apache/thrift v0.0.0-20180125231006-3d556248a8b9/go.mod 
h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
+github.com/apache/thrift v0.13.0 
h1:5hryIiq9gtn+MiLVn0wP37kb/uTeRZgN08WoCsAhIhI=
+github.com/apache/thrift v0.13.0/go.mod 
h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
 github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod 
h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
 github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod 
h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
 github.com/armon/go-metrics v0.3.10/go.mod 
h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc=
@@ -114,6 +116,8 @@ github.com/aws/aws-sdk-go v1.34.28/go.mod 
h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/
 github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod 
h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
 github.com/beego/beego/v2 v2.0.2 
h1:Mx2MWMHJN1oFBHewHWyIhR25tXB9IPceIK8X7OuMdZM=
 github.com/beego/beego/v2 v2.0.2/go.mod 
h1:4pxstbxq+2qE8IUzFsVK8X9BsqfRjbp7ohbapTrTLho=
+github.com/beego/beego/v2 v2.0.4 
h1:1NjpVkcqYVdKE06VJTQUVzsgZqFcaj0MqjHna57bWsA=
+github.com/beego/beego/v2 v2.0.4/go.mod 
h1:21YTlo+jRYqrM/dLC0knzmo9C25x0pqddoKqy8kxev8=
 

[GitHub] [servicecomb-service-center] little-cui merged pull request #1327: [feat]Upgrade 3rd party version

2022-08-08 Thread GitBox


little-cui merged PR #1327:
URL: https://github.com/apache/servicecomb-service-center/pull/1327


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[GitHub] [servicecomb-java-chassis] liubao68 commented on a diff in pull request #3261: [SCB-2663]Support to update microservice properties to the registration center.

2022-08-08 Thread GitBox


liubao68 commented on code in PR #3261:
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/3261#discussion_r940033833


##
service-registry/registry-service-center/src/main/java/org/apache/servicecomb/serviceregistry/task/MicroserviceRegisterTask.java:
##
@@ -86,6 +86,24 @@ protected boolean doRegister() {
 if (!StringUtils.isEmpty(serviceId)) {
   // This microservice has been registered, so we just use the serviceId 
gotten from service center
   microservice.setServiceId(serviceId);
+
+  // Need to update microservice properties if we have modified or added 
properties of microservices.
+  Microservice microserviceTemp = new Microservice();
+  
EnvAdapterManager.INSTANCE.processMicroserviceWithAdapters(microserviceTemp);
+  if (!microserviceTemp.getProperties().isEmpty()) {
+Map propertiesTemp = microserviceTemp.getProperties();
+if (srClient.getMicroservice(serviceId) != null) {
+  
microserviceTemp.setProperties(srClient.getMicroservice(serviceId).getProperties());
+  microserviceTemp.getProperties().putAll(propertiesTemp);

Review Comment:
   srClient.getMicroservice(serviceId)  is a remote RPC call, use the result 
above



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



svn commit: r56170 - /release/servicecomb/KEYS

2022-08-08 Thread ningjiang
Author: ningjiang
Date: Mon Aug  8 09:17:15 2022
New Revision: 56170

Log:
Added KEYS from dev/servicecomb to release/servicecomb

Modified:
release/servicecomb/KEYS

Modified: release/servicecomb/KEYS
==
--- release/servicecomb/KEYS (original)
+++ release/servicecomb/KEYS Mon Aug  8 09:17:15 2022
@@ -98,6 +98,162 @@ yZ/vv8enrX1JX9NDlovZ6olLZeSfnY2aZp93b6eh
 =SLFO
 -END PGP PUBLIC KEY BLOCK-
 -BEGIN PGP PUBLIC KEY BLOCK-
+Version: GnuPG v1
+
+mQINBF1ojpYBEAD3/eOzKouAn2O0FIUPmzOeXjwAfzo8s7Q17fCCsLRsrrZdR4o9
+XF2zra5TCBwVFdaYtljP4bnAdcwHIwVlU1w6f3FIhxBTP3NEdqZsEkug2eVf2JXa
+MSlNlLixKAKbtamAt91R929+D8Lvd6SUCgoLzv36MnnEqdvkayCwfgChWnIC9iKC
+dNqTdLGNYqEW0ndIPnWe39ryqUqhKocvHPsLs5EpJu2/NdukT2W4JY/EipOosmsl
+q7QNL14tMzjslHe7WWjV1RR1JcJYVtl11S60f+YnnLBmznF6fGF4w1QiGHqO+vXU
+CSNqENTGTKGpiXc7HUzZVS1POvUmelEFScSw6uXdGKa6TZUf20PE0QqDT3bp9M1L
+V8S7VX7sZpE7tXCx//T36InX2wir6xuV3SDvPWo6Tx49eLPCaEUVaIt21Seaew/A
+VMh9pTuICJDYa7aJJz84Eee6ZWBGP/APl8zxcE2+npaOLWINXechB17GBREizy3y
++LsvH3h8RfPKZcnU+FiOX3GEVagyfoh0rjtnDlF8qTldIncbcSfkhZR7q+eN4hsE
+1gcwDFIgKZeh+WXLIp4TJUvlxJEC7+fRxQBJnSS02zLC/8ZOJI8TEwH0I047el1p
+DzDnBaG25YgbKgYxX7NpPFO36YrdKDjXCodEcdBXFidd+ozMBDcrKrP8FwARAQAB
+tCl4aWFvbGlhbmcgdGlhbiA8dGlhbnhpYW9saWFuZ0BhcGFjaGUub3JnPokCOAQT
+AQIAIgUCXWiOlgIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQzuuveiSN
+cc27AA//ZpOibNhZRMHpMszdHLS2pLJWQIcRIVKTnznpAr2Mky/IR2Lv07PG3XSz
+xDXRSyaPT3T5H9yDRkknMiVZVuwwTRSQoVIkHBAglGIwMpeJ4LPmw+Hi2F7QI6PO
+NfmUIs8HclvahJagHAdPhL+hqQPn/2PV++7g2YuyFlWUzgR+ZiuAV+OFEjqMtRzE
+yVgj10CUeIJdVNSdRcnu1oOEbcIpuIzsj4slIZqhce4qs8phl/fq2h+9RMXb8eTg
+L2cT6Ei0DOObGJ2J+Pup7WM9cFeYfkczEcKl/sLmnTFVZojsSXd6Ouon4G7hr2fD
+IV1VXOUtzseMxyvhtH4fKiEMfGQggKhxpUwpZLgkgi7vTWSS8o2r6xawdQiCAYcp
+XkhmwqajebsFfKbozdbK4l6hgzdmoPI2fed/RRP/hbF2nbcG4/4idLyz/hJkSDGH
+7z70Ic3MzEFeKIDG+3UFsGDT1PNm2vdO6+UOO2yYuumTn0bMrEHtQBUDKN5yX3vP
+bHEN3flGU5euTFuFXTYrMWQr/UupUOjvjot/hgs6ZIK5jBHm6xOtkN3XaZuZ0+yV
+3eT1VetLacwcjUYtCZQGxxsL2LYsTzPFtUInjLfq7sA56ImKUDQiFdA16BV4SqhU
+01SivI+3Vhs6t2N4eLIo8ELDi9uJ74uCncB+KAsB2R3LrPS2rAa5Ag0EXWiOlgEQ
+ALrzpvmWUBG5q1+HnwHz/nurIX+0wmZtmp9KIl/LBiJOLu8G5/B5nX24LMlL/smV
+lv2NJB3klrXLLe8GXa8zRJTzp/q9qpRwf+zQU/JnWPCvFn2htHdUso4cmuiCtnll
+yAveS7K4mgWEjPPv8JJ24uAm6iIei2I+FP1T6JfT3AoDc19DWYNmQl4xFPBoE0aD
+MOLSRdifzWgcOP5Be8T4SPPk55W6lofX634Lx/N0Cu5gsE6uRxZqK/ZZMc0fmJpT
+XDYTAIMvRFxCEcYNiHyIxL7orJmXUfVao3KVRb/bVNMQld5cu1WkrZrArPWaQG9r
+eXKQNROCUVq4ImF8m1nrTU0iZ0CahfpXdV3kmlnfK5IY4sm5RqCfIiimzTHpE1i9
+DmjXMNbtIK+CYVil8ARARzYwNdA8saVRyR8AvvrvhMRWcHnO5csC7/PYaWpqxiyS
+j13Qg3g8vA/swFCqOoljOX2N6Nd8hKATzZzAjEQL3h5VUXfGnXmVR4SexXOloCMA
+DWUrcO9/oF60+H1tpmwCEO9n970hiMcPjh1IU/Rsxxnklkzz89tXBT3XZ+bQG/bL
+FFO3msc3jJrYxrizauykV2aqznSjYmWJx/pLHJ+DSlkuLSEO6P0KzaXMRaXIB7ni
+Gkjm6s42RgA1hBBBghtS8lHRjgwIPvUB4MhiGGydTjzzABEBAAGJAh8EGAECAAkF
+Al1ojpYCGwwACgkQzuuveiSNcc2pag//a4jRbtJKejl4DEM9JpnYyMYlQpixx20M
+hnFcDkUgAFpG7I0X9uERNEmQXi9kcfkgYGQRLUCWe9vKTXUAYpXIJA36OJmk+C1R
+AW+U+QhcHBf2UNYpu603dJyMOXeaINaZutSCQT2DvZeRAZG7FWjKHGUnG6Psv+H4
+cb1N8GfNlo0ClMOCKrYkyT5qqdizMJYehtjUYIcWVsCQ47psbI+0MnNKUenDXxGo
+/HI3bahSMMg9KYJNNPg37sHTnT3469uAsH+3y/Tz0gTdn1nDKU+TTxZcIOpmtvUf
+9oqeI+mjABL7KW6p5/vUyXO1CAn22rISgF6WPBZBjktm7BuQEqUyo/C/PCA1lF2J
+mIH5WVR5dSw+Q9REjd7cFOiAfecqNCo/jKv3KVdDXc0/c5bE04c7dq1gmJ6pCgEp
+SLfYPniQuHGS9P3XswHiVej5sLVby4QTtFxyVRUAXiKFtrdvj9Y2fxkA7+2qQaPN
+U7KKa2oY5zFuLMyxvCrcPqtyXaKPeR6Pikyi7qG3XkQxbHCU2hQc3Ipma1nb4+P9
++OIrdRevWuZGSeKGGK/KsbFO8eU4eNvpMR1t0Gb322IptsYgl4sP1AlfbcfjbTCl
+j4vgXfbL4qlSmlBwc6yHn+S6XmSGL2EUz2k/zQK/dfxkJSVnniFNZAaWONXk/zzB
+4F3Gx8yZslQ=
+=N0TT
+-END PGP PUBLIC KEY BLOCK-
+-BEGIN PGP PUBLIC KEY BLOCK-
+Version: GnuPG v1
+
+mQINBF2xT4IBEADF34jubOC9QD8p20wSi9iMYURzU6oAbt/8fdxUfWpsvbzyhDmf
+7QPJ3e8fLLPkdvR2AS88wkGPQRPwd3ErJt2HaHTQWbzlZBgDfzbwAPP6WLyc1009
+urz89V0ErX8/D8CRJO5mw9FhKw+cSOjmrWwI6e7IbfP1PGrKDzq0oQmIHmmFlcEU
+D+jXWajpWsBOuJCotjyQY6LCPtHDKCmMFxgcIoEoInR6gZ3H9Rrn93xVbpKXsy71
+Ih+tSyNCwdcE01Z30iWIte71qTMMygsMCOvhO9Y4Gwjqzfm6Bw+GQbgq7udYvTJA
+5oCa4SxGTkz2Pz6TQk94rEwA9mAO42mSWkdaydpm55XetSjKHEtqnQ5JOsFr0jhU
+W0GManrHCYXIW9eLEpy/+j1bg3DsPGcgpzaAWVmjyTFq9Fo5aOKwuCE2GaOLF++d
+ajh/GcEXXJjTBAwW39O3B49QG6HmCkI6g5ndeuXvd6PWsEX/6WO586NZlxtSqDTA
+sUQ/+ufRfI7hhr81fXR/QTji2AKH5emDaW5ntMS8nye87so2kvodWUno7gsAQFQ9
+Rc4nHEHJV5FPJzog1WyOeU0sZdJKIJ/sZhfqR8DpDXCc6kgkH5eB3Yg7Sup4xdYr
+xTB5Ybi+Ncq2qIn+wyTopryzxF1kfuCPGnv5uIYfqTnHKdaadZwtXv6OLwARAQAB
+tC1saXViYW8gKENPREUgU0lHTklORyBLRVkpIDxsaXViYW9AYXBhY2hlLm9yZz6J
+AjgEEwECACIFAl2xT4ICGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEEAs
+sPd2pQD6IuwP/RBueUO6JHgP/RtcfHPp9FCJlKM+JhA5ZvRieAcFVv5wB+IXCDpd
+8XLmIO2flJs77Emu/N1V9OhHEBNy7zpsUC9Hl3QQIp0fCKG3VfJaD0QjpfTeplqt
+GKsSmXTnmXoR9fO8PAgDLO/uq8xPDodioyWkbNJDbvAWDIGnjEawaaZ5jIFf+7sa
+3m/59yk5bKxYvp7P3WJIfQKhqL34DAi1Saby8k+o9AIxfgnjjyFzsg+Fe/nxLrIn
+VSsoKUIav/Klw2Xm7Z3kCd3JnLXmME0eEec9zSrptiJIu9qe3UtKqM9gK93noZUV
+Y6/6tWViTlt5KvikCLCLkp162Ivi+BWiRhBroUo9GlOg+CGTcBlipptS0L/df/zP

[GitHub] [servicecomb-service-center] little-cui opened a new pull request, #1327: [feat]Upgrade 3rd party version

2022-08-08 Thread GitBox


little-cui opened a new pull request, #1327:
URL: https://github.com/apache/servicecomb-service-center/pull/1327

   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 `go build` `go test` `go fmt` `go vet` 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).
- [ ] Never comment source code, delete it.
- [ ] UT should has "context, subject, expected result" result as test case 
name, when you call t.Run().
   ---
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[servicecomb-service-center] branch master updated: refactor policy validator (#1323)

2022-08-08 Thread littlecui
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new b69e249f refactor policy validator (#1323)
b69e249f is described below

commit b69e249f68e62f9d560c0c4a4568759e5801b688
Author: Shawn 
AuthorDate: Mon Aug 8 16:55:03 2022 +0800

refactor policy validator (#1323)
---
 datasource/mongo/ms_test.go|  1 -
 .../request/register_intance_json.sh   |  3 +-
 go.sum | 10 +++
 server/bootstrap/bootstrap.go  |  3 +-
 server/ext/policy/buitin.go| 51 +++
 server/resource/gov/gov_resource.go| 25 
 server/resource/gov/gov_resource_test.go   | 30 ++---
 server/server.go   |  4 +-
 server/service/{gov => grc}/config_distributor.go  |  2 +-
 .../{gov => grc}/config_distributor_test.go| 27 
 server/service/{gov => grc}/kie/kie_distributor.go | 75 --
 server/service/{gov => grc}/mock/mock.go   |  8 +--
 server/service/{gov => grc}/policy.go  | 31 +
 server/service/{gov => grc}/policy_test.go | 12 ++--
 server/service/{gov/kie => grc}/validate.go| 33 ++
 15 files changed, 191 insertions(+), 124 deletions(-)

diff --git a/datasource/mongo/ms_test.go b/datasource/mongo/ms_test.go
index ae6f99a7..ada39f57 100644
--- a/datasource/mongo/ms_test.go
+++ b/datasource/mongo/ms_test.go
@@ -138,4 +138,3 @@ func TestSyncMicroService(t *testing.T) {
})
})
 }
-
diff --git a/examples/service_center/request/register_intance_json.sh 
b/examples/service_center/request/register_intance_json.sh
index da799f61..a21aaf79 100644
--- a/examples/service_center/request/register_intance_json.sh
+++ b/examples/service_center/request/register_intance_json.sh
@@ -27,8 +27,9 @@ Postman-Token: bf33f47f-acfe-76fe-8c53-d1f79a46b246
"instance": 
{
"endpoints": [
-   "ase://127.0.0.1:99841"
+   "grpc://127.0.0.1:99841"
],
+   "virtualAddress": "xxx.xxx.xxx.local:8080"
"hostName":"ase",
"status":"UP",
"environment":"production",
diff --git a/go.sum b/go.sum
index 3165904f..6590fc44 100644
--- a/go.sum
+++ b/go.sum
@@ -264,6 +264,7 @@ github.com/go-chassis/cari 
v0.0.0-20201210041921-7b6fbef2df11/go.mod h1:MgtsEI0A
 github.com/go-chassis/cari v0.4.0/go.mod 
h1:av/19fqwEP4eOC8unL/z67AAbFDwXUCko6SKa4Avrd8=
 github.com/go-chassis/cari v0.5.0/go.mod 
h1:av/19fqwEP4eOC8unL/z67AAbFDwXUCko6SKa4Avrd8=
 github.com/go-chassis/cari v0.5.1-0.20210823023004-74041d1363c4/go.mod 
h1:av/19fqwEP4eOC8unL/z67AAbFDwXUCko6SKa4Avrd8=
+github.com/go-chassis/cari v0.5.1-0.20220216075429-46c79de3311f/go.mod 
h1:tKTzguHTGohMCgkcWNZWtA4TwfcsJrIXpfYxsQtb7uw=
 github.com/go-chassis/cari v0.6.0 
h1:cwBchwt9L8JOyO6QkzXFAsseMJ10zVSiVK8eDLD0HkA=
 github.com/go-chassis/cari v0.6.0/go.mod 
h1:mSDRCOQXGmlD69A6NG0hsv0UP1xbVPtL6HCGI6X1tqs=
 github.com/go-chassis/foundation v0.2.2-0.20201210043510-9f6d3de40234/go.mod 
h1:2PjwqpVwYEVaAldl5A58a08viH8p27pNeYaiE3ZxOBA=
@@ -272,16 +273,20 @@ github.com/go-chassis/foundation v0.3.0/go.mod 
h1:2PjwqpVwYEVaAldl5A58a08viH8p27
 github.com/go-chassis/foundation v0.4.0 
h1:z0xETnSxF+vRXWjoIhOdzt6rywjZ4sB++utEl4YgWEY=
 github.com/go-chassis/foundation v0.4.0/go.mod 
h1:6NsIUaHghTFRGfCBcZN011zl196F6OR5QvD9N+P4oWU=
 github.com/go-chassis/go-archaius v1.5.1/go.mod 
h1:QPwvvtBxvwiC48rmydoAqxopqOr93RCQ6syWsIkXPXQ=
+github.com/go-chassis/go-archaius v1.5.2-0.20210301074935-e4694f6b077b/go.mod 
h1:qjfG7opNF/QTzj7SyVIn/eIawaPhl7xeGgg8kxzFsDw=
 github.com/go-chassis/go-archaius v1.5.6 
h1:MF/yE9Mj51slccW6EmZInjFCmyfuhltRz9eu5Na4i88=
 github.com/go-chassis/go-archaius v1.5.6/go.mod 
h1:WsqeDyZsCR2qGdWEAEpywS1taxCUHRF4hPSHVMfnAkc=
 github.com/go-chassis/go-chassis-extension/protocol/grpc 
v0.0.0-20220208081606-003611df45da 
h1:DoPFX1Fy3MLEb1RvgchInKspm8DkxQhrvZ5kOcjeZAs=
 github.com/go-chassis/go-chassis-extension/protocol/grpc 
v0.0.0-20220208081606-003611df45da/go.mod 
h1:btid7R4NKuET4BCUkR74CL5EP0hk3J0jXSByjzwd9JM=
 github.com/go-chassis/go-chassis/v2 v2.3.0/go.mod 
h1:iyJ2DWSkqfnCmad/0Il9nXWHaob7RcwPGlIDRNxccH0=
+github.com/go-chassis/go-chassis/v2 
v2.3.1-0.20211217084436-360a6a6a0ef3/go.mod 
h1:oMnRaz2P+OPTtEfh2HEuiF9YzdYHQrNVPXdnbKzKO9w=
 github.com/go-chassis/go-chassis/v2 v2.4.0 
h1:BMmOS2zM/E8KDUoCNpSqalhFsW9fRjwh2Pz5wk1EGC8=
 github.com/go-chassis/go-chassis/v2 v2.4.0/go.mod 
h1:oMnRaz2P+OPTtEfh2HEuiF9YzdYHQrNVPXdnbKzKO9w=
 github.com/go-chassis/go-restful-swagger20 v1.0.3 
h1:kWfeLwMwJZVkXP1zNyFpkmR41UZ55UTcOptTteXhvEs=
 github.com/go-chassis/go-restful-swagger20 v1.0.3/go.mod 

[GitHub] [servicecomb-service-center] little-cui merged pull request #1323: refactor policy validator

2022-08-08 Thread GitBox


little-cui merged PR #1323:
URL: https://github.com/apache/servicecomb-service-center/pull/1323


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[GitHub] [servicecomb-service-center] tianxiaoliang commented on a diff in pull request #1323: refactor policy validator

2022-08-08 Thread GitBox


tianxiaoliang commented on code in PR #1323:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1323#discussion_r939988185


##
server/bootstrap/bootstrap.go:
##
@@ -60,7 +60,8 @@ import (
_ "github.com/apache/servicecomb-service-center/server/rest/admin"
 
//governance
-   _ "github.com/apache/servicecomb-service-center/server/service/gov/kie"
+   _ "github.com/apache/servicecomb-service-center/server/ext/policy"
+   _ "github.com/apache/servicecomb-service-center/server/service/grc/kie"

Review Comment:
   rest api已经路径是gov了,考虑还是一致,但是能力层,还是取了个正宗的英文缩写



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[GitHub] [servicecomb-service-center] tianxiaoliang commented on a diff in pull request #1323: refactor policy validator

2022-08-08 Thread GitBox


tianxiaoliang commented on code in PR #1323:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1323#discussion_r939987639


##
server/ext/policy/buitin.go:
##
@@ -0,0 +1,51 @@
+package policy
+
+import (
+   "github.com/apache/servicecomb-service-center/server/service/grc"
+   "k8s.io/kube-openapi/pkg/validation/spec"
+)
+
+func init() {
+   grc.RegisterPolicySchema("loadbalancer", {

Review Comment:
   server/service/grc/validate.go  走的老逻辑



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[GitHub] [servicecomb-service-center] tianxiaoliang commented on a diff in pull request #1323: refactor policy validator

2022-08-08 Thread GitBox


tianxiaoliang commented on code in PR #1323:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1323#discussion_r939979379


##
server/ext/policy/buitin.go:
##
@@ -0,0 +1,51 @@
+package policy
+
+import (
+   "github.com/apache/servicecomb-service-center/server/service/grc"
+   "k8s.io/kube-openapi/pkg/validation/spec"
+)
+
+func init() {
+   grc.RegisterPolicySchema("loadbalancer", {
+   SchemaProps: spec.SchemaProps{
+   Type: []string{"object"},
+   Required: []string{"rule"},
+   Properties: map[string]spec.Schema{
+   "rule": {
+   SchemaProps: spec.SchemaProps{Type: 
[]string{"string"}}},
+   },
+   }})
+   grc.RegisterPolicySchema("circuitBreaker", {

Review Comment:
   其实也可以。我开放open api后,就可以拿json格式提交了



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[GitHub] [servicecomb-service-center] little-cui commented on a diff in pull request #1323: refactor policy validator

2022-08-08 Thread GitBox


little-cui commented on code in PR #1323:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1323#discussion_r939976285


##
server/ext/policy/buitin.go:
##
@@ -0,0 +1,51 @@
+package policy
+
+import (
+   "github.com/apache/servicecomb-service-center/server/service/grc"
+   "k8s.io/kube-openapi/pkg/validation/spec"
+)
+
+func init() {
+   grc.RegisterPolicySchema("loadbalancer", {

Review Comment:
   少了ratelimiting和retry



##
server/bootstrap/bootstrap.go:
##
@@ -60,7 +60,8 @@ import (
_ "github.com/apache/servicecomb-service-center/server/rest/admin"
 
//governance
-   _ "github.com/apache/servicecomb-service-center/server/service/gov/kie"
+   _ "github.com/apache/servicecomb-service-center/server/ext/policy"
+   _ "github.com/apache/servicecomb-service-center/server/service/grc/kie"

Review Comment:
   resource层也统一叫grc吧



##
server/ext/policy/buitin.go:
##
@@ -0,0 +1,51 @@
+package policy
+
+import (
+   "github.com/apache/servicecomb-service-center/server/service/grc"
+   "k8s.io/kube-openapi/pkg/validation/spec"
+)
+
+func init() {
+   grc.RegisterPolicySchema("loadbalancer", {
+   SchemaProps: spec.SchemaProps{
+   Type: []string{"object"},
+   Required: []string{"rule"},
+   Properties: map[string]spec.Schema{
+   "rule": {
+   SchemaProps: spec.SchemaProps{Type: 
[]string{"string"}}},
+   },
+   }})
+   grc.RegisterPolicySchema("circuitBreaker", {

Review Comment:
   这些能用yaml配置描述吗



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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



[servicecomb-website] branch asf-site updated: Publish the website of ServiceComb

2022-08-08 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


The following commit(s) were added to refs/heads/asf-site by this push:
 new 316054dd Publish the website of ServiceComb
316054dd is described below

commit 316054dd30d1fcbbb8e9b461cc18e03e06d9d272
Author: Willem Jiang 
AuthorDate: Mon Aug 8 15:41:44 2022 +0800

Publish the website of ServiceComb
---
 content/feed.xml  |   2 +-
 content/release/pack-release-guide/index.html | 103 ---
 content/sitemap.xml   | 112 +-
 3 files changed, 108 insertions(+), 109 deletions(-)

diff --git a/content/feed.xml b/content/feed.xml
index 87f3a5b0..d85d5659 100644
--- a/content/feed.xml
+++ b/content/feed.xml
@@ -1,4 +1,4 @@
-http://www.w3.org/2005/Atom; >https://jekyllrb.com/; 
version="3.9.0">Jekyll2022-08-08T15:22:36+08:00/feed.xmlApache ServiceCombThe homepage of 
ServiceComb{name=nil, 
avatar= [...]
+http://www.w3.org/2005/Atom; >https://jekyllrb.com/; 
version="3.9.0">Jekyll2022-08-08T15:39:39+08:00/feed.xmlApache ServiceCombThe homepage of 
ServiceComb{name=nil, 
avatar= [...]
 
 
p本次讲座得到广东工业大学计算机院学生会同学们的鼎力支持和参与。报名通道开放后,报名人数迅速达到150+,活动放在学校报告厅举办。即便在周日,同学们的热情仍然很高,给广东工业大学的同学们点赞。/p
 
diff --git a/content/release/pack-release-guide/index.html 
b/content/release/pack-release-guide/index.html
index 850385e5..12e99749 100644
--- a/content/release/pack-release-guide/index.html
+++ b/content/release/pack-release-guide/index.html
@@ -5,7 +5,7 @@
   Free for personal and commercial use under the MIT license
   https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt
 -->
-
+
   
 
 
@@ -31,7 +31,7 @@
 
 
 
-
+
 
 
 
@@ -157,7 +157,7 @@
 
   
  
-  https://www.apache.org/img/servicecomb.png;>
+  https://www.apache.org/img/servicecomb.png;>
  
 
   
@@ -167,7 +167,7 @@
 
   
 
-  首页
+  Home
 
   
 
@@ -178,7 +178,7 @@
 
   
 
-  项目
+  Projects
 
   
 
@@ -193,18 +193,18 @@
   
 
   
-文档
+Documentation
   
 
-  
+  
 
-入门指南
+Getting 
started
 
-用户手册
+Docs
 
-大咖视频
+Video
 
-常见问题
+FAQ
 
   
 
@@ -216,7 +216,7 @@
 
   
 
-  博文
+  Blogs
 
   
 
@@ -227,7 +227,7 @@
 
   
 
-  下载
+  Downloads
 
   
 
@@ -238,8 +238,7 @@
 
   
 
-
-English
+中文
   
 
   
@@ -256,7 +255,7 @@
   
   
   
-  首页 > ServiceComb Pack 
Release Guide
+  Home > ServiceComb Pack 
Release Guide
   
   
   
@@ -271,7 +270,7 @@
 
   
   
-  切换菜单
+  Toggle Menu
   
 
   
@@ -288,7 +287,7 @@
 
 
 
-发布说明
+Release Notes
   
 
 
@@ -296,7 +295,7 @@
 
 
 
-发布包
+Downloads
   
 
 
@@ -316,7 +315,7 @@
 
 
 
-发布说明
+Release 
Notes
   
 
 
@@ -324,7 +323,7 @@
 
 
 
-发布包
+Downloads
   
 
 
@@ -344,7 +343,7 @@
 
 
 
-发布说明
+Release Notes
   
 
 
@@ -352,7 +351,7 @@
 
 
 
-发布包
+Downloads
   
 
 
@@ -372,7 +371,7 @@
 
 
 
-发布说明
+Release 
Notes
   
 
 
@@ -380,7 +379,7 @@
 
 
 
-发布包
+Downloads
   
 
 
@@ -400,7 +399,7 @@
 
 
 
-发布说明
+Release 
Notes
   
 
 
@@ -408,7 +407,7 @@
 
 
 
-发布包
+Downloads
   
 
 
@@ -428,7 +427,7 @@
 
 
 
-发布说明
+Release 
Notes
   
 
 
@@ -436,7 +435,7 @@
 
 
 
-发布包
+

[servicecomb-website] branch master updated: Fixed the pack_releaseGuide mulit-languages error

2022-08-08 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 791ff5d0 Fixed the pack_releaseGuide mulit-languages error
791ff5d0 is described below

commit 791ff5d01468ccaa19dff8c9b7a5328235fae63b
Author: Willem Jiang 
AuthorDate: Mon Aug 8 15:39:02 2022 +0800

Fixed the pack_releaseGuide mulit-languages error
---
 README.md | 2 ++
 _release/pack_releaseGuide.md | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index e21302cd..2ccac96b 100644
--- a/README.md
+++ b/README.md
@@ -31,6 +31,8 @@ Please sent your PR to the master branch instead of asf-site.
 
 *  Start web browser to access `http://localhost:4000` 
 
+*  Build the website `sudo bundle exec jekyll build`
+
 # How to push the change to apache website
 
 [Follow This Script](script/release)
diff --git a/_release/pack_releaseGuide.md b/_release/pack_releaseGuide.md
index 6484cfe0..ee8cd0a5 100644
--- a/_release/pack_releaseGuide.md
+++ b/_release/pack_releaseGuide.md
@@ -1,6 +1,6 @@
 ---
 title: "ServiceComb Pack Release Guide"
-lang: cn
+lang: en
 ref: release
 permalink: /release/pack-release-guide/
 excerpt: "ServiceComb Pack Release Guide"



[servicecomb-website] branch asf-site updated: Publish the website of Apache ServiceComb

2022-08-08 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


The following commit(s) were added to refs/heads/asf-site by this push:
 new 241b0212 Publish the website of Apache ServiceComb
241b0212 is described below

commit 241b021268d7800c1cc0855cedb6d0f59e452172
Author: Willem Jiang 
AuthorDate: Mon Aug 8 15:26:45 2022 +0800

Publish the website of Apache ServiceComb
---
 content/cn/developers/release-guide/index.html   |   93 +-
 content/cn/release/pack-release-guide/index.html | 1257 ++
 content/developers/release-guide/index.html  |   99 +-
 content/feed.xml |2 +-
 content/release/pack-release-guide/index.html| 1240 +
 content/sitemap.xml  |  408 +++
 6 files changed, 2710 insertions(+), 389 deletions(-)

diff --git a/content/cn/developers/release-guide/index.html 
b/content/cn/developers/release-guide/index.html
index aac63b3f..00d395a0 100644
--- a/content/cn/developers/release-guide/index.html
+++ b/content/cn/developers/release-guide/index.html
@@ -801,98 +801,7 @@ gvt restore
 
 发行Pack
 
-准备和校验发行包
-
-
-  如果~/.gnupg中没有GPG密钥文件,则将GPG密钥文件拷贝至~/.gnupg文件夹。
-  gpg.conf
-  pubring.gpg
-  random_seed
-  secring.gpg
-  trustdb.gpg
-
-  
-  
-更新~/.m2/settings.xml文件中的GPG密码。
-  
-  
-更新~/.m2/settings.xml文件中的Apache帐户用户名和密码。
-  
-  克隆Pack代码。
-git clone 
https://github.com/apache/servicecomb-pack.git
-
-  
-  使用以下perl命令,替换所有pom.xml文件中的版本号并提交改动至本地。
-find . -name 'pom.xml'|xargs 
perl -pi -e 's/1.0.0-m2-SNAPSHOT/1.0.0-m2/g'
-
-  
-  
-在需要release的分支上打上准备发布版本的标签。
-  
-  运行以下命令。
-mvn deploy -DskipTests -Prelease 
-Pdistribution -Ppassphrase
-
-  
-  
-上述命令执行成功,所有的jar包都成功上传至临时仓库后,运行门槛测试以验证基本功能, 如果执行失败,需要解决问题,从步骤7重新开始。
-  
-  
-如果步骤7命令执行成功,则所有的jar包都已经成功上传至maven临时仓库。
-使用apache帐号登录到https://repository.apache.org/;>Apache 
Nexus,点击“Staging 
Repositories”,搜索“servicecomb-pack”,根据时间找到最近的pack相关的记录,close该条记录,得到maven临时仓库的链接,例如:https://repository.apache.org/content/repositories/orgapacheservicecomb-1385
-  
-  将release分支以及标签分别push至主仓库。
-
-
-给发行包签名
-
-
-  
-从临时仓库下载二进制包和源码包。
-  
-  
-生成二进制包和源码包的签名和校验和。
-  
-  
-上传发行包到https://dist.apache.org/repos/dist/dev/servicecomb/servicecomb-pack/;>Apache发行开发仓库.
-  
-  
-从SVN下载发行包,验证签名和校验。
-  
-
-
-PMC批准
-
-
-  
-发送投票邮件至 d...@servicecomb.apache.org, 
发起PMC批准.
-  
-  
-
等待72小时,或者获得3票+1并且没有-1。如果有-1票,修正问题并从第1步重新开始。
-  
-  
-将投票结果发布到d...@servicecomb.apache.org。
-  
-
-
-通告
-
-
-  
-上传发行包至https://dist.apache.org/repos/dist/release/servicecomb/servicecomb-pack/;>Apache发行仓库。
-  
-  
-等待24小时,让所有镜像同步。
-  
-  
-将https://dist.apache.org/repos/dist/dev;>dev的文件移动到https://dist.apache.org/repos/dist/release;>release目录中,同时确认已经被存档,同时更新网站上相关链接。
-  
-  
-上传发行页面至ServiceComb网站。
-  
-  
-发送发行通告邮件到d...@servicecomb.apache.org, annou...@apache.org。
-  
-
+请参考 ServiceComb Pack 发行指南
 
 
   
diff --git a/content/cn/release/pack-release-guide/index.html 
b/content/cn/release/pack-release-guide/index.html
new file mode 100644
index ..3faec8d4
--- /dev/null
+++ b/content/cn/release/pack-release-guide/index.html
@@ -0,0 +1,1257 @@
+
+
+
+  
+
+
+
+
+
+
+
+
+
+
+
+
+ServiceComb Pack Release Guide - Apache ServiceComb
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  https://github.com/pages/apache/incubator-servicecomb-website/cn/release/pack-release-guide/;>
+  https://github.com/pages/apache/incubator-servicecomb-website/cn/release/pack-release-guide/;>
+
+
+
+  
+
+
+
+  
+  
+  
+  
+
+  
+
+
+  
+
+  
+
+
+
+  
+
+  
+
+
+
+
+
+
+
+
+
+
+
+
+  
+{
+  "@context" : "http://schema.org";,
+  "@type" : "Person",
+  "name" : "Apache ServiceComb",
+  "url" : "https://github.com/pages/apache/incubator-servicecomb-website";,
+  "sameAs" : null
+}
+  
+
+
+
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  document.documentElement.className = 
document.documentElement.className.replace(/\bno-js\b/g, '') + ' js ';
+
+https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.7.1/clipboard.min.js";>
+
+
+https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML";>
+
+
+https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css;
 
integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
 crossorigin="anonymous">
+
+https://www.apachecon.com/event-images/snippet.js";>
+https://code.jquery.com/jquery-3.2.1.slim.min.js"; 
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
 crossorigin="anonymous">

[servicecomb-website] branch master updated: Add ServiceComb Pack Release Guide (#296)

2022-08-08 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 4e427a2f Add ServiceComb Pack Release Guide (#296)
4e427a2f is described below

commit 4e427a2fde803ef8c5c47404f3202ef497d250a9
Author: Lei Zhang 
AuthorDate: Mon Aug 8 15:14:10 2022 +0800

Add ServiceComb Pack Release Guide (#296)

* Add ServiceComb Pack Release Guide

* Fix wrong link
---
 _developers/cn/release_guide.md  |  68 +
 _developers/release_guide.md |  69 +
 _release/cn/pack_releaseGuide.md | 576 +++
 _release/pack_releaseGuide.md| 562 ++
 4 files changed, 1141 insertions(+), 134 deletions(-)

diff --git a/_developers/cn/release_guide.md b/_developers/cn/release_guide.md
index 57e9ed86..0eb46a04 100755
--- a/_developers/cn/release_guide.md
+++ b/_developers/cn/release_guide.md
@@ -258,70 +258,4 @@ gvt restore
 
 ## 发行Pack
 
-***准备和校验发行包***
-
-1. 如果`~/.gnupg`中没有GPG密钥文件,则将GPG密钥文件拷贝至`~/.gnupg`文件夹。
-  ```
-  gpg.conf
-  pubring.gpg
-  random_seed
-  secring.gpg
-  trustdb.gpg
-  ```
-
-2. 更新`~/.m2/settings.xml`文件中的GPG密码。
-
-3. 更新`~/.m2/settings.xml`文件中的Apache帐户用户名和密码。
-
-4. 克隆Pack代码。
-```
-git clone https://github.com/apache/servicecomb-pack.git
-```
-
-5. 使用以下perl命令,替换所有pom.xml文件中的版本号并提交改动至本地。
-```
-find . -name 'pom.xml'|xargs perl -pi -e 's/1.0.0-m2-SNAPSHOT/1.0.0-m2/g'
-```
-6. 在需要release的分支上打上准备发布版本的标签。
-
-7. 运行以下命令。
-```
-mvn deploy -DskipTests -Prelease -Pdistribution -Ppassphrase
-```
-
-8. 上述命令执行成功,所有的jar包都成功上传至临时仓库后,运行门槛测试以验证基本功能, 如果执行失败,需要解决问题,从步骤7重新开始。
-
-9. 如果步骤7命令执行成功,则所有的jar包都已经成功上传至maven临时仓库。  
-   使用apache帐号登录到[Apache Nexus](https://repository.apache.org/),点击“Staging 
Repositories”,搜索“servicecomb-pack”,根据时间找到最近的pack相关的记录,close该条记录,得到maven临时仓库的链接,例如:`https://repository.apache.org/content/repositories/orgapacheservicecomb-1385`
-
-10. 将release分支以及标签分别push至主仓库。
-
-***给发行包签名***
-
-13. 从临时仓库下载二进制包和源码包。
-
-14. 生成二进制包和源码包的签名和校验和。
-
-15. 
上传发行包到[Apache发行开发仓库](https://dist.apache.org/repos/dist/dev/servicecomb/servicecomb-pack/).
-
-16. 从SVN下载发行包,验证签名和校验。
-
-***PMC批准***
-
-17. 发送投票邮件至 ***d...@servicecomb.apache.org***, 发起PMC批准.
-
-18. 等待72小时,或者获得3票+1并且没有-1。如果有-1票,修正问题并从***第1步***重新开始。
-
-19. 将投票结果发布到d...@servicecomb.apache.org。
-
-***通告***
-
-20. 
上传发行包至[Apache发行仓库](https://dist.apache.org/repos/dist/release/servicecomb/servicecomb-pack/)。
-
-21. 等待24小时,让所有镜像同步。
-
-22. 
将[dev](https://dist.apache.org/repos/dist/dev)的文件移动到[release](https://dist.apache.org/repos/dist/release)目录中,同时确认已经被存档,同时更新网站上相关链接。
-
-23. 上传发行页面至ServiceComb网站。
-
-24. 发送发行通告邮件到d...@servicecomb.apache.org, annou...@apache.org。
+请参考 [ServiceComb Pack 发行指南](/cn/release/pack-release-guide)
\ No newline at end of file
diff --git a/_developers/release_guide.md b/_developers/release_guide.md
index 4c0bea58..3283a37c 100755
--- a/_developers/release_guide.md
+++ b/_developers/release_guide.md
@@ -277,74 +277,9 @@ or [2.0.0 
RP](https://github.com/apache/servicecomb-website/pull/240)
 6. Send announcements to `d...@servicecomb.apache.org`, `annou...@apache.org`。
 
 
-## Major Steps for doing Saga Release
-
-***Make and Verify the Release***
-1. Clone the saga code.
-```
-git clone https://github.com/apache/servicecomb-saga.git
-```
-
-2. Cut the release using per command to replace all the versions in pom.xml 
files
-
-3. Create a Tag from the master branch using the version number.
-```
-find . -name 'pom.xml'|xargs perl -pi -e 's/1.0.0-m2-SNAPSHOT/1.0.0-m2/g'
-```
-
-4. Clear all the redundant servicecomb releases in repository.apache.org
-
-5. Add the keys in a reference folder.
-
-6. Update the key path and passphrase in your ~/.m2/settings.xml file.
-
-7. Update the apache account username and password in the settings.xml file.
-
-8. Run the maven deploy command.
-```
-mvn deploy -DskipTests -Ppassphrase -Prelease
-```
-
-9. Once every thing is uploaded then use the staging repo to verify the build 
using the acceptance test.
-
-10. Share the staging repo with peers to verify on different OS and machines 
using the demo.
-
-11. If everything is fine then push the tag to master.
-
-12. Close the staging repo is apache repositories.
-
-***Sign the Releases***
-
-1. Download the source code and distribution from the staging repo.
-
-2. Sign the 2 releases(distribution, src) and checksum.
-
-3. Create a new directory [Apache dev Release 
SVN](https://dist.apache.org/repos/dist/dev/servicecomb/servicecomb-saga/) with 
release package name and release candidate number. (for example : if you want 
to release 1.0.0-m2 and this is the third attempt of the release then the 
folder structure will be `1.0.0-m2/rc03`)
-
-4. Upload the release to  directory created in last step.
-
-5. Download all the releases from SVN and verify the signature and checksum.
-
-***PMC 

[GitHub] [servicecomb-website] WillemJiang merged pull request #296: Add ServiceComb Pack Release Guide

2022-08-08 Thread GitBox


WillemJiang merged PR #296:
URL: https://github.com/apache/servicecomb-website/pull/296


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@servicecomb.apache.org

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