[GitHub] [servicecomb-java-chassis] coveralls commented on pull request #1792: [SCB-1954]coverage report dependencies update and remove no use test project
coveralls commented on pull request #1792: URL: https://github.com/apache/servicecomb-java-chassis/pull/1792#issuecomment-635754025 [![Coverage Status](https://coveralls.io/builds/31108291/badge)](https://coveralls.io/builds/31108291) Coverage increased (+1.9%) to 86.333% when pulling **a60cfdcd46cd758aadeb6ccf8159788a9d7c3a05 on liubao68:liubao** into **8a7c8bcbd1556359879b6ed568af1089b911f166 on apache:master**. 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] coveralls edited a comment on pull request #1794: [SCB-1947] define Filter and filter chain
coveralls edited a comment on pull request #1794: URL: https://github.com/apache/servicecomb-java-chassis/pull/1794#issuecomment-635741597 [![Coverage Status](https://coveralls.io/builds/31108088/badge)](https://coveralls.io/builds/31108088) Coverage increased (+0.05%) to 84.5% when pulling **46a794783d9a214b4043642024ae0c2daa2a5662 on wujimin:SCB-1947-define-Filter-and-filter-chain** into **bc6afcbc84784e5eb20b46dba6fcc72d4447b30f on apache:master**. 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] coveralls commented on pull request #1794: [SCB-1947] define Filter and filter chain
coveralls commented on pull request #1794: URL: https://github.com/apache/servicecomb-java-chassis/pull/1794#issuecomment-635741597 [![Coverage Status](https://coveralls.io/builds/31107609/badge)](https://coveralls.io/builds/31107609) Coverage increased (+0.05%) to 84.505% when pulling **e3488c098bffe391b77adfa4698004531a962d75 on wujimin:SCB-1947-define-Filter-and-filter-chain** into **bc6afcbc84784e5eb20b46dba6fcc72d4447b30f on apache:master**. 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] zhufeizzz commented on issue #1785: 现在ServiceComb是否能支持动态路由注册,以支持服务的重构?
zhufeizzz commented on issue #1785: URL: https://github.com/apache/servicecomb-java-chassis/issues/1785#issuecomment-635734695 @liubao68 我的意思是说能否通过ServiceComb扩展的方式实现,而不是直接修改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-docs] liubao68 opened a new pull request #173: [SCB-1950]add document on how to using local registry to call 3rd par…
liubao68 opened a new pull request #173: URL: https://github.com/apache/servicecomb-docs/pull/173 …ties 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] wujimin opened a new pull request #1794: [SCB-1947] define Filter and filter chain
wujimin opened a new pull request #1794: URL: https://github.com/apache/servicecomb-java-chassis/pull/1794 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 #1785: 现在ServiceComb是否能支持动态路由注册,以支持服务的重构?
liubao68 commented on issue #1785: URL: https://github.com/apache/servicecomb-java-chassis/issues/1785#issuecomment-635710995 如果可以改客户端代码(重新编译,但是对使用者透明,也算修改客户端代码), 我觉得最好的办法就是让客户端排查下,把服务名字改下。 这种场景核心要解决的是独立升级的问题,即要求服务端升级不影响客户端功能。这个目前看就只有先老的两个服务不下线, 新服务上线, 然后通知使用者变更,给使用者修改周期,当使用者都修改完成后,将老服务下线即可。 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-1953] tiny code improve
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 bc6afcb [SCB-1953] tiny code improve bc6afcb is described below commit bc6afcbc84784e5eb20b46dba6fcc72d4447b30f Author: wujimin AuthorDate: Fri May 29 08:37:34 2020 +0800 [SCB-1953] tiny code improve --- .../java/org/apache/servicecomb/demo/perf/Wjm.java | 25 -- .../servicecomb/it/testcase/TestDefaultValue.java | 3 +-- .../servicecomb/it/testcase/TestDownload.java | 6 -- .../tracing/ZipkinTracingIntegrationTest.java | 1 - 4 files changed, 1 insertion(+), 34 deletions(-) diff --git a/demo/perf/src/main/java/org/apache/servicecomb/demo/perf/Wjm.java b/demo/perf/src/main/java/org/apache/servicecomb/demo/perf/Wjm.java deleted file mode 100644 index 2715590..000 --- a/demo/perf/src/main/java/org/apache/servicecomb/demo/perf/Wjm.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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.perf; - -import java.util.Date; - -public class Wjm { - public Wjm() { -System.out.println("wjm:" + new Date()); - } -} diff --git a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDefaultValue.java b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDefaultValue.java index 1f39a6f..84e74e8 100644 --- a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDefaultValue.java +++ b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDefaultValue.java @@ -501,7 +501,6 @@ public class TestDefaultValue { assertEquals(defaultFloat, consumersSpringmvc.getIntf().floatHeaderRequire(null), 0.0f); } - @Test public void floatHeader_require_springmvc_rt() { assertEquals(defaultFloat, @@ -523,7 +522,7 @@ public class TestDefaultValue { public void stringHeader_springmvc_cart() { HttpHeaders headers = new HttpHeaders(); headers.add("input", "setHeader"); -HttpEntity requestEntity = new HttpEntity(null, headers); +HttpEntity requestEntity = new HttpEntity<>(null, headers); assertNotEquals(defaultStr, consumersSpringmvc.getCseAsyncRestTemplate() .exchange("/stringHeader", HttpMethod.GET, requestEntity, String.class)); diff --git a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDownload.java b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDownload.java index a23a658..0c10ef2 100644 --- a/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDownload.java +++ b/integration-tests/it-consumer/src/main/java/org/apache/servicecomb/it/testcase/TestDownload.java @@ -114,12 +114,6 @@ public class TestDownload { return response.getBody(); } -// @Test -// public void wjm() { -//ITJUnitUtils.initForDebug("it-producer", "rest"); -//checkFuture(templateGet("bytes").saveAsString()); -// } - @Test @SuppressWarnings("unchecked") public void runRest() { diff --git a/integration-tests/tracing-tests/src/test/java/org/apache/servicecomb/tests/tracing/ZipkinTracingIntegrationTest.java b/integration-tests/tracing-tests/src/test/java/org/apache/servicecomb/tests/tracing/ZipkinTracingIntegrationTest.java index 3aa6028..9cddb31 100644 --- a/integration-tests/tracing-tests/src/test/java/org/apache/servicecomb/tests/tracing/ZipkinTracingIntegrationTest.java +++ b/integration-tests/tracing-tests/src/test/java/org/apache/servicecomb/tests/tracing/ZipkinTracingIntegrationTest.java @@ -23,7 +23,6 @@ import static org.junit.Assert.assertThat; import static org.springframework.http.HttpStatus.OK; import java.util.Collection; -import java.util.concurrent.TimeUnit; import org.junit.Before; import org.junit.Test;
[GitHub] [servicecomb-java-chassis] liubao68 merged pull request #1793: [SCB-1953] tiny code improve
liubao68 merged pull request #1793: URL: https://github.com/apache/servicecomb-java-chassis/pull/1793 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] coveralls commented on pull request #1793: [SCB-1953] tiny code improve
coveralls commented on pull request #1793: URL: https://github.com/apache/servicecomb-java-chassis/pull/1793#issuecomment-635700393 [![Coverage Status](https://coveralls.io/builds/31105918/badge)](https://coveralls.io/builds/31105918) Coverage decreased (-0.005%) to 84.455% when pulling **774f649a96901a7f7f5c1fd8a1996bebfcd05ffa on wujimin:SCB-1953-tiny-code-improve** into **8a7c8bcbd1556359879b6ed568af1089b911f166 on apache:master**. 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] wujimin opened a new pull request #1793: [SCB-1953] tiny code improve
wujimin opened a new pull request #1793: URL: https://github.com/apache/servicecomb-java-chassis/pull/1793 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] 03/03: Publish the website
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 825264c07ef7c80edda8f94097af68fd13b43089 Author: Willem Jiang AuthorDate: Fri May 29 08:16:46 2020 +0800 Publish the website --- content/cn/summer2020.html | 14 +++--- content/feed.xml | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/content/cn/summer2020.html b/content/cn/summer2020.html index 7e92e53..4353570 100644 --- a/content/cn/summer2020.html +++ b/content/cn/summer2020.html @@ -323,7 +323,7 @@ 一个微服务系统会包含会多个微服务,微服务框架本身的也会包含多个组件,如注册中心,网关,分布式事务组件等,如何方便快速的将整个微服务在不同的环境中迁移是一个挑战。希望能使用Terraform开发一个工具,帮助ServiceComb微服务 应用一键迁移上云。(AWS, 华为云等)。 难度: 中 - 导师: 田晓亮 xiaoliang.t...@gmail.com + 导师: 田晓亮 xiaoliang.tian AT gmail.com 所需要技能: Java or Go, Terraform @@ -331,7 +331,7 @@ Java-chassis是ServiceComb微服务框架的Java SDK, 希望调整它的部分源代码,实现当开发者使用JDK 14 + java-chassis开发微服务时能正常开发,同时java-chassis在JDK14下能通过所有的测试用例。 难度: 中 - 导师: 刘宝 liu...@apache.org + 导师: 刘宝 liubao AT apache.org 所需要技能: Java, JDK 14 @@ -340,10 +340,18 @@ 企业进行微服务转型的一大原因是为了更方便的上云,通过为开发者提供健壮的OBS访问SDK,让开发者可以简单的使用注解将OBS储存的内容 注入java对象实例中。 难度: 低 - 导师: 田晓亮 xiaoliang.t...@gmail.com + 导师: 田晓亮 xiaoliang.tian AT gmail.com 所需技能: Java + 丰富ServiceComb Pack在分布式事务场景下的验收测试 + + ServiceComb Pack作为一个分布式事务引擎,需要有完善的验收测试来保证其服务功能的完备性。 任务描述参见https://issues.apache.org/jira/browse/SCB-306;>SCB-306。此任务包含验收测试的场景分析整理,以及缺失场景的代码实现。通过此任务你可以学习到如何动态注入故障,验收测试框架的使用,以及自动化测试的常用工具。 + 难度: 中 + 导师: 姜宁 ningjiang AT apache.org + 所需技能: Java, docker, 一颗好奇的心 + + 如何参与 diff --git a/content/feed.xml b/content/feed.xml index 289fb9b..9d0ef62 100644 --- a/content/feed.xml +++ b/content/feed.xml @@ -1,4 +1,4 @@ -http://www.w3.org/2005/Atom; >https://jekyllrb.com/; version="3.8.5">Jekyll2020-05-29T07:48:50+08:00/feed.xmlApache ServiceCombThe homepage of ServiceComb{name=nil, avatar= [...] +http://www.w3.org/2005/Atom; >https://jekyllrb.com/; version="3.8.5">Jekyll2020-05-29T08:13:13+08:00/feed.xmlApache ServiceCombThe homepage of ServiceComb{name=nil, avatar= [...] p本次讲座得到广东工业大学计算机院学生会同学们的鼎力支持和参与。报名通道开放后,报名人数迅速达到150+,活动放在学校报告厅举办。即便在周日,同学们的热情仍然很高,给广东工业大学的同学们点赞。/p
[servicecomb-website] 02/03: Merge branch 'master' into asf-site
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 69323123fe285b4e0db893d3ef49bb7999e9dee0 Merge: 42599c4 0c502ba Author: Willem Jiang AuthorDate: Fri May 29 08:12:50 2020 +0800 Merge branch 'master' into asf-site _pages/cn/summer2020.md | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-)
[servicecomb-website] 01/03: Added a new task of summer 2020
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 0c502bae6b44b848424caa5075dec77083ec6510 Author: Willem Jiang AuthorDate: Fri May 29 08:12:29 2020 +0800 Added a new task of summer 2020 --- _pages/cn/summer2020.md | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/_pages/cn/summer2020.md b/_pages/cn/summer2020.md index 22f52d1..98da8c2 100644 --- a/_pages/cn/summer2020.md +++ b/_pages/cn/summer2020.md @@ -18,22 +18,28 @@ last_modified_at: 2020-05-25T09:46:01+08:00 + 一个微服务系统会包含会多个微服务,微服务框架本身的也会包含多个组件,如注册中心,网关,分布式事务组件等,如何方便快速的将整个微服务在不同的环境中迁移是一个挑战。希望能使用Terraform开发一个工具,帮助ServiceComb微服务 应用一键迁移上云。(AWS, 华为云等)。 + 难度: 中 - + 导师: 田晓亮 xiaoliang.t...@gmail.com + + 导师: 田晓亮 xiaoliang.tian AT gmail.com + 所需要技能: Java or Go, Terraform - + 2. Java-chassis 支持 JDK 14 + Java-chassis是ServiceComb微服务框架的Java SDK, 希望调整它的部分源代码,实现当开发者使用JDK 14 + java-chassis开发微服务时能正常开发,同时java-chassis在JDK14下能通过所有的测试用例。 + 难度: 中 - + 导师: 刘宝 liu...@apache.org + + 导师: 刘宝 liubao AT apache.org + 所需要技能: Java, JDK 14 - + 3. 添加新的Object Storage Service云服务SDK组件,方便微服务开发者使用OBS。 + 企业进行微服务转型的一大原因是为了更方便的上云,通过为开发者提供健壮的OBS访问SDK,让开发者可以简单的使用注解将OBS储存的内容 注入java对象实例中。 + 难度: 低 - + 导师: 田晓亮 xiaoliang.t...@gmail.com + + 导师: 田晓亮 xiaoliang.tian AT gmail.com + 所需技能: Java +4. 丰富ServiceComb Pack在分布式事务场景下的验收测试 + + ServiceComb Pack作为一个分布式事务引擎,需要有完善的验收测试来保证其服务功能的完备性。 任务描述参见[SCB-306](https://issues.apache.org/jira/browse/SCB-306)。此任务包含验收测试的场景分析整理,以及缺失场景的代码实现。通过此任务你可以学习到如何动态注入故障,验收测试框架的使用,以及自动化测试的常用工具。 + + 难度: 中 + + 导师: 姜宁 ningjiang AT apache.org + + 所需技能: Java, docker, 一颗好奇的心 + ### 如何参与 + 直接跟导师发邮件。导师将知道你完成后续工作。 + 了解更多如何参与的信息: [如何报名](https://isrc.iscas.ac.cn/summer2020/help/student.html#%E5%AD%A6%E7%94%9F%E5%A6%82%E4%BD%95%E6%8A%A5%E5%90%8D)
[servicecomb-website] branch asf-site updated (42599c4 -> 825264c)
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 42599c4 Publish the website new 0c502ba Added a new task of summer 2020 new 6932312 Merge branch 'master' into asf-site new 825264c Publish the website The 3 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: _pages/cn/summer2020.md| 16 +++- content/cn/summer2020.html | 14 +++--- content/feed.xml | 2 +- 3 files changed, 23 insertions(+), 9 deletions(-)
[servicecomb-website] 01/03: Update the release information
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 1c64d56b48d57ca32200fd64f5f54ee75cdd1162 Author: Willem Jiang AuthorDate: Fri May 29 07:48:23 2020 +0800 Update the release information --- _pages/cn/home.md | 8 _pages/home.md| 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_pages/cn/home.md b/_pages/cn/home.md index 995d7ba..bb5425d 100755 --- a/_pages/cn/home.md +++ b/_pages/cn/home.md @@ -23,15 +23,15 @@ intro: Apache ServiceComb 社区 暑假coding 2020 活动 - + -Apache ServiceComb Java-Chassis 发布 2.0.2 + Apache ServiceComb Pack 发布0.6.0 -Apache ServiceComb Service-Center 发布 1.3.0 +Apache ServiceComb Java-Chassis 发布 2.0.2 -Apache ServiceComb Pack 发布0.5.0 +Apache ServiceComb Service-Center 发布 1.3.0 Apache ServiceComb Toolkit 发布0.2.0 diff --git a/_pages/home.md b/_pages/home.md index 7ebff3a..3b935fe 100755 --- a/_pages/home.md +++ b/_pages/home.md @@ -25,13 +25,13 @@ intro: Apache ServiceComb Summer Code 2020 -Apache ServiceComb Java-Chassis Release Version 2.0.2 +Apache ServiceComb Pack 0.6.0 is released -Apache ServiceComb Service-Center Release Version 1.3.0 +Apache ServiceComb Java-Chassis Release Version 2.0.2 -Apache ServiceComb Pack 0.5.0 is released +Apache ServiceComb Service-Center Release Version 1.3.0 Apache ServiceComb Toolkit 0.2.0 is released
[servicecomb-website] 03/03: Publish the website
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 42599c4c24fa54c8954197a3b969c513b40532d9 Author: Willem Jiang AuthorDate: Fri May 29 07:49:48 2020 +0800 Publish the website --- content/cn/index.html | 2 +- content/feed.xml | 2 +- content/index.html| 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/cn/index.html b/content/cn/index.html index 477d413..5aabbb8 100644 --- a/content/cn/index.html +++ b/content/cn/index.html @@ -336,7 +336,7 @@ 最新新闻 left_ul li{width:100%} - Apache ServiceComb 社区 暑假coding 2020 活动 Apache ServiceComb Java-Chassis 发布 2.0.2 Apache ServiceComb Service-Center 发布 1.3.0 Apache ServiceComb Pack 发布0.5.0 Apache ServiceComb Toolkit 发布0.2.0 + Apache ServiceComb 社区 暑假coding 2020 活动 Apache ServiceComb Pack 发布0.6.0 Apache ServiceComb Java-Chassis 发布 2.0.2 Apache ServiceComb Service-Center 发布 1.3.0 Apache ServiceComb Toolkit 发布0.2.0 Apache ServiceComb 社区接受新开普软件研究院的代码捐赠 Apache ServiceComb 社区meetup及新品发布 Apache ServiceComb 荣获中国开源云联盟组织的中国优秀开源项目一等奖 Apache ServiceComb 社区联合传智播客的黑马程序员、博学谷、传智汇子品牌发布微服务化教程 https://gitter [...] diff --git a/content/feed.xml b/content/feed.xml index e47637e..289fb9b 100644 --- a/content/feed.xml +++ b/content/feed.xml @@ -1,4 +1,4 @@ -http://www.w3.org/2005/Atom; >https://jekyllrb.com/; version="3.8.5">Jekyll2020-05-29T07:35:03+08:00/feed.xmlApache ServiceCombThe homepage of ServiceComb{name=nil, avatar= [...] +http://www.w3.org/2005/Atom; >https://jekyllrb.com/; version="3.8.5">Jekyll2020-05-29T07:48:50+08:00/feed.xmlApache ServiceCombThe homepage of ServiceComb{name=nil, avatar= [...] p本次讲座得到广东工业大学计算机院学生会同学们的鼎力支持和参与。报名通道开放后,报名人数迅速达到150+,活动放在学校报告厅举办。即便在周日,同学们的热情仍然很高,给广东工业大学的同学们点赞。/p diff --git a/content/index.html b/content/index.html index 633072e..aa8021a 100644 --- a/content/index.html +++ b/content/index.html @@ -335,7 +335,7 @@ Latest News left_ul li{width:100%} - Apache ServiceComb Summer Code 2020 Apache ServiceComb Java-Chassis Release Version 2.0.2 Apache ServiceComb Service-Center Release Version 1.3.0 Apache ServiceComb Pack 0.5.0 is released Apache ServiceComb Toolkit 0.2.0 i [...] + Apache ServiceComb Summer Code 2020 Apache ServiceComb Pack 0.6.0 is released Apache ServiceComb Java-Chassis Release Version 2.0.2 Apache ServiceComb Service-Center Release Version 1.3.0 Apache ServiceComb Toolkit 0.2.0 i [...] Apache ServiceComb accept code donation from NewCapec Institute Apache ServiceComb Meetup and new projects release Apache ServiceComb won the first prize of China's outstanding open source project organized by China Open Source Cloud Alliance
[servicecomb-website] branch asf-site updated (58c984c -> 42599c4)
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 58c984c Publish the website new 1c64d56 Update the release information new 7e3d78a Merge branch 'master' into asf-site new 42599c4 Publish the website The 3 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: _pages/cn/home.md | 8 _pages/home.md| 6 +++--- content/cn/index.html | 2 +- content/feed.xml | 2 +- content/index.html| 2 +- 5 files changed, 10 insertions(+), 10 deletions(-)
[servicecomb-website] 02/03: Merge branch 'master' into asf-site
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 7e3d78a84f28cd4f0dccaeee3ac1d120d9d461a6 Merge: 58c984c 1c64d56 Author: Willem Jiang AuthorDate: Fri May 29 07:48:40 2020 +0800 Merge branch 'master' into asf-site _pages/cn/home.md | 8 _pages/home.md| 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-)
[servicecomb-website] branch asf-site updated (241f854 -> 58c984c)
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 241f854 Publish the website add 6b888f3 fix a url typo add d221087 Update ServiceComb Pack 0.6.0 Release Info new 9a381bd Merge branch 'master' into asf-site new 58c984c 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: _pages/cn/home.md| 2 +- _release/cn/pack_downloads.md| 5 +- _release/cn/pack_releaseNotes.md | 128 +- _release/cn/release.md | 5 +- _release/pack_downloads.md | 5 +- _release/pack_releaseNotes.md| 128 +- _release/release.md | 5 +- content/cn/index.html| 2 +- content/cn/release/index.html| 7 +- content/cn/release/pack-downloads/index.html | 9 +- content/cn/release/pack-release-notes/index.html | 131 ++- content/feed.xml | 2 +- content/release/index.html | 7 +- content/release/pack-downloads/index.html| 9 +- content/release/pack-release-notes/index.html| 131 ++- content/sitemap.xml | 8 +- 16 files changed, 553 insertions(+), 31 deletions(-)
[servicecomb-website] 02/02: Publish the website
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 58c984c63d7c2e785b562e106a7f1ad8d9c20f27 Author: Willem Jiang AuthorDate: Fri May 29 07:36:24 2020 +0800 Publish the website --- content/cn/index.html| 2 +- content/cn/release/index.html| 7 +- content/cn/release/pack-downloads/index.html | 9 +- content/cn/release/pack-release-notes/index.html | 131 ++- content/feed.xml | 2 +- content/release/index.html | 7 +- content/release/pack-downloads/index.html| 9 +- content/release/pack-release-notes/index.html| 131 ++- content/sitemap.xml | 8 +- 9 files changed, 286 insertions(+), 20 deletions(-) diff --git a/content/cn/index.html b/content/cn/index.html index a57be25..477d413 100644 --- a/content/cn/index.html +++ b/content/cn/index.html @@ -336,7 +336,7 @@ 最新新闻 left_ul li{width:100%} - Apache ServiceComb 社区 暑假coding 2020 活动 Apache ServiceComb Java-Chassis 发布 2.0.2 Apache ServiceComb Service-Center 发布 1.3.0 Apache ServiceComb Pack 发布0.5.0 Apache ServiceComb Toolkit 发布0.2.0 + Apache ServiceComb 社区 暑假coding 2020 活动 Apache ServiceComb Java-Chassis 发布 2.0.2 Apache ServiceComb Service-Center 发布 1.3.0 Apache ServiceComb Pack 发布0.5.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 7b23188..977c298 100644 --- a/content/cn/release/index.html +++ b/content/cn/release/index.html @@ -543,13 +543,13 @@ -ServiceComb Service-Center 1.3.0 (released on 2019-11-07) +ServiceComb Pack 0.6.0 (released on 2020-05-26) -ServiceComb toolkit 0.2.0 (released on 2020-01-05) +ServiceComb Service-Center 1.3.0 (released on 2019-11-07) -ServiceComb Pack 0.5.0 (released on 2019-08-26) +ServiceComb toolkit 0.2.0 (released on 2020-01-05) ServiceComb Java-Chassis 2.0.2 (released on 2020-05-12) @@ -583,6 +583,7 @@ ServiceComb Java-Chassis 1.3.0 (released on 2019-10-31) + ServiceComb Pack 0.5.0 (released on 2019-08-26) ServiceComb Pack 0.4.0 (released on 2019-04-06) ServiceComb Pack 0.3.0 (released on 2019-01-02) ServiceComb Saga 0.2.0 (released on 2018-06-21) diff --git a/content/cn/release/pack-downloads/index.html b/content/cn/release/pack-downloads/index.html index 294d120..af4799d 100644 --- a/content/cn/release/pack-downloads/index.html +++ b/content/cn/release/pack-downloads/index.html @@ -521,7 +521,7 @@ - + @@ -547,7 +547,12 @@ - Apache ServiceComb Pack 0.5.0(LATEST) + Apache ServiceComb Pack 0.6.0(LATEST) + https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-pack/0.6.0/apache-servicecomb-pack-distribution-0.6.0-src.zip;>[src] https://www.apache.org/dist/servicecomb/servicecomb-pack/0.6.0/apache-servicecomb-pack-distribution-0.6.0-src.zip.asc;>[asc] https://www.apache.org/dist/servicecomb/servicecomb-pack/0.6.0/apache-servicecomb-pack-distribution-0.6.0-src.zip.sha512;>[sha512] + https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-pack/0.6.0/apache-servicecomb-pack-distribution-0.6.0-bin.zip;>[Binary] https://www.apache.org/dist/servicecomb/servicecomb-pack/0.6.0/apache-servicecomb-pack-distribution-0.6.0-bin.zip.asc;>[asc] https://www.apache.org/dist/servicecomb/servicecomb-pack/0.6.0/apache-servicecomb-pack-distribution-0.6.0-bin.zip.sha512;>[sha512] + + + Apache ServiceComb Pack 0.5.0 https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-pack/0.5.0/apache-servicecomb-pack-distribution-0.5.0-src.zip;>[src] https://www.apache.org/dist/servicecomb/servicecomb-pack/0.5.0/apache-servicecomb-pack-distribution-0.5.0-src.zip.asc;>[asc] https://www.apache.org/dist/servicecomb/servicecomb-pack/0.5.0/apache-servicecomb-pack-distribution-0.5.0-src.zip.sha512;>[sha512] https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-pack/0.5.0/apache-servicecomb-pack-distribution-0.5.0-bin.zip;>[Binary] https://www.apache.org/dist/servicecomb/servicecomb-pack/0.5.0/apache-servicecomb-pack-distribution-0.5.0-bin.zip.asc;>[asc] https://www.apache.org/dist/servicecomb/servicecomb-pack/0.5.0/apache-servicecomb-pack-distribution-0.5.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 53773d5..cce4578 100644 ---
[servicecomb-website] 01/02: Merge branch 'master' into asf-site
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 9a381bd926a508850a3204a534889984bec17622 Merge: 241f854 d221087 Author: Willem Jiang AuthorDate: Fri May 29 07:34:50 2020 +0800 Merge branch 'master' into asf-site _pages/cn/home.md| 2 +- _release/cn/pack_downloads.md| 5 +- _release/cn/pack_releaseNotes.md | 128 ++- _release/cn/release.md | 5 +- _release/pack_downloads.md | 5 +- _release/pack_releaseNotes.md| 128 ++- _release/release.md | 5 +- 7 files changed, 267 insertions(+), 11 deletions(-)
[servicecomb-website] branch master updated: Update ServiceComb Pack 0.6.0 Release Info
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 d221087 Update ServiceComb Pack 0.6.0 Release Info d221087 is described below commit d2210874436c1bef293d9dcdc9a0e99b4f76d1bf Author: asifdxtreme AuthorDate: Fri May 29 00:35:42 2020 +0530 Update ServiceComb Pack 0.6.0 Release Info --- _release/cn/pack_downloads.md| 5 +- _release/cn/pack_releaseNotes.md | 128 ++- _release/cn/release.md | 5 +- _release/pack_downloads.md | 5 +- _release/pack_releaseNotes.md| 128 ++- _release/release.md | 5 +- 6 files changed, 266 insertions(+), 10 deletions(-) diff --git a/_release/cn/pack_downloads.md b/_release/cn/pack_downloads.md index 113a42f..1dc2f2c 100644 --- a/_release/cn/pack_downloads.md +++ b/_release/cn/pack_downloads.md @@ -4,14 +4,15 @@ lang: cn ref: release permalink: /cn/release/pack-downloads/ excerpt: "ServiceComb Pack Downloads" -last_modified_at: 2019-04-06T00:50:43-55:00 +last_modified_at: 2020-04-06T00:50:43-55:00 --- ## 发布包 | 版本号 | 源码| 发布包 | | -- | - | - | -|**Apache ServiceComb Pack 0.5.0(LATEST)**|[[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.6.0(LATEST)**|[[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/ser [...] +|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 [...] diff --git a/_release/cn/pack_releaseNotes.md b/_release/cn/pack_releaseNotes.md index 5922e3d..bf09ac2 100644 --- a/_release/cn/pack_releaseNotes.md +++ b/_release/cn/pack_releaseNotes.md @@ -4,9 +4,135 @@ lang: cn ref: release permalink: /cn/release/pack-release-notes/ excerpt: "ServiceComb Pack Release Notes" -last_modified_at: 2018-04-06T00:50:43-55:00 +last_modified_at: 2020-04-06T00:50:43-55:00 --- +Release Notes - Apache ServiceComb - Version pack-0.6.0 + +Sub-task + + +[SCB-1368] - Support for Akka-based Alpha clusters + +[SCB-1424] - The retrieveDataMaps method throws a 500 error in acceptance-pack-akka-spring-demo + +[SCB-1627] - Wait for compensation feedback after Alpha calls compensation + +[SCB-1646] - Rename @Compensable property retries and timeout with the forward prefix + +[SCB-1658] - Improve encapsulation on txEntityMap of SagaData + +[SCB-1696] - Optimize state machine compensation
[GitHub] [servicecomb-website] WillemJiang merged pull request #252: Update ServiceComb Pack 0.6.0 Release Info
WillemJiang merged pull request #252: URL: https://github.com/apache/servicecomb-website/pull/252 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: fix a url typo
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 6b888f3 fix a url typo 6b888f3 is described below commit 6b888f3c7f3a73894735c4072363d1ffb8f97550 Author: alec.zheng AuthorDate: Thu May 28 22:37:49 2020 +0800 fix a url typo --- _pages/cn/home.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pages/cn/home.md b/_pages/cn/home.md index 4e6d709..995d7ba 100755 --- a/_pages/cn/home.md +++ b/_pages/cn/home.md @@ -22,7 +22,7 @@ intro: left_ul li{width:100%} - Apache ServiceComb 社区 暑假coding 2020 活动 + Apache ServiceComb 社区 暑假coding 2020 活动 Apache ServiceComb Java-Chassis 发布 2.0.2
[GitHub] [servicecomb-website] WillemJiang merged pull request #251: fix a url typo
WillemJiang merged pull request #251: URL: https://github.com/apache/servicecomb-website/pull/251 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] asifdxtreme opened a new pull request #252: Update ServiceComb Pack 0.6.0 Release Info
asifdxtreme opened a new pull request #252: URL: https://github.com/apache/servicecomb-website/pull/252 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] zhufeizzz commented on issue #1785: 现在ServiceComb是否能支持动态路由注册,以支持服务的重构?
zhufeizzz commented on issue #1785: URL: https://github.com/apache/servicecomb-java-chassis/issues/1785#issuecomment-635402799 @liubao68 如果我可以定制Client端代码,我需要用哪种扩展来实现自定义路由呢?我看例子里只是用SpringBoot变量来动态设置,这种对Client会有侵入。 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] alec-z opened a new pull request #251: fix a url typo
alec-z opened a new pull request #251: URL: https://github.com/apache/servicecomb-website/pull/251 fix a url typo @WillemJiang 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 opened a new pull request #1792: [SCB-1954]coverage report dependencies update and remove no use test project
liubao68 opened a new pull request #1792: URL: https://github.com/apache/servicecomb-java-chassis/pull/1792 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-java-chassis] liubao68 commented on issue #1785: 现在ServiceComb是否能支持动态路由注册,以支持服务的重构?
liubao68 commented on issue #1785: URL: https://github.com/apache/servicecomb-java-chassis/issues/1785#issuecomment-635351140 这种情况客户端必须修改服务名称,或者需要在客户端做一些其他额外的处理,将老名称映射到新名称,这两种处理策略按照上面的要求都是不兼容的。 唯一的办法就是服务发现能够继续发现 service-a, service-b, 并把地址指向合并的服务xxx。 这个方案是复杂的,而且容易出错。 java-chassis/demo/demo-multiple有个很好的例子尽可能减少合并后客户端的修改, 但仍然做不到兼容。 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: Merged the master branch
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 fe789f8da06c87c10e2a5cf9ef963fadfbb15b52 Merge: eab31f2 e162914 Author: Willem Jiang AuthorDate: Thu May 28 20:47:44 2020 +0800 Merged the master branch .gitignore | 2 ++ _pages/cn/summer2020.html | 10 -- _pages/cn/summer2020.md| 39 + _pages/home.md | 2 +- assets/images/summer2020/summer2020_detail.png | Bin 0 -> 59001 bytes .../images/summer2020/summer2020_introduction.png | Bin 0 -> 485781 bytes 6 files changed, 42 insertions(+), 11 deletions(-) diff --cc .gitignore index 655583d,0901c87..5998938 --- a/.gitignore +++ b/.gitignore @@@ -2,3 -2,6 +2,5 @@@ .DS_Store Gemfile.lock _site -content + .ruby-gemset + .ruby-version
[servicecomb-website] branch asf-site updated (eab31f2 -> 241f854)
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 eab31f2 Publish the website add e162914 add summer2020 content new fe789f8 Merged the master branch new 241f854 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: .gitignore | 2 + _pages/cn/summer2020.html | 10 _pages/cn/summer2020.md| 39 + _pages/home.md | 2 +- assets/images/summer2020/summer2020_detail.png | Bin 0 -> 59001 bytes .../images/summer2020/summer2020_introduction.png | Bin 0 -> 485781 bytes .../assets/images/summer2020/summer2020_detail.png | Bin 0 -> 59001 bytes .../images/summer2020/summer2020_introduction.png | Bin 0 -> 485781 bytes content/cn/summer2020.html | 65 + content/feed.xml | 2 +- content/index.html | 2 +- 11 files changed, 97 insertions(+), 25 deletions(-) delete mode 100644 _pages/cn/summer2020.html create mode 100644 _pages/cn/summer2020.md create mode 100644 assets/images/summer2020/summer2020_detail.png create mode 100644 assets/images/summer2020/summer2020_introduction.png create mode 100644 content/assets/images/summer2020/summer2020_detail.png create mode 100644 content/assets/images/summer2020/summer2020_introduction.png
[servicecomb-website] 02/02: Publish the website
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 241f8543cbb3a42c2d10f65046f9168292c41416 Author: Willem Jiang AuthorDate: Thu May 28 20:49:11 2020 +0800 Publish the website --- .../assets/images/summer2020/summer2020_detail.png | Bin 0 -> 59001 bytes .../images/summer2020/summer2020_introduction.png | Bin 0 -> 485781 bytes content/cn/summer2020.html | 65 + content/feed.xml | 2 +- content/index.html | 2 +- 5 files changed, 55 insertions(+), 14 deletions(-) diff --git a/content/assets/images/summer2020/summer2020_detail.png b/content/assets/images/summer2020/summer2020_detail.png new file mode 100644 index 000..c1e1d7e Binary files /dev/null and b/content/assets/images/summer2020/summer2020_detail.png differ diff --git a/content/assets/images/summer2020/summer2020_introduction.png b/content/assets/images/summer2020/summer2020_introduction.png new file mode 100644 index 000..ceed987 Binary files /dev/null and b/content/assets/images/summer2020/summer2020_introduction.png differ diff --git a/content/cn/summer2020.html b/content/cn/summer2020.html index 4c114e6..7e92e53 100644 --- a/content/cn/summer2020.html +++ b/content/cn/summer2020.html @@ -19,12 +19,12 @@ -暑期 2020 - Apache ServiceComb +开源软件供应链点亮计划-暑期2020 - Apache ServiceComb - + @@ -33,7 +33,7 @@ - + https://github.com/pages/apache/incubator-servicecomb-website/cn/summer2020;> @@ -41,13 +41,13 @@ - + - - + + @@ -265,7 +265,7 @@ - Home > 暑期 2020 + Home > 开源软件供应链点亮计划-暑期2020 @@ -293,8 +293,8 @@ http://schema.org/CreativeWork;> - - + + @@ -302,7 +302,7 @@ -暑期 2020 +开源软件供应链点亮计划-暑期2020 @@ -310,7 +310,48 @@ -该页面马上上线... + + +Apache ServiceComb 面对高校在校学生也推出了3个开源社区项目,通过参与该活动,你将获得: + + + +ServiceComb summer2020项目如下: + + 微服务一键部署工具 + + 一个微服务系统会包含会多个微服务,微服务框架本身的也会包含多个组件,如注册中心,网关,分布式事务组件等,如何方便快速的将整个微服务在不同的环境中迁移是一个挑战。希望能使用Terraform开发一个工具,帮助ServiceComb微服务 +应用一键迁移上云。(AWS, 华为云等)。 + 难度: 中 + 导师: 田晓亮 xiaoliang.t...@gmail.com + 所需要技能: Java or Go, Terraform + + + Java-chassis 支持 JDK 14 + + Java-chassis是ServiceComb微服务框架的Java SDK, 希望调整它的部分源代码,实现当开发者使用JDK 14 + java-chassis开发微服务时能正常开发,同时java-chassis在JDK14下能通过所有的测试用例。 + 难度: 中 + 导师: 刘宝 liu...@apache.org + 所需要技能: Java, JDK 14 + + + 添加新的Object Storage Service云服务SDK组件,方便微服务开发者使用OBS。 + + 企业进行微服务转型的一大原因是为了更方便的上云,通过为开发者提供健壮的OBS访问SDK,让开发者可以简单的使用注解将OBS储存的内容 +注入java对象实例中。 + 难度: 低 + 导师: 田晓亮 xiaoliang.t...@gmail.com + 所需技能: Java + + + + +如何参与 + + 直接跟导师发邮件。导师将知道你完成后续工作。 + 了解更多如何参与的信息: https://isrc.iscas.ac.cn/summer2020/help/student.html#%E5%AD%A6%E7%94%9F%E5%A6%82%E4%BD%95%E6%8A%A5%E5%90%8D;>如何报名 + + @@ -377,7 +418,7 @@ Contribute http://issues.apache.org/jira/browse/SCB;>Report a Doc Issue -https://github.com/apache/servicecomb-website/edit/master/_pages/cn/summer2020.html;>Edit This Page on Github +https://github.com/apache/servicecomb-website/edit/master/_pages/cn/summer2020.md;>Edit This Page on Github Code Submit Guide Security diff --git a/content/feed.xml b/content/feed.xml index d175e84..3671f0f 100644 --- a/content/feed.xml +++ b/content/feed.xml @@ -1,4 +1,4 @@ -http://www.w3.org/2005/Atom; >https://jekyllrb.com/; version="3.8.5">Jekyll2020-05-26T22:26:42+08:00/feed.xmlApache ServiceCombThe homepage of ServiceComb{name=nil, avatar= [...] +http://www.w3.org/2005/Atom; >https://jekyllrb.com/; version="3.8.5">Jekyll2020-05-28T20:47:55+08:00/feed.xmlApache ServiceCombThe homepage of ServiceComb{name=nil, avatar= [...] p本次讲座得到广东工业大学计算机院学生会同学们的鼎力支持和参与。报名通道开放后,报名人数迅速达到150+,活动放在学校报告厅举办。即便在周日,同学们的热情仍然很高,给广东工业大学的同学们点赞。/p diff --git a/content/index.html b/content/index.html index d135a31..633072e 100644 --- a/content/index.html +++ b/content/index.html @@ -335,7 +335,7 @@ Latest News left_ul li{width:100%} - Apache ServiceComb Summer Code 2020 Apache ServiceComb Java-Chassis Release Version 2.0.2 Apache ServiceComb Service-Center Release Version 1.3.0 Apache ServiceComb Pack 0.5.0 is released Apache ServiceComb Toolkit 0.2.0 is r [...] + Apache ServiceComb Summer Code 2020 Apache ServiceComb Java-Chassis Release Version 2.0.2 Apache ServiceComb Service-Center Release Version 1.3.0 Apache ServiceComb Pack 0.5.0 is released Apache ServiceComb Toolkit 0.2.0 i [...] Apache ServiceComb accept code donation from NewCapec Institute Apache
[servicecomb-website] branch master updated: add summer2020 content
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 e162914 add summer2020 content e162914 is described below commit e162914074e7d5b8845ebb3a84ac133feb0e0f15 Author: alec.zheng AuthorDate: Thu May 28 18:18:24 2020 +0800 add summer2020 content --- .gitignore | 2 ++ _pages/cn/summer2020.html | 10 -- _pages/cn/summer2020.md| 39 + _pages/home.md | 2 +- assets/images/summer2020/summer2020_detail.png | Bin 0 -> 59001 bytes .../images/summer2020/summer2020_introduction.png | Bin 0 -> 485781 bytes 6 files changed, 42 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 2f493e8..0901c87 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ Gemfile.lock _site content +.ruby-gemset +.ruby-version diff --git a/_pages/cn/summer2020.html b/_pages/cn/summer2020.html deleted file mode 100644 index a8334cb..000 --- a/_pages/cn/summer2020.html +++ /dev/null @@ -1,10 +0,0 @@ -title: "暑期 2020" -lang: en -ref: summer2020 -permalink: /cn/summer2020 -excerpt: "暑期2020" -last_modified_at: 2020-05-25T09:46:01+08:00 - -该页面马上上线... \ No newline at end of file diff --git a/_pages/cn/summer2020.md b/_pages/cn/summer2020.md new file mode 100644 index 000..22f52d1 --- /dev/null +++ b/_pages/cn/summer2020.md @@ -0,0 +1,39 @@ +--- +title: "开源软件供应链点亮计划-暑期2020" +lang: en +ref: summer2020 +permalink: /cn/summer2020 +excerpt: "开源软件供应链点亮计划-暑期2020" +last_modified_at: 2020-05-25T09:46:01+08:00 +--- + +![summer2020 introduction](/assets/images/summer2020/summer2020_introduction.png) + +### Apache ServiceComb 面对高校在校学生也推出了3个开源社区项目,通过参与该活动,你将获得: + +![summer2020 gains](/assets/images/summer2020/summer2020_detail.png) + +### ServiceComb summer2020项目如下: +1. 微服务一键部署工具 + + 一个微服务系统会包含会多个微服务,微服务框架本身的也会包含多个组件,如注册中心,网关,分布式事务组件等,如何方便快速的将整个微服务在不同的环境中迁移是一个挑战。希望能使用Terraform开发一个工具,帮助ServiceComb微服务 + 应用一键迁移上云。(AWS, 华为云等)。 + + 难度: 中 + + 导师: 田晓亮 xiaoliang.t...@gmail.com + + 所需要技能: Java or Go, Terraform + +2. Java-chassis 支持 JDK 14 + + Java-chassis是ServiceComb微服务框架的Java SDK, 希望调整它的部分源代码,实现当开发者使用JDK 14 + java-chassis开发微服务时能正常开发,同时java-chassis在JDK14下能通过所有的测试用例。 + + 难度: 中 + + 导师: 刘宝 liu...@apache.org + + 所需要技能: Java, JDK 14 + +3. 添加新的Object Storage Service云服务SDK组件,方便微服务开发者使用OBS。 + + 企业进行微服务转型的一大原因是为了更方便的上云,通过为开发者提供健壮的OBS访问SDK,让开发者可以简单的使用注解将OBS储存的内容 + 注入java对象实例中。 + + 难度: 低 + + 导师: 田晓亮 xiaoliang.t...@gmail.com + + 所需技能: Java + +### 如何参与 ++ 直接跟导师发邮件。导师将知道你完成后续工作。 ++ 了解更多如何参与的信息: [如何报名](https://isrc.iscas.ac.cn/summer2020/help/student.html#%E5%AD%A6%E7%94%9F%E5%A6%82%E4%BD%95%E6%8A%A5%E5%90%8D) diff --git a/_pages/home.md b/_pages/home.md index 77b999e..7ebff3a 100755 --- a/_pages/home.md +++ b/_pages/home.md @@ -22,7 +22,7 @@ intro: left_ul li{width:100%} -Apache ServiceComb Summer Code 2020 +Apache ServiceComb Summer Code 2020 Apache ServiceComb Java-Chassis Release Version 2.0.2 diff --git a/assets/images/summer2020/summer2020_detail.png b/assets/images/summer2020/summer2020_detail.png new file mode 100644 index 000..c1e1d7e Binary files /dev/null and b/assets/images/summer2020/summer2020_detail.png differ diff --git a/assets/images/summer2020/summer2020_introduction.png b/assets/images/summer2020/summer2020_introduction.png new file mode 100644 index 000..ceed987 Binary files /dev/null and b/assets/images/summer2020/summer2020_introduction.png differ
[servicecomb-java-chassis] 02/03: [SCB-1650]discovery schema from instancies directly
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 commit f4eed67640f15d9908fe914b9bf3fc37e43a5714 Author: liubao AuthorDate: Thu May 28 14:49:59 2020 +0800 [SCB-1650]discovery schema from instancies directly --- .../servicecomb/demo/registry/IServerEndpoint.java | 22 +++ .../demo/registry/SchemaDiscoveryTestCase.java | 50 +++ .../src/main/resources/registry.yaml | 9 ++ demo/demo-multi-registries/pom.xml | 4 + .../demo/CategorizedTestCaseRunner.java| 27 ++-- dependencies/bom/pom.xml | 5 + .../registry/consumer/MicroserviceManager.java | 26 +++- service-registry/pom.xml | 1 + service-registry/registry-local/pom.xml| 2 +- .../localregistry/LocalRegistryStore.java | 81 --- .../pom.xml| 33 + .../schemadiscovery/SchemaDiscovery.java | 154 + .../schemadiscovery/SchemaDiscoveryEndpoint.java | 37 + .../schemadiscovery/SchemaDiscoveryService.java| 26 .../org.apache.servicecomb.registry.api.Discovery | 18 +++ .../src/main/resources/microservice.yaml | 14 +- service-registry/registry-service-center/pom.xml | 2 +- .../registry/AbstractServiceRegistry.java | 1 + service-registry/registry-zero-config/pom.xml | 2 +- 19 files changed, 441 insertions(+), 73 deletions(-) diff --git a/demo/demo-multi-registries/demo-multi-registries-client/src/main/java/org/apache/servicecomb/demo/registry/IServerEndpoint.java b/demo/demo-multi-registries/demo-multi-registries-client/src/main/java/org/apache/servicecomb/demo/registry/IServerEndpoint.java new file mode 100644 index 000..4d38e9e --- /dev/null +++ b/demo/demo-multi-registries/demo-multi-registries-client/src/main/java/org/apache/servicecomb/demo/registry/IServerEndpoint.java @@ -0,0 +1,22 @@ +/* + * 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.registry; + +public interface IServerEndpoint { + public String getName(String name); +} diff --git a/demo/demo-multi-registries/demo-multi-registries-client/src/main/java/org/apache/servicecomb/demo/registry/SchemaDiscoveryTestCase.java b/demo/demo-multi-registries/demo-multi-registries-client/src/main/java/org/apache/servicecomb/demo/registry/SchemaDiscoveryTestCase.java new file mode 100644 index 000..3ed4c1a --- /dev/null +++ b/demo/demo-multi-registries/demo-multi-registries-client/src/main/java/org/apache/servicecomb/demo/registry/SchemaDiscoveryTestCase.java @@ -0,0 +1,50 @@ +/* + * 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.registry; + +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 SchemaDiscoveryTestCase implements CategorizedTestCase { + @RpcReference(microserviceName = "thirdParty-no-schema-server", schemaId = "ServerEndpoint") + IServerEndpoint serverEndpoint; + + @Override + public void testRestTransport() throws Exception { +// invoke thirdParty-no-schema-server(mocked by
[servicecomb-java-chassis] 01/03: [SCB-1942]change Discovery getSchema with instances param
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 commit 6f24ec91154fb0c53ffed1ff4f82e11027b4cd2c Author: liubao AuthorDate: Wed May 27 15:37:30 2020 +0800 [SCB-1942]change Discovery getSchema with instances param --- .../core/definition/ServiceRegistryListener.java | 9 + .../apache/servicecomb/registry/DiscoveryManager.java | 7 --- .../apache/servicecomb/registry/api/Discovery.java| 4 +++- .../apache/servicecomb/registry/api/Registration.java | 5 + .../registry/cache/MicroserviceInstanceCache.java | 2 +- .../servicecomb/registry/swagger/SwaggerLoader.java | 12 .../servicecomb/localregistry/LocalDiscovery.java | 4 +++- .../serviceregistry/ServiceCenterDiscovery.java | 4 +++- .../serviceregistry/swagger/TestSwaggerLoader.java| 19 --- 9 files changed, 44 insertions(+), 22 deletions(-) diff --git a/core/src/main/java/org/apache/servicecomb/core/definition/ServiceRegistryListener.java b/core/src/main/java/org/apache/servicecomb/core/definition/ServiceRegistryListener.java index 24ac745..c10f0a5 100644 --- a/core/src/main/java/org/apache/servicecomb/core/definition/ServiceRegistryListener.java +++ b/core/src/main/java/org/apache/servicecomb/core/definition/ServiceRegistryListener.java @@ -24,13 +24,13 @@ import static org.apache.servicecomb.core.definition.CoreMetaUtils.getMicroservi import org.apache.servicecomb.core.SCBEngine; import org.apache.servicecomb.foundation.common.event.EnableExceptionPropagation; import org.apache.servicecomb.foundation.common.event.SubscriberOrder; +import org.apache.servicecomb.registry.api.event.CreateMicroserviceEvent; +import org.apache.servicecomb.registry.api.event.CreateMicroserviceVersionEvent; +import org.apache.servicecomb.registry.api.event.DestroyMicroserviceEvent; import org.apache.servicecomb.registry.api.registry.Microservice; import org.apache.servicecomb.registry.consumer.MicroserviceVersion; import org.apache.servicecomb.registry.consumer.MicroserviceVersions; import org.apache.servicecomb.registry.definition.DefinitionConst; -import org.apache.servicecomb.registry.api.event.CreateMicroserviceEvent; -import org.apache.servicecomb.registry.api.event.CreateMicroserviceVersionEvent; -import org.apache.servicecomb.registry.api.event.DestroyMicroserviceEvent; import com.google.common.eventbus.Subscribe; @@ -87,7 +87,8 @@ public class ServiceRegistryListener { if (!isServiceCenter) { // TODO: get schemas from instance for (String schemaId : microservice.getSchemas()) { -Swagger swagger = scbEngine.getSwaggerLoader().loadSwagger(microservice, schemaId); +Swagger swagger = scbEngine.getSwaggerLoader().loadSwagger(microservice, microserviceVersion.getInstances(), +schemaId); microserviceMeta.registerSchemaMeta(schemaId, swagger); } } diff --git a/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/DiscoveryManager.java b/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/DiscoveryManager.java index 23f98df..959e7e3 100644 --- a/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/DiscoveryManager.java +++ b/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/DiscoveryManager.java @@ -17,6 +17,7 @@ package org.apache.servicecomb.registry; +import java.util.Collection; import java.util.List; import java.util.stream.Collectors; @@ -87,7 +88,7 @@ public class DiscoveryManager { return this.appManager; } - public MicroserviceInstance findMicroserviceInstance(String serviceId, String instanceId) { + public MicroserviceInstance getMicroserviceInstance(String serviceId, String instanceId) { for (Discovery discovery : discoveryList) { MicroserviceInstance microserviceInstance = discovery.getMicroserviceInstance(serviceId, instanceId); if (microserviceInstance != null) { @@ -97,9 +98,9 @@ public class DiscoveryManager { return null; } - public String getSchema(String microserviceId, String schemaId) { + public String getSchema(String microserviceId, Collection instances, String schemaId) { for (Discovery discovery : discoveryList) { - String schema = discovery.getSchema(microserviceId, schemaId); + String schema = discovery.getSchema(microserviceId, instances, schemaId); if (schema != null) { return schema; } diff --git a/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/api/Discovery.java b/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/api/Discovery.java index a81416c..52c68a4 100644 --- a/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/api/Discovery.java +++
[servicecomb-java-chassis] 03/03: [SCB-1650]fix review comments
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 commit 8a7c8bcbd1556359879b6ed568af1089b911f166 Author: liubao AuthorDate: Thu May 28 16:41:21 2020 +0800 [SCB-1650]fix review comments --- .../registry/consumer/MicroserviceManager.java | 5 +++-- .../registry/AbstractServiceRegistry.java| 20 +--- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/consumer/MicroserviceManager.java b/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/consumer/MicroserviceManager.java index c4636d9..4fb414e 100644 --- a/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/consumer/MicroserviceManager.java +++ b/foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/consumer/MicroserviceManager.java @@ -20,6 +20,7 @@ package org.apache.servicecomb.registry.consumer; import java.util.HashMap; import java.util.Map; +import org.apache.servicecomb.foundation.common.concurrent.ConcurrentHashMapEx; import org.apache.servicecomb.registry.api.event.MicroserviceInstanceChangedEvent; import org.apache.servicecomb.registry.api.event.task.SafeModeChangeEvent; import org.slf4j.Logger; @@ -33,7 +34,7 @@ public class MicroserviceManager { private String appId; // key: microserviceName - private Map versionsByName = new HashMap<>(); + private Map versionsByName = new ConcurrentHashMapEx<>(); private Object lock = new Object(); @@ -57,8 +58,8 @@ public class MicroserviceManager { microserviceVersions = versionsByName.get(microserviceName); if (microserviceVersions == null) { microserviceVersions = new MicroserviceVersions(appManager, appId, microserviceName); - versionsByName.put(microserviceName, microserviceVersions); microserviceVersions.pullInstances(); + versionsByName.put(microserviceName, microserviceVersions); } } } diff --git a/service-registry/registry-service-center/src/main/java/org/apache/servicecomb/serviceregistry/registry/AbstractServiceRegistry.java b/service-registry/registry-service-center/src/main/java/org/apache/servicecomb/serviceregistry/registry/AbstractServiceRegistry.java index ffc17e7..c6ff17e 100644 --- a/service-registry/registry-service-center/src/main/java/org/apache/servicecomb/serviceregistry/registry/AbstractServiceRegistry.java +++ b/service-registry/registry-service-center/src/main/java/org/apache/servicecomb/serviceregistry/registry/AbstractServiceRegistry.java @@ -29,23 +29,26 @@ import java.util.concurrent.ExecutorService; import org.apache.servicecomb.foundation.common.concurrency.SuppressedRunnableWrapper; import org.apache.servicecomb.registry.DiscoveryManager; -import org.apache.servicecomb.serviceregistry.RegistryUtils; -import org.apache.servicecomb.serviceregistry.ServiceRegistry; -import org.apache.servicecomb.serviceregistry.api.Const; +import org.apache.servicecomb.registry.api.event.MicroserviceInstanceChangedEvent; +import org.apache.servicecomb.registry.api.event.task.RecoveryEvent; +import org.apache.servicecomb.registry.api.event.task.SafeModeChangeEvent; +import org.apache.servicecomb.registry.api.event.task.ShutdownEvent; import org.apache.servicecomb.registry.api.registry.BasePath; import org.apache.servicecomb.registry.api.registry.Framework; import org.apache.servicecomb.registry.api.registry.FrameworkVersions; import org.apache.servicecomb.registry.api.registry.Microservice; import org.apache.servicecomb.registry.api.registry.MicroserviceFactory; import org.apache.servicecomb.registry.api.registry.MicroserviceInstance; -import org.apache.servicecomb.registry.api.event.MicroserviceInstanceChangedEvent; -import org.apache.servicecomb.serviceregistry.client.ServiceRegistryClient; import org.apache.servicecomb.registry.api.registry.MicroserviceInstances; -import org.apache.servicecomb.serviceregistry.config.ServiceRegistryConfig; import org.apache.servicecomb.registry.consumer.MicroserviceManager; import org.apache.servicecomb.registry.consumer.StaticMicroserviceVersions; import org.apache.servicecomb.registry.definition.MicroserviceDefinition; import org.apache.servicecomb.registry.definition.MicroserviceNameParser; +import org.apache.servicecomb.serviceregistry.RegistryUtils; +import org.apache.servicecomb.serviceregistry.ServiceRegistry; +import org.apache.servicecomb.serviceregistry.api.Const; +import org.apache.servicecomb.serviceregistry.client.ServiceRegistryClient; +import org.apache.servicecomb.serviceregistry.config.ServiceRegistryConfig; import org.apache.servicecomb.serviceregistry.registry.cache.MicroserviceCache; import org.apache.servicecomb.serviceregistry.registry.cache.MicroserviceCacheKey;
[servicecomb-java-chassis] branch master updated (87aedb9 -> 8a7c8bc)
This is an automated email from the ASF dual-hosted git repository. liubao pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git. from 87aedb9 [SCB-1951] enhance HttpTransportContext new 6f24ec9 [SCB-1942]change Discovery getSchema with instances param new f4eed67 [SCB-1650]discovery schema from instancies directly new 8a7c8bc [SCB-1650]fix review comments The 3 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: .../core/definition/ServiceRegistryListener.java | 9 +- .../demo/registry/IServerEndpoint.java}| 6 +- ...rTestCase.java => SchemaDiscoveryTestCase.java} | 20 +-- .../src/main/resources/registry.yaml | 9 ++ demo/demo-multi-registries/pom.xml | 4 + .../demo/CategorizedTestCaseRunner.java| 27 ++-- dependencies/bom/pom.xml | 5 + .../servicecomb/registry/DiscoveryManager.java | 7 +- .../apache/servicecomb/registry/api/Discovery.java | 4 +- .../servicecomb/registry/api/Registration.java | 5 + .../registry/cache/MicroserviceInstanceCache.java | 2 +- .../registry/consumer/MicroserviceManager.java | 23 ++- .../registry/swagger/SwaggerLoader.java| 12 +- service-registry/pom.xml | 1 + service-registry/registry-local/pom.xml| 2 +- .../servicecomb/localregistry/LocalDiscovery.java | 4 +- .../localregistry/LocalRegistryStore.java | 81 --- .../registry-schema-discovery}/pom.xml | 28 ++-- .../schemadiscovery/SchemaDiscovery.java | 154 + .../schemadiscovery/SchemaDiscoveryEndpoint.java | 29 ++-- .../schemadiscovery/SchemaDiscoveryService.java| 9 +- .../org.apache.servicecomb.registry.api.Discovery | 2 +- .../src/main/resources/microservice.yaml | 9 +- service-registry/registry-service-center/pom.xml | 2 +- .../serviceregistry/ServiceCenterDiscovery.java| 4 +- .../registry/AbstractServiceRegistry.java | 19 ++- .../serviceregistry/swagger/TestSwaggerLoader.java | 19 ++- service-registry/registry-zero-config/pom.xml | 2 +- 28 files changed, 376 insertions(+), 122 deletions(-) copy demo/{demo-crossapp/crossapp-client/src/main/java/org/apache/servicecomb/demo/crossapp/HelloWorld.java => demo-multi-registries/demo-multi-registries-client/src/main/java/org/apache/servicecomb/demo/registry/IServerEndpoint.java} (87%) copy demo/demo-multi-registries/demo-multi-registries-client/src/main/java/org/apache/servicecomb/demo/registry/{MultiRegistriesServerTestCase.java => SchemaDiscoveryTestCase.java} (71%) copy {edge/edge-core => service-registry/registry-schema-discovery}/pom.xml (84%) create mode 100644 service-registry/registry-schema-discovery/src/main/java/org/apache/servicecomb/schemadiscovery/SchemaDiscovery.java copy integration-tests/jaxrs-tests/src/test/java/org/apache/servicecomb/demo/jaxrs/tests/endpoints/EnglishGreetingRestEndpoint.java => service-registry/registry-schema-discovery/src/main/java/org/apache/servicecomb/schemadiscovery/SchemaDiscoveryEndpoint.java (66%) copy swagger/swagger-invocation/invocation-core/src/test/java/org/apache/servicecomb/swagger/invocation/schemas/ConsumerAddWithContext.java => service-registry/registry-schema-discovery/src/main/java/org/apache/servicecomb/schemadiscovery/SchemaDiscoveryService.java (81%) copy service-registry/{registry-local => registry-schema-discovery}/src/main/resources/META-INF/services/org.apache.servicecomb.registry.api.Discovery (93%) copy {integration-tests/it-consumer => service-registry/registry-schema-discovery}/src/main/resources/microservice.yaml (91%)
[servicecomb-java-chassis] branch master updated: [SCB-1951] enhance HttpTransportContext
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 87aedb9 [SCB-1951] enhance HttpTransportContext 87aedb9 is described below commit 87aedb97533bf4b414ea5bc4385b3721dc69c4d8 Author: wujimin AuthorDate: Thu May 28 16:38:57 2020 +0800 [SCB-1951] enhance HttpTransportContext --- .../apache/servicecomb/common/rest/HttpTransportContext.java | 11 ++- .../servicecomb/common/rest/VertxHttpTransportContext.java| 5 +++-- .../apache/servicecomb/common/rest/VertxRestInvocation.java | 5 +++-- .../transport/rest/servlet/RestServletProducerInvocation.java | 2 +- .../servicecomb/transport/rest/vertx/VertxRestDispatcher.java | 8 5 files changed, 21 insertions(+), 10 deletions(-) diff --git a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/HttpTransportContext.java b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/HttpTransportContext.java index 4e048a8..4cfb259 100644 --- a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/HttpTransportContext.java +++ b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/HttpTransportContext.java @@ -16,6 +16,7 @@ */ package org.apache.servicecomb.common.rest; +import org.apache.servicecomb.common.rest.codec.produce.ProduceProcessor; import org.apache.servicecomb.foundation.vertx.http.HttpServletRequestEx; import org.apache.servicecomb.foundation.vertx.http.HttpServletResponseEx; import org.apache.servicecomb.swagger.invocation.context.TransportContext; @@ -25,9 +26,13 @@ public class HttpTransportContext implements TransportContext { private HttpServletResponseEx responseEx; - public HttpTransportContext(HttpServletRequestEx requestEx, HttpServletResponseEx responseEx) { + private ProduceProcessor produceProcessor; + + public HttpTransportContext(HttpServletRequestEx requestEx, HttpServletResponseEx responseEx, + ProduceProcessor produceProcessor) { this.requestEx = requestEx; this.responseEx = responseEx; +this.produceProcessor = produceProcessor; } public HttpServletRequestEx getRequestEx() { @@ -37,4 +42,8 @@ public class HttpTransportContext implements TransportContext { public HttpServletResponseEx getResponseEx() { return responseEx; } + + public ProduceProcessor getProduceProcessor() { +return produceProcessor; + } } diff --git a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/VertxHttpTransportContext.java b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/VertxHttpTransportContext.java index 5e2b01b..607dccb 100644 --- a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/VertxHttpTransportContext.java +++ b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/VertxHttpTransportContext.java @@ -16,6 +16,7 @@ */ package org.apache.servicecomb.common.rest; +import org.apache.servicecomb.common.rest.codec.produce.ProduceProcessor; import org.apache.servicecomb.foundation.vertx.http.HttpServletRequestEx; import org.apache.servicecomb.foundation.vertx.http.HttpServletResponseEx; import org.apache.servicecomb.swagger.invocation.context.VertxTransportContext; @@ -30,8 +31,8 @@ public class VertxHttpTransportContext extends HttpTransportContext implements V private Context vertxContext; public VertxHttpTransportContext(RoutingContext routingContext, HttpServletRequestEx requestEx, - HttpServletResponseEx responseEx) { -super(requestEx, responseEx); + HttpServletResponseEx responseEx, ProduceProcessor produceProcessor) { +super(requestEx, responseEx, produceProcessor); this.routingContext = routingContext; this.vertxContext = Vertx.currentContext(); diff --git a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/VertxRestInvocation.java b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/VertxRestInvocation.java index b6e5534..c2a664a 100644 --- a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/VertxRestInvocation.java +++ b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/VertxRestInvocation.java @@ -27,8 +27,9 @@ public class VertxRestInvocation extends RestProducerInvocation { super.createInvocation(); RoutingContext routingContext = ((VertxServerRequestToHttpServletRequest) this.requestEx).getContext(); -VertxHttpTransportContext transportContext = new VertxHttpTransportContext(routingContext, requestEx, responseEx); - +VertxHttpTransportContext transportContext = new VertxHttpTransportContext(routingContext, requestEx, responseEx, +produceProcessor); + invocation.setTransportContext(transportContext);
[servicecomb-java-chassis] branch master updated: [SCB-1952] enhance HighwayTransportContext
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 a329f50 [SCB-1952] enhance HighwayTransportContext a329f50 is described below commit a329f50ed4aeedc7fee08853e8eb5105e1c0e57b Author: wujimin AuthorDate: Thu May 28 16:56:47 2020 +0800 [SCB-1952] enhance HighwayTransportContext --- .../transport/highway/HighwayServerInvoke.java | 9 ++- .../transport/highway/HighwayTransportContext.java | 73 +- 2 files changed, 80 insertions(+), 2 deletions(-) diff --git a/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayServerInvoke.java b/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayServerInvoke.java index 3c4442c..bf5ff12 100644 --- a/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayServerInvoke.java +++ b/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayServerInvoke.java @@ -173,7 +173,14 @@ public class HighwayServerInvoke { operationMeta, null); operationProtobuf = ProtobufManager.getOrCreateOperation(invocation); - invocation.setTransportContext(new HighwayTransportContext()); + HighwayTransportContext transportContext = new HighwayTransportContext() + .setConnection(connection) + .setMsgId(msgId) + .setHeader(header) + .setBodyBuffer(bodyBuffer) + .setOperationProtobuf(ProtobufManager.getOrCreateOperation(invocation)); + invocation.setTransportContext(transportContext); + invocation.onStart(null, start); invocation.getInvocationStageTrace().startSchedule(); diff --git a/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayTransportContext.java b/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayTransportContext.java index d45e786..bf4b699 100644 --- a/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayTransportContext.java +++ b/transports/transport-highway/src/main/java/org/apache/servicecomb/transport/highway/HighwayTransportContext.java @@ -16,13 +16,29 @@ */ package org.apache.servicecomb.transport.highway; +import org.apache.servicecomb.codec.protobuf.definition.OperationProtobuf; +import org.apache.servicecomb.foundation.vertx.tcp.TcpConnection; import org.apache.servicecomb.swagger.invocation.context.VertxTransportContext; +import org.apache.servicecomb.transport.highway.message.RequestHeader; import io.vertx.core.Context; import io.vertx.core.Vertx; +import io.vertx.core.buffer.Buffer; public class HighwayTransportContext implements VertxTransportContext { - protected Context vertxContext; + private final Context vertxContext; + + private TcpConnection connection; + + private long msgId; + + private RequestHeader header; + + private Buffer bodyBuffer; + + private OperationProtobuf operationProtobuf; + + private Buffer responseBuffer; public HighwayTransportContext() { this.vertxContext = Vertx.currentContext(); @@ -32,4 +48,59 @@ public class HighwayTransportContext implements VertxTransportContext { public Context getVertxContext() { return vertxContext; } + + public TcpConnection getConnection() { +return connection; + } + + public HighwayTransportContext setConnection(TcpConnection connection) { +this.connection = connection; +return this; + } + + public long getMsgId() { +return msgId; + } + + public HighwayTransportContext setMsgId(long msgId) { +this.msgId = msgId; +return this; + } + + public RequestHeader getHeader() { +return header; + } + + public HighwayTransportContext setHeader(RequestHeader header) { +this.header = header; +return this; + } + + public Buffer getBodyBuffer() { +return bodyBuffer; + } + + public HighwayTransportContext setBodyBuffer(Buffer bodyBuffer) { +this.bodyBuffer = bodyBuffer; +return this; + } + + public OperationProtobuf getOperationProtobuf() { +return operationProtobuf; + } + + public HighwayTransportContext setOperationProtobuf( + OperationProtobuf operationProtobuf) { +this.operationProtobuf = operationProtobuf; +return this; + } + + public Buffer getResponseBuffer() { +return responseBuffer; + } + + public HighwayTransportContext setResponseBuffer(Buffer responseBuffer) { +this.responseBuffer = responseBuffer; +return this; + } }
[GitHub] [servicecomb-java-chassis] coveralls edited a comment on pull request #1789: [SCB-1650]discovery schema from instancies directly
coveralls edited a comment on pull request #1789: URL: https://github.com/apache/servicecomb-java-chassis/pull/1789#issuecomment-635167160 [![Coverage Status](https://coveralls.io/builds/31085788/badge)](https://coveralls.io/builds/31085788) Coverage decreased (-0.1%) to 84.49% when pulling **7f5f7df27e87bf6ad8698dc745ea82de1b16e570 on liubao68:liubao** into **ff4d309d8e39558af9b66e2c8aa57e48cf0cd974 on apache:master**. 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] wujimin opened a new pull request #1791: [SCB-1952] enhance HighwayTransportContext
wujimin opened a new pull request #1791: URL: https://github.com/apache/servicecomb-java-chassis/pull/1791 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] wujimin opened a new pull request #1790: [SCB-1951] enhance HttpTransportContext
wujimin opened a new pull request #1790: URL: https://github.com/apache/servicecomb-java-chassis/pull/1790 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 a change in pull request #1789: [SCB-1650]discovery schema from instancies directly
liubao68 commented on a change in pull request #1789: URL: https://github.com/apache/servicecomb-java-chassis/pull/1789#discussion_r431674257 ## File path: service-registry/registry-local/src/main/java/org/apache/servicecomb/localregistry/LocalRegistryStore.java ## @@ -83,9 +90,28 @@ public void run() { selfMicroserviceInstance.setInstanceId(selfMicroservice.getServiceId()); selfMicroserviceInstance.setServiceId(selfMicroservice.getServiceId()); -InputStream is = this.getClass().getClassLoader().getResourceAsStream(REGISTRY_FILE_NAME); -if (is != null) { - initFromData(is); +InputStream is = null; + +try { + ClassLoader loader = JvmUtils.findClassLoader(); Review comment: I see many ohter places code like this. 'ResourceUtil#findResourcesBySuffix' returns `List` and not convinient for open stream. 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 a change in pull request #1789: [SCB-1650]discovery schema from instancies directly
liubao68 commented on a change in pull request #1789: URL: https://github.com/apache/servicecomb-java-chassis/pull/1789#discussion_r431674257 ## File path: service-registry/registry-local/src/main/java/org/apache/servicecomb/localregistry/LocalRegistryStore.java ## @@ -83,9 +90,28 @@ public void run() { selfMicroserviceInstance.setInstanceId(selfMicroservice.getServiceId()); selfMicroserviceInstance.setServiceId(selfMicroservice.getServiceId()); -InputStream is = this.getClass().getClassLoader().getResourceAsStream(REGISTRY_FILE_NAME); -if (is != null) { - initFromData(is); +InputStream is = null; + +try { + ClassLoader loader = JvmUtils.findClassLoader(); Review comment: I see many ohter places code like this. 'ResourceUtil#findResourcesBySuffix' returns List and not convinient for open stream. 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 a change in pull request #1789: [SCB-1650]discovery schema from instancies directly
liubao68 commented on a change in pull request #1789: URL: https://github.com/apache/servicecomb-java-chassis/pull/1789#discussion_r431663700 ## File path: service-registry/registry-service-center/src/main/java/org/apache/servicecomb/serviceregistry/registry/AbstractServiceRegistry.java ## @@ -263,6 +263,7 @@ public void destroy() { @Override // TODO: this is for 3rd party invocation, and a better way can be provided + // TODO: microserviceManager.getVersionsByName() can not be used, will delete this in SCB-1949 Review comment: OK. I'll fix the problem in next PR without delete the interface. 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 a change in pull request #1789: [SCB-1650]discovery schema from instancies directly
liubao68 commented on a change in pull request #1789: URL: https://github.com/apache/servicecomb-java-chassis/pull/1789#discussion_r431663386 ## File path: demo/demo-multi-registries/demo-multi-registries-client/src/main/java/org/apache/servicecomb/demo/registry/IServerEndpoint.java ## @@ -0,0 +1,22 @@ +/* + * 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.registry; + +public interface IServerEndpoint { Review comment: ServerEndpoint is used for class. Here is a demo, try a quick name like other interfaces in the demo. 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] wujimin commented on a change in pull request #1789: [SCB-1650]discovery schema from instancies directly
wujimin commented on a change in pull request #1789: URL: https://github.com/apache/servicecomb-java-chassis/pull/1789#discussion_r431659443 ## File path: service-registry/registry-service-center/src/main/java/org/apache/servicecomb/serviceregistry/registry/AbstractServiceRegistry.java ## @@ -263,6 +263,7 @@ public void destroy() { @Override // TODO: this is for 3rd party invocation, and a better way can be provided + // TODO: microserviceManager.getVersionsByName() can not be used, will delete this in SCB-1949 Review comment: 3rd party is a good mechanism, must not delete it. 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] wujimin commented on a change in pull request #1789: [SCB-1650]discovery schema from instancies directly
wujimin commented on a change in pull request #1789: URL: https://github.com/apache/servicecomb-java-chassis/pull/1789#discussion_r431653345 ## File path: service-registry/registry-local/src/main/java/org/apache/servicecomb/localregistry/LocalRegistryStore.java ## @@ -83,9 +90,28 @@ public void run() { selfMicroserviceInstance.setInstanceId(selfMicroservice.getServiceId()); selfMicroserviceInstance.setServiceId(selfMicroservice.getServiceId()); -InputStream is = this.getClass().getClassLoader().getResourceAsStream(REGISTRY_FILE_NAME); -if (is != null) { - initFromData(is); +InputStream is = null; + +try { + ClassLoader loader = JvmUtils.findClassLoader(); Review comment: try org.apache.servicecomb.foundation.common.utils.ResourceUtil#findResourcesBySuffix? 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] Neverstop closed issue #1786: 集成servicecomb 2.0.2 服务启动报错
Neverstop closed issue #1786: URL: https://github.com/apache/servicecomb-java-chassis/issues/1786 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] wujimin commented on a change in pull request #1789: [SCB-1650]discovery schema from instancies directly
wujimin commented on a change in pull request #1789: URL: https://github.com/apache/servicecomb-java-chassis/pull/1789#discussion_r431651062 ## File path: foundations/foundation-registry/src/main/java/org/apache/servicecomb/registry/consumer/MicroserviceManager.java ## @@ -45,11 +47,21 @@ public MicroserviceManager(AppManager appManager, String appId) { } public MicroserviceVersions getOrCreateMicroserviceVersions(String microserviceName) { -MicroserviceVersions microserviceVersions = versionsByName.computeIfAbsent(microserviceName, name -> { - MicroserviceVersions instance = new MicroserviceVersions(appManager, appId, microserviceName); - instance.pullInstances(); - return instance; -}); +// do not use ConcurrentHashMap computeIfAbsent for versionsByName +// because: when create MicroserviceVersions, one creation may depend on another +// MicroserviceVersions. And pullInstances will create a new MicroserviceVersions. +// Calling ConcurrentHashMap computeIfAbsent inside will get deadlock. +MicroserviceVersions microserviceVersions = versionsByName.get(microserviceName); Review comment: hashmap is not thread safe, not only for write, but also for read 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-mesher] branch master updated: Add unit test (#121)
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-mesher.git The following commit(s) were added to refs/heads/master by this push: new 77370a8 Add unit test (#121) 77370a8 is described below commit 77370a885f6553107111667d40d72918c6c47320 Author: t-xinlin AuthorDate: Thu May 28 15:56:54 2020 +0800 Add unit test (#121) * Remove ratelimiter handler * Add unit test for bootstrap * 修改bootstrap适配新的go-chassis * 修改go.mod适配新的go-chassis * UPdate travis.yaml * golint change * Fix: GoSecure Checker * Fix: travis.yam; * Fix bootstrap unit test * Fix: rm unused package * Fix: unit test error * Add unit test to dubbo protocl and http protocol modile. * Fix: 日志打印. * Add unit test to dubbo module. * Add UT for dubbo server. * Fix: unit test error. * Fix: unit test error. * Add unit test . * formate go file. * Fix: Unit test error. * Fix: Unit test error. Co-authored-by: “t_xin...@sina.com --- proxy/protocol/dubbo/client/dubbo_client_test.go | 44 +- proxy/protocol/dubbo/dubbo/codec_test.go | 26 proxy/protocol/dubbo/schema/schema_test.go | 115 +++- proxy/protocol/dubbo/server/server_test.go | 152 + .../simpleRegistry/simple_registry_server_test.go | 145 proxy/protocol/dubbo/utils/buffer.go | 5 +- proxy/protocol/dubbo/utils/buffer_test.go | 100 ++ .../dubbo_client_test.go => utils/bytes_test.go} | 46 +-- proxy/protocol/dubbo/utils/msgqueue_test.go| 116 proxy/protocol/dubbo/utils/thrmgr_test.go | 47 +++ proxy/protocol/dubbo/utils/typeutil.go | 5 +- proxy/protocol/dubbo/utils/typeutil_test.go| 147 12 files changed, 921 insertions(+), 27 deletions(-) diff --git a/proxy/protocol/dubbo/client/dubbo_client_test.go b/proxy/protocol/dubbo/client/dubbo_client_test.go index 3fb9fec..67a6273 100644 --- a/proxy/protocol/dubbo/client/dubbo_client_test.go +++ b/proxy/protocol/dubbo/client/dubbo_client_test.go @@ -18,11 +18,13 @@ package dubboclient import ( - "testing" - "time" - + "github.com/apache/servicecomb-mesher/proxy/protocol/dubbo/dubbo" "github.com/go-chassis/go-chassis/core/lager" "github.com/stretchr/testify/assert" + "net/http" + "net/http/httptest" + "net/url" + "testing" ) func init() { @@ -33,8 +35,38 @@ func init() { } func TestClientMgr_GetClient(t *testing.T) { + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusOK) + })) + + addr := ts.URL + u, _ := url.Parse(ts.URL) + addr = u.Host clientMgr := NewClientMgr() - c, err := clientMgr.GetClient("127.0.0.1:30101", time.Second*5) - assert.Error(t, err) - assert.Nil(t, c) + // case timeout=0 + c, err := clientMgr.GetClient(addr, 0) + assert.NoError(t, err) + assert.NotNil(t, c) + c.close() + + c, err = clientMgr.GetClient(addr, 0) + assert.NoError(t, err) + assert.NotNil(t, c) + + req := dubbo.NewDubboRequest() + c.Send(req) + + // case RspCallBack + resp := {} + resp.Init() + resp.SetStatus(dubbo.ServerError) + c.RspCallBack(resp) + + // case get addr + c.GetAddr() + + // case net error + ts.Close() + clientMgr.GetClient(addr, 0) + } diff --git a/proxy/protocol/dubbo/dubbo/codec_test.go b/proxy/protocol/dubbo/dubbo/codec_test.go index 1586341..771f5ae 100644 --- a/proxy/protocol/dubbo/dubbo/codec_test.go +++ b/proxy/protocol/dubbo/dubbo/codec_test.go @@ -29,10 +29,13 @@ import ( func TestDubboCodec_DecodeDubboReqBody(t *testing.T) { t.Log("If returns of rbf.ReadObject() is nil, should not panic") d := {} + + req := NewDubboRequest() resp := {} resp.Init() resp.SetStatus(ServerError) + wbf := {} rbf := {} rbf.SetBuffer([]byte{hessian.BC_NULL}) c := make([]byte, 10) @@ -43,5 +46,28 @@ func TestDubboCodec_DecodeDubboReqBody(t *testing.T) { obj, err := rbf.ReadObject() assert.Nil(t, err) assert.Nil(t, obj) + + assert.Equal(t, Hessian2, d.GetContentTypeID()) + // case EncodeDubboRsp + d.EncodeDubboRsp(resp, wbf) + + // case EncodeDubboReq + d.EncodeDubboReq(req, wbf) + + // case DecodeDubboRspBody d.DecodeDubboRspBody(rbf, resp) + + // case DecodeDubboReqBodyForRegstry + d.DecodeDubboReqBodyForRegstry(req, rbf) + headBuf :=
[servicecomb-java-chassis] branch master updated: [SCB-1948] cache invocation.producerArguments, avoid build one more time for validator
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 c5113e3 [SCB-1948] cache invocation.producerArguments, avoid build one more time for validator c5113e3 is described below commit c5113e36e177890dbb6fdbc58191f5d49fcef8e4 Author: wujimin AuthorDate: Thu May 28 09:59:40 2020 +0800 [SCB-1948] cache invocation.producerArguments, avoid build one more time for validator --- .../main/java/org/apache/servicecomb/core/Invocation.java| 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/servicecomb/core/Invocation.java b/core/src/main/java/org/apache/servicecomb/core/Invocation.java index 55bdbf3..2e542a0 100644 --- a/core/src/main/java/org/apache/servicecomb/core/Invocation.java +++ b/core/src/main/java/org/apache/servicecomb/core/Invocation.java @@ -102,6 +102,8 @@ public class Invocation extends SwaggerInvocation { private Map invocationArguments = Collections.emptyMap(); + private Object[] producerArguments; + private Map swaggerArguments = Collections.emptyMap(); public long getInvocationId() { @@ -256,12 +258,20 @@ public class Invocation extends SwaggerInvocation { } public Object[] toProducerArguments() { +if (producerArguments != null) { + return producerArguments; +} + Method method = operationMeta.getSwaggerProducerOperation().getProducerMethod(); Object[] args = new Object[method.getParameterCount()]; for (int i = 0; i < method.getParameterCount(); i++) { args[i] = this.invocationArguments.get(method.getParameters()[i].getName()); } -return args; +return producerArguments = args; + } + + public void clearProducerArguments() { +producerArguments = null; } public Endpoint getEndpoint() {
[GitHub] [servicecomb-java-chassis] liubao68 merged pull request #1788: [SCB-1948] cache invocation.producerArguments, avoid build one more time for validator
liubao68 merged pull request #1788: URL: https://github.com/apache/servicecomb-java-chassis/pull/1788 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 (ff4d309 -> 7df7f4d)
This is an automated email from the ASF dual-hosted git repository. liubao pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git. from ff4d309 [SCB-1943] rename package core.filter to core.registry.discovery add 7df7f4d [SCB-1946] add new exception converter for all filters, not only the last one No new revisions were added by this update. Summary of changes: .../servicecomb/core/exception/ExceptionCodes.java | 47 .../core/exception/ExceptionConverter.java | 54 + .../servicecomb/core/exception/Exceptions.java | 133 + .../converter/DefaultExceptionConverter.java | 65 ++ .../converter/InvocationExceptionConverter.java| 26 ++-- ...e.servicecomb.core.exception.ExceptionConverter | 3 +- .../servicecomb/core/exception/ExceptionsTest.java | 64 ++ .../invocation/exception/ExceptionFactory.java | 27 - .../invocation/exception/InvocationException.java | 22 +++- 9 files changed, 394 insertions(+), 47 deletions(-) copy clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/model/HealthCheckMode.java => core/src/main/java/org/apache/servicecomb/core/exception/ExceptionCodes.java (83%) mode change 100755 => 100644 create mode 100644 core/src/main/java/org/apache/servicecomb/core/exception/ExceptionConverter.java create mode 100644 core/src/main/java/org/apache/servicecomb/core/exception/Exceptions.java create mode 100644 core/src/main/java/org/apache/servicecomb/core/exception/converter/DefaultExceptionConverter.java copy integration-tests/it-edge/src/main/java/org/apache/servicecomb/it/edge/DemoDispatcherWithoutFailureHandler.java => core/src/main/java/org/apache/servicecomb/core/exception/converter/InvocationExceptionConverter.java (58%) copy common/common-access-log/src/main/resources/META-INF/services/org.apache.servicecomb.core.BootListener => core/src/main/resources/META-INF/services/org.apache.servicecomb.core.exception.ExceptionConverter (83%) create mode 100644 core/src/test/java/org/apache/servicecomb/core/exception/ExceptionsTest.java
[GitHub] [servicecomb-java-chassis] wujimin commented on a change in pull request #1789: [SCB-1650]discovery schema from instancies directly
wujimin commented on a change in pull request #1789: URL: https://github.com/apache/servicecomb-java-chassis/pull/1789#discussion_r431648032 ## File path: demo/demo-multi-registries/demo-multi-registries-client/src/main/java/org/apache/servicecomb/demo/registry/IServerEndpoint.java ## @@ -0,0 +1,22 @@ +/* + * 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.registry; + +public interface IServerEndpoint { Review comment: no need prefix "I"? 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 #1787: [SCB-1946] add new exception converter for all filters, not only the last one
liubao68 merged pull request #1787: URL: https://github.com/apache/servicecomb-java-chassis/pull/1787 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] coveralls commented on pull request #1789: [SCB-1650]discovery schema from instancies directly
coveralls commented on pull request #1789: URL: https://github.com/apache/servicecomb-java-chassis/pull/1789#issuecomment-635167160 [![Coverage Status](https://coveralls.io/builds/31083675/badge)](https://coveralls.io/builds/31083675) Coverage increased (+0.02%) to 84.616% when pulling **2753d18f25f48c2f7c51bde43fe1c4fc7abf3f6e on liubao68:liubao** into **ff4d309d8e39558af9b66e2c8aa57e48cf0cd974 on apache:master**. 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 opened a new pull request #1789: [SCB-1650]discovery schema from instancies directly
liubao68 opened a new pull request #1789: URL: https://github.com/apache/servicecomb-java-chassis/pull/1789 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