[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #1291: 那位大佬赶紧给看看啊,在线等,挺急的!!!

2021-06-08 Thread GitBox


liubao68 edited a comment on issue #1291:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1291#issuecomment-671898086


   ```
   java.lang.Error: no schema defined for xxx.xxx
at 
org.apache.servicecomb.provider.springmvc.reference.CseClientHttpRequest.createRequestMeta(CseClientHttpRequest.java:164)
 ~[provider-springmvc-1.3.0.B007.jar:1.3.0.B007]
at 
org.apache.servicecomb.provider.springmvc.reference.CseClientHttpRequest.execute(CseClientHttpRequest.java:144)
 ~[provider-springmvc-1.3.0.B007.jar:1.3.0.B007]
at 
org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:735) 
~[spring-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at 
org.springframework.web.client.RestTemplate.execute(RestTemplate.java:710) 
~[spring-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at 
org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:598) 
~[spring-web-5.1.13.RELEASE.jar:5.1.13.RELEASE]
at 
org.apache.servicecomb.provider.springmvc.reference.RestTemplateWrapper.exchange(RestTemplateWrapper.java:214)
 ~[provider-springmvc-1.3.0.B007.jar:1.3.0.B007]
   ```
   
   如果发生这个错误, 很有可能是在 java-chassis 启动没有就绪的情况下,调用远程接口。 比如在 bean 的初始化过程中调用其他远程接口。 
   
   发起对远程接口的调用, 需要在java-chassis启动就绪, 即 AFTER_REGISTRY 事件之后。 
参考[服务启动事件](http://servicecomb.gitee.io/servicecomb-java-chassis-doc/java-chassis/zh_CN/build-provider/event-listener.html)


-- 
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 edited a comment on issue #1505: 怎么自定义Jackson的ObjectMapper?

2021-06-08 Thread GitBox


liubao68 edited a comment on issue #1505:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1505#issuecomment-857309693


   你说的这种场景我理解和是否支持定制ObjectMapper没关系,比如可以使用 `@JsonProperty` 来处理java 
对象和json文本的映射。 
   ObjectMapper不允许定制更多的强调是标准行为, 比如对于`Date`类型,按照Open API的标准,一定是按照 ISO 标准格式编码, 定制 
`Date`的序列化方式会使得同样的 swagger, 不同的开发者返回的 json 文本有差异。 
   
   update: 上面的观点是从java访问另外语言的snake case json接口的角度来说明的。 
如果业务的需求是“所有的接口的swagger对外呈现都是snake case”, 由于java本身处理snake 
case比较麻烦,通过序列化参数保证来减少工作量,这种场景是适合定制下序列化参数的,不违背标准化行为。 
   
   定制ObjectMapper的重点是考虑请求链路上(比如网关->A->B的整个处理过程)所有存在序列化、反序列化都采用一样的设置。 
不建议定制也是防止开发者疏漏,以后处理兼容性问题会将系统变得很复杂和不好理解。 


-- 
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 edited a comment on issue #1505: 怎么自定义Jackson的ObjectMapper?

2021-06-08 Thread GitBox


liubao68 edited a comment on issue #1505:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1505#issuecomment-857309693


   你说的这种场景我理解和是否支持定制ObjectMapper没关系,比如可以使用 `@JsonProperty` 来处理java 
对象和json文本的映射。 
   ObjectMapper不允许定制更多的强调是标准行为, 比如对于`Date`类型,按照Open API的标准,一定是按照 ISO 标准格式编码, 定制 
`Date`的序列化方式会使得同样的 swagger, 不同的开发者返回的 json 文本有差异。 
   
   update: 上面的观点是从java访问另外语言的snake case json接口的角度来说明的。 
如果业务的需求是“所有的接口的swagger对外呈现都是snake case”, 由于java本身处理snake 
case比较麻烦,通过序列化参数保证来减少工作量,这种场景是适合定制下序列化参数的,不违背标准化行为。 
   
   定制ObjectMapper的重点是考虑请求链路上(比如网关->A->B的整个处理过程)所有存在序列化、反序列化都采用一样的设置。 
不建议定制也是防止开发者疏漏。 


-- 
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 #1505: 怎么自定义Jackson的ObjectMapper?

2021-06-08 Thread GitBox


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


   你说的这种场景我理解和是否支持定制ObjectMapper没关系,比如可以使用 `@JsonProperty` 来处理java 
对象和json文本的映射。 
   ObjectMapper不允许定制更多的强调是标准行为, 比如对于`Date`类型,按照Open API的标准,一定是按照 ISO 标准格式编码, 定制 
`Date`的序列化方式会使得同样的 swagger, 不同的开发者返回的 json 文本有差异。 


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

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




[GitHub] [servicecomb-service-center] robotLJW merged pull request #1040: refactor: must eliminate god class DataSource

2021-06-08 Thread GitBox


robotLJW merged pull request #1040:
URL: https://github.com/apache/servicecomb-service-center/pull/1040


   


-- 
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-service-center] tianxiaoliang commented on issue #1042: datasource/mongo重构

2021-06-08 Thread GitBox


tianxiaoliang commented on issue #1042:
URL: 
https://github.com/apache/servicecomb-service-center/issues/1042#issuecomment-857295954


   #1040 


-- 
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-service-center] branch master updated: Update release README (#1045)

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

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


The following commit(s) were added to refs/heads/master by this push:
 new 0747731  Update release README (#1045)
0747731 is described below

commit 07477311414645358a19216fc793c146e978ce63
Author: little-cui 
AuthorDate: Wed Jun 9 09:01:06 2021 +0800

Update release README (#1045)
---
 docs/release/Readme.md | 34 +
 scripts/release/README.md  | 10 +++--
 scripts/release/archive.sh | 54 ++
 3 files changed, 91 insertions(+), 7 deletions(-)

diff --git a/docs/release/Readme.md b/docs/release/Readme.md
index 1c4565a..f5d6899 100644
--- a/docs/release/Readme.md
+++ b/docs/release/Readme.md
@@ -50,3 +50,37 @@ Below is the list of the files which has been excluded from 
the list of RAT tool
 - glide.yaml go.mod go.sum : Skip dependency config files
 
 You can access the latest RAT report [here](rat-report)  
+
+ Make a release
+
+See 
[here](https://github.com/apache/servicecomb-service-center/blob/master/scripts/release/README.md)
+
+ Archive
+
+# Step 1
+
+Execute script, archive source code and generate summary and signature
+```
+bash scripts/release/archive.sh apache-servicecomb-service-center 2.0.0 
little...@apache.org
+```
+
+list current directory
+
+```
+-rw-rw-r--  1 ubuntu ubuntu 3.1M Jun  8 20:35 
apache-servicecomb-service-center-2.0.0-src.tar.gz
+-rw-rw-r--  1 ubuntu ubuntu  862 Jun  8 20:35 
apache-servicecomb-service-center-2.0.0-src.tar.gz.asc
+-rw-rw-r--  1 ubuntu ubuntu  181 Jun  8 20:35 
apache-servicecomb-service-center-2.0.0-src.tar.gz.sha512
+```
+
+# Step 2
+
+PUSH to apache dev repo
+
+```
+svn co https://dist.apache.org/repos/dist/dev/servicecomb/
+cd servicecomb/
+mkdir -p 2.0.0
+cp apache-servicecomb-service-center-* 2.0.0/
+svn add .
+svn ci --username xxx --password xxx -m "Add the Service-Center 2.0.0 version"
+```
diff --git a/scripts/release/README.md b/scripts/release/README.md
index 58427e0..ecb48c5 100644
--- a/scripts/release/README.md
+++ b/scripts/release/README.md
@@ -9,10 +9,6 @@ To make a release of Service-center please follow the below 
steps
 
 git clone https://github.com/apache/servicecomb-service-center.git 
$GOPATH/src/github.com/apache/servicecomb-service-center
 cd $GOPATH/src/github.com/apache/servicecomb-service-center
-
-## Download all the dependency
-curl https://glide.sh/get | sh
-glide install
 ```
 
 # Note: [bower](https://www.npmjs.com/package/bower) should be installed 
in this machine
@@ -23,20 +19,20 @@ glide install
 
 ```
 # bash -x scripts/release/make_release.sh OS_NAME VERSION_NUMBER PACKAGE_NUMBER
-bash -x scripts/release/make_release.sh linux 1.1.0
+bash -x scripts/release/make_release.sh linux 2.0.0
 ```
 
  Windows Release
 
 ```
 # bash -x scripts/release/make_release.sh OS_NAME VERSION_NUMBER PACKAGE_NUMBER
-bash -x scripts/release/make_release.sh windows 1.1.0
+bash -x scripts/release/make_release.sh windows 2.0.0
 ```
 
  Mac OS Release
 
 ```
 # bash -x scripts/release/make_release.sh OS_NAME VERSION_NUMBER PACKAGE_NUMBER
-bash -x scripts/release/make_release.sh mac 1.1.0
+bash -x scripts/release/make_release.sh mac 2.0.0
 ```
 
diff --git a/scripts/release/archive.sh b/scripts/release/archive.sh
new file mode 100644
index 000..155b695
--- /dev/null
+++ b/scripts/release/archive.sh
@@ -0,0 +1,54 @@
+#!/usr/bin/env bash
+
+# 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.
+
+set -e
+
+NAME=${1}
+VERSION=${2}
+USER=${3}
+
+sign() {
+  local name=${1}
+  local user=${2}
+  gpg -u ${user} --armor --output ${name}.tar.gz.asc --detach-sign 
${name}.tar.gz
+  gpg --verify ${name}.tar.gz.asc ${name}.tar.gz
+  sha512sum ${name}.tar.gz >${name}.tar.gz.sha512
+  sha512sum --check ${name}.tar.gz.sha512
+}
+
+archive() {
+  local name=${1}
+  local version=${2}
+  git archive --format=tar v${version} --prefix=${name}-src/ | gzip 
>${name}-src.tar.gz
+}
+
+# archive source
+
+main() {
+  local release=${NAME}-${VERSION}
+  local user=${USER}
+
+  echo "archive source ${release} ..."
+  archive 

[GitHub] [servicecomb-service-center] tianxiaoliang merged pull request #1045: Update release README

2021-06-08 Thread GitBox


tianxiaoliang merged pull request #1045:
URL: https://github.com/apache/servicecomb-service-center/pull/1045


   


-- 
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-service-center] tianxiaoliang commented on a change in pull request #1040: refactor: must eliminate god class DataSource

2021-06-08 Thread GitBox


tianxiaoliang commented on a change in pull request #1040:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1040#discussion_r647888287



##
File path: datasource/etcd/version.go
##
@@ -50,43 +48,8 @@ func (ds *DataSource) LoadServerVersion(ctx context.Context) 
error {
return nil
 }
 
-func (ds *DataSource) UpgradeServerVersion(ctx context.Context) error {
-   bytes, err := json.Marshal(config.Server)
-   if err != nil {
-   return err
-   }
-   _, err = client.Instance().Do(ctx,
-   client.PUT, client.WithStrKey(path.GetServerInfoKey()), 
client.WithValue(bytes))
-   if err != nil {
-   return err
-   }
-   return nil
-}
-
-func (ds *DataSource) UpgradeVersion(ctx context.Context) error {
-   lock, err := mux.Lock(mux.GlobalLock)
-
-   if err != nil {
-   log.Errorf(err, "wait for server ready failed")
-   return err
-   }
-   if ds.needUpgrade(ctx) {
-   config.Server.Version = version.Ver().Version
-
-   if err := ds.UpgradeServerVersion(ctx); err != nil {
-   log.Errorf(err, "upgrade server version failed")
-   os.Exit(1)
-   }
-   }
-   err = lock.Unlock()
-   if err != nil {
-   log.Error("", err)
-   }
-   return err
-}
-
-func (ds *DataSource) needUpgrade(ctx context.Context) bool {
-   err := ds.LoadServerVersion(ctx)
+func needUpgrade(ctx context.Context) bool {
+   err := loadServerVersion(ctx)

Review comment:
   没有删掉逻辑,而是这个ds指针放在这里没有任何意义




-- 
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-service-center] tianxiaoliang commented on a change in pull request #1040: refactor: must eliminate god class DataSource

2021-06-08 Thread GitBox


tianxiaoliang commented on a change in pull request #1040:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1040#discussion_r647887559



##
File path: datasource/datasource.go
##
@@ -17,12 +17,27 @@
 
 package datasource
 
+import (
+   "context"
+)
+
 // DataSource is the DAO layer
 type DataSource interface {
-   SystemManager
-   AccountManager
-   RoleManager
-   DependencyManager
-   MetadataManager
-   SCManager
+   SystemManager() SystemManager
+   AccountManager() AccountManager
+   RoleManager() RoleManager
+   DependencyManager() DependencyManager
+   MetadataManager() MetadataManager
+   SCManager() SCManager
+}
+
+type DataEvent struct {
+   Type string
+   Data interface{}
+}
+type Watcher interface {
+   Result() <-chan *DataEvent
+}
+type DataWatcher interface {

Review comment:
   这部分代码我先删掉吧,后面写,这个功能还没有




-- 
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-service-center] little-cui closed issue #604: ServiceComb Service-Center下载包有问题

2021-06-08 Thread GitBox


little-cui closed issue #604:
URL: https://github.com/apache/servicecomb-service-center/issues/604


   


-- 
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-service-center] little-cui commented on issue #620: 使用/v4/{project}/registry/microservices/{serviceId}/watcher无法收到回包

2021-06-08 Thread GitBox


little-cui commented on issue #620:
URL: 
https://github.com/apache/servicecomb-service-center/issues/620#issuecomment-856899664


   DONE


-- 
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-service-center] little-cui closed issue #620: 使用/v4/{project}/registry/microservices/{serviceId}/watcher无法收到回包

2021-06-08 Thread GitBox


little-cui closed issue #620:
URL: https://github.com/apache/servicecomb-service-center/issues/620


   


-- 
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-service-center] little-cui commented on issue #626: 没有找到编译好的 ARM 版的 Service-Center 二进制文件,是否能提供?

2021-06-08 Thread GitBox


little-cui commented on issue #626:
URL: 
https://github.com/apache/servicecomb-service-center/issues/626#issuecomment-856898054


   当前还没有发布arm版,但提供了构建教程,修改GOARCH参数可以自己构建


-- 
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-service-center] little-cui commented on issue #642: 有没有arm64的官方docker镜像

2021-06-08 Thread GitBox


little-cui commented on issue #642:
URL: 
https://github.com/apache/servicecomb-service-center/issues/642#issuecomment-856895313


   官方镜像是基于alpine构建的,请问使用有什么问题


-- 
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-service-center] little-cui edited a comment on issue #641: docker sc 版本不是最新的

2021-06-08 Thread GitBox


little-cui edited a comment on issue #641:
URL: 
https://github.com/apache/servicecomb-service-center/issues/641#issuecomment-856894324


   please try the service-center version latest or 2.0.0


-- 
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-service-center] little-cui commented on issue #641: docker sc 版本不是最新的

2021-06-08 Thread GitBox


little-cui commented on issue #641:
URL: 
https://github.com/apache/servicecomb-service-center/issues/641#issuecomment-856894324


   please try the version latest or 2.0.0


-- 
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-service-center] little-cui commented on issue #644: servicecomb 服务无法注册

2021-06-08 Thread GitBox


little-cui commented on issue #644:
URL: 
https://github.com/apache/servicecomb-service-center/issues/644#issuecomment-856893667


   新版本2.0.0已发布,请使用


-- 
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-service-center] little-cui closed issue #644: servicecomb 服务无法注册

2021-06-08 Thread GitBox


little-cui closed issue #644:
URL: https://github.com/apache/servicecomb-service-center/issues/644


   


-- 
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-service-center] little-cui edited a comment on issue #672: Can not run it on OSX

2021-06-08 Thread GitBox


little-cui edited a comment on issue #672:
URL: 
https://github.com/apache/servicecomb-service-center/issues/672#issuecomment-856892148


   Please provide the system version information, and U can try the docker 
servicecomb/service-center:2.0.0 instead


-- 
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-service-center] little-cui commented on issue #672: Can not run it on OSX

2021-06-08 Thread GitBox


little-cui commented on issue #672:
URL: 
https://github.com/apache/servicecomb-service-center/issues/672#issuecomment-856892148


   Please provide the system version information, and U can try the docker 
instead


-- 
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-service-center] little-cui commented on issue #702: [Potential] Nil pointer exist?

2021-06-08 Thread GitBox


little-cui commented on issue #702:
URL: 
https://github.com/apache/servicecomb-service-center/issues/702#issuecomment-856888644


   good suggestion!!!


-- 
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-service-center] little-cui commented on issue #729: 什么时候可以Release一个新版本呢?

2021-06-08 Thread GitBox


little-cui commented on issue #729:
URL: 
https://github.com/apache/servicecomb-service-center/issues/729#issuecomment-856887925


   最新版本2.0.0已经发布,请查看release


-- 
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-service-center] little-cui closed issue #729: 什么时候可以Release一个新版本呢?

2021-06-08 Thread GitBox


little-cui closed issue #729:
URL: https://github.com/apache/servicecomb-service-center/issues/729


   


-- 
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-service-center] little-cui commented on issue #833: 关于服务报出 httpserver failed 以及 The request is rejected. Cannot process the request due to STATUS = STOPPING

2021-06-08 Thread GitBox


little-cui commented on issue #833:
URL: 
https://github.com/apache/servicecomb-service-center/issues/833#issuecomment-856886833


   我看这个问题属于servicecomb-java-chassis项目,请提交到该项目


-- 
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-service-center] little-cui closed issue #835: There is a vulnerability in protobuf v1.3.1,upgrade recommended

2021-06-08 Thread GitBox


little-cui closed issue #835:
URL: https://github.com/apache/servicecomb-service-center/issues/835


   


-- 
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-service-center] little-cui commented on issue #835: There is a vulnerability in protobuf v1.3.1,upgrade recommended

2021-06-08 Thread GitBox


little-cui commented on issue #835:
URL: 
https://github.com/apache/servicecomb-service-center/issues/835#issuecomment-856885722


   DONE


-- 
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-service-center] little-cui closed issue #836: mongo4.0版本下建立索引失败

2021-06-08 Thread GitBox


little-cui closed issue #836:
URL: https://github.com/apache/servicecomb-service-center/issues/836


   


-- 
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-service-center] little-cui commented on issue #836: mongo4.0版本下建立索引失败

2021-06-08 Thread GitBox


little-cui commented on issue #836:
URL: 
https://github.com/apache/servicecomb-service-center/issues/836#issuecomment-856885022


   已解决


-- 
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-service-center] little-cui commented on issue #919: 调用服务契约能否返回json格式的swagger

2021-06-08 Thread GitBox


little-cui commented on issue #919:
URL: 
https://github.com/apache/servicecomb-service-center/issues/919#issuecomment-856884378


   后续可以支持,通过客户端传Http header,Accept: applicaiton/yaml来控制返回内容


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

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




[GitHub] [servicecomb-service-center] little-cui commented on pull request #860: SCB-2176 Fix: Can not make a release

2021-06-08 Thread GitBox


little-cui commented on pull request #860:
URL: 
https://github.com/apache/servicecomb-service-center/pull/860#issuecomment-856877768


   Branch v1.x deprecated


-- 
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-service-center] little-cui closed pull request #860: SCB-2176 Fix: Can not make a release

2021-06-08 Thread GitBox


little-cui closed pull request #860:
URL: https://github.com/apache/servicecomb-service-center/pull/860


   


-- 
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-service-center] little-cui commented on a change in pull request #1040: refactor: must eliminate god class DataSource

2021-06-08 Thread GitBox


little-cui commented on a change in pull request #1040:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1040#discussion_r647154164



##
File path: datasource/datasource.go
##
@@ -17,12 +17,27 @@
 
 package datasource
 
+import (
+   "context"
+)
+
 // DataSource is the DAO layer
 type DataSource interface {
-   SystemManager
-   AccountManager
-   RoleManager
-   DependencyManager
-   MetadataManager
-   SCManager
+   SystemManager() SystemManager
+   AccountManager() AccountManager
+   RoleManager() RoleManager
+   DependencyManager() DependencyManager
+   MetadataManager() MetadataManager
+   SCManager() SCManager
+}
+
+type DataEvent struct {
+   Type string
+   Data interface{}
+}
+type Watcher interface {
+   Result() <-chan *DataEvent
+}
+type DataWatcher interface {

Review comment:
   事件监听的接口应该独立一个文件或pkg

##
File path: datasource/etcd/version.go
##
@@ -50,43 +48,8 @@ func (ds *DataSource) LoadServerVersion(ctx context.Context) 
error {
return nil
 }
 
-func (ds *DataSource) UpgradeServerVersion(ctx context.Context) error {
-   bytes, err := json.Marshal(config.Server)
-   if err != nil {
-   return err
-   }
-   _, err = client.Instance().Do(ctx,
-   client.PUT, client.WithStrKey(path.GetServerInfoKey()), 
client.WithValue(bytes))
-   if err != nil {
-   return err
-   }
-   return nil
-}
-
-func (ds *DataSource) UpgradeVersion(ctx context.Context) error {
-   lock, err := mux.Lock(mux.GlobalLock)
-
-   if err != nil {
-   log.Errorf(err, "wait for server ready failed")
-   return err
-   }
-   if ds.needUpgrade(ctx) {
-   config.Server.Version = version.Ver().Version
-
-   if err := ds.UpgradeServerVersion(ctx); err != nil {
-   log.Errorf(err, "upgrade server version failed")
-   os.Exit(1)
-   }
-   }
-   err = lock.Unlock()
-   if err != nil {
-   log.Error("", err)
-   }
-   return err
-}
-
-func (ds *DataSource) needUpgrade(ctx context.Context) bool {
-   err := ds.LoadServerVersion(ctx)
+func needUpgrade(ctx context.Context) bool {
+   err := loadServerVersion(ctx)

Review comment:
   这部分逻辑删除的原因是什么?原有的设计是用于记录当前运行的sc版本跟之前运行的版本差异,提供给scctl等工具做迁移做判断使用




-- 
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-service-center] little-cui opened a new pull request #1045: Update release README

2021-06-08 Thread GitBox


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


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


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

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




[GitHub] [servicecomb-java-chassis] JasonBeiJing commented on issue #1505: 怎么自定义Jackson的ObjectMapper?

2021-06-08 Thread GitBox


JasonBeiJing commented on issue #1505:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1505#issuecomment-856725108


   不推荐自定义?这个不应该吧,比如A服务用java开发,默认行为json串就是驼峰命名法;B服务可能是另一种语言,其发布的api响应可能是snake 
case,所以对于json格式,应该不具有某种语言特性吧


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

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




[GitHub] [servicecomb-service-center] robotLJW closed issue #1044: event断言为加判断导致nil

2021-06-08 Thread GitBox


robotLJW closed issue #1044:
URL: https://github.com/apache/servicecomb-service-center/issues/1044


   


-- 
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-service-center] tianxiaoliang merged pull request #1043: SCB-2176 BugFix: missing assertion failed

2021-06-08 Thread GitBox


tianxiaoliang merged pull request #1043:
URL: https://github.com/apache/servicecomb-service-center/pull/1043


   


-- 
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-service-center] branch master updated: SCB-2176 BugFix: missing assertion failed (#1043)

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

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


The following commit(s) were added to refs/heads/master by this push:
 new bb60a6f  SCB-2176 BugFix: missing assertion failed (#1043)
bb60a6f is described below

commit bb60a6ff45eee15480b6a77269e2d6348d9d0427
Author: robotljw <790504...@qq.com>
AuthorDate: Tue Jun 8 19:33:25 2021 +0800

SCB-2176 BugFix: missing assertion failed (#1043)
---
 client/apis.go |  2 +-
 client/instance.go |  2 +-
 client/microservice.go |  2 +-
 client/schema.go   |  2 +-
 client/watch.go|  2 +-
 datasource/errortypes.go   |  3 +-
 datasource/etcd/account.go |  6 +--
 datasource/etcd/event/dependency_event_handler.go  |  7 ++-
 datasource/etcd/event/instance_event_handler.go| 10 -
 datasource/etcd/event/service_event_handler.go |  7 ++-
 datasource/etcd/ms.go  |  2 +-
 datasource/etcd/sd/servicecenter/aggregate.go  |  3 +-
 datasource/etcd/sd/servicecenter/indexer.go|  3 +-
 datasource/etcd/util.go|  2 +-
 datasource/etcd/util/heartbeat_util.go |  3 +-
 datasource/etcd/util/instance_util.go  |  6 +--
 datasource/etcd/util/rule_util.go  |  5 ++-
 datasource/etcd/util/tag_util.go   |  4 +-
 datasource/mongo/account.go|  2 +-
 datasource/mongo/client/dao/instance.go|  7 ++-
 datasource/mongo/client/mongo.go   |  3 +-
 datasource/mongo/event/instance_event_handler.go   |  6 ++-
 .../mongo/event/schema_summary_event_handler.go|  8 +++-
 datasource/mongo/event/service_event_handler.go|  7 ++-
 datasource/mongo/ms.go |  2 +-
 datasource/mongo/role.go   |  4 ++
 pkg/rest/util.go   |  5 ++-
 server/handler/auth/auth.go|  7 +--
 server/handler/exception/exception.go  |  3 +-
 server/plugin/auth/buildin/parser.go   | 11 ++---
 server/plugin/auth/buildin/service_parser.go   | 52 +++---
 server/plugin/quota/quota.go   |  5 ++-
 server/resource/v4/auth_resource.go| 10 ++---
 server/resource/v4/role_resource.go|  8 ++--
 server/response/response.go| 13 +++---
 server/rest/govern/service.go  |  2 +-
 server/service/dependency.go   |  5 ++-
 server/service/instance.go |  4 +-
 server/service/microservice.go |  4 +-
 server/service/rbac/account_dao.go |  6 ++-
 server/service/rbac/authr_plugin.go|  8 ++--
 server/service/rbac/blocker.go |  1 -
 server/service/rbac/context.go |  4 +-
 server/service/rbac/context_test.go|  3 +-
 server/service/rbac/decision.go|  1 +
 server/service/rbac/password.go|  8 ++--
 server/service/rbac/permission.go  |  3 +-
 server/service/rbac/rbac.go|  8 ++--
 server/service/rbac/role.go|  5 ++-
 server/service/rbac/role_dao.go|  7 +--
 server/service/rule.go |  5 ++-
 server/service/tag.go  |  5 ++-
 server/service/validator/validator.go  |  6 ++-
 53 files changed, 184 insertions(+), 125 deletions(-)

diff --git a/client/apis.go b/client/apis.go
index 0c96b7f..2e0346a 100644
--- a/client/apis.go
+++ b/client/apis.go
@@ -18,11 +18,11 @@ package client
 import (
"context"
"encoding/json"
-   "github.com/go-chassis/cari/pkg/errsvc"
"io/ioutil"
"net/http"
 
"github.com/go-chassis/cari/discovery"
+   "github.com/go-chassis/cari/pkg/errsvc"
 
"github.com/apache/servicecomb-service-center/pkg/cluster"
"github.com/apache/servicecomb-service-center/pkg/dump"
diff --git a/client/instance.go b/client/instance.go
index ee7caf7..aa07e27 100644
--- a/client/instance.go
+++ b/client/instance.go
@@ -19,12 +19,12 @@ import (
"context"
"encoding/json"
"fmt"
-   "github.com/go-chassis/cari/pkg/errsvc"
"io/ioutil"
"net/http"
"net/url"
 
"github.com/go-chassis/cari/discovery"
+   "github.com/go-chassis/cari/pkg/errsvc"
 )
 
 const (
diff --git a/client/microservice.go b/client/microservice.go
index eae670b..4ae8d93 100644
--- a/client/microservice.go
+++ b/client/microservice.go
@@ -19,12 +19,12 @@ import (
"context"
   

[GitHub] [servicecomb-service-center] tianxiaoliang commented on a change in pull request #1043: SCB-2176 BugFix: missing assertion failed

2021-06-08 Thread GitBox


tianxiaoliang commented on a change in pull request #1043:
URL: 
https://github.com/apache/servicecomb-service-center/pull/1043#discussion_r647348622



##
File path: datasource/etcd/event/dependency_event_handler.go
##
@@ -160,7 +161,11 @@ func (h *DependencyEventHandler) Handle() error {
defer h.CleanUp(cleanUpDomainProjects)
 
for _, keyValue := range resp.Kvs {
-   r := keyValue.Value.(*pb.ConsumerDependency)
+   r, ok := keyValue.Value.(*pb.ConsumerDependency)
+   if !ok {
+   log.Error("failed to assert consumerDependency", 
datasource.ErrAssertFail)

Review comment:
   这是convert吧




-- 
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 closed issue #1979: 2.1.0版本 文件下载服务提供者 FilePart.setDeleteAfterFinished(true)未生效

2021-06-08 Thread GitBox


liubao68 closed issue #1979:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1979


   


-- 
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-service-center] robotLJW opened a new issue #1044: event断言为加判断导致nil

2021-06-08 Thread GitBox


robotLJW opened a new issue #1044:
URL: https://github.com/apache/servicecomb-service-center/issues/1044


   
   
   


-- 
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-service-center] robotLJW opened a new pull request #1043: SCB-2176 BugFix: missing assertion failed

2021-06-08 Thread GitBox


robotLJW opened a new pull request #1043:
URL: https://github.com/apache/servicecomb-service-center/pull/1043


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


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

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




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

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

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


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

commit e71be562cf7ccb808b6c38b52b5fd71fd1d8c15c
Author: Willem Jiang 
AuthorDate: Tue Jun 8 14:45:17 2021 +0800

Publish the website
---
 content/cn/release/service-center-downloads/index.html | 2 +-
 content/feed.xml   | 2 +-
 content/release/service-center-downloads/index.html| 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/content/cn/release/service-center-downloads/index.html 
b/content/cn/release/service-center-downloads/index.html
index 1b712fb..f641074 100644
--- a/content/cn/release/service-center-downloads/index.html
+++ b/content/cn/release/service-center-downloads/index.html
@@ -551,7 +551,7 @@
   
 
   Apache ServiceComb Service-Center 2.0.0 
(LATEST)
-  https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip;>[src]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip.asc;>[asc]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip.sha512;>[sha512]
+  https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.tar.gz;>[src]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.tar.gz.asc;>[asc]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.tar.gz.sha512;>[sha512]
   https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-windows-amd64.tar.gz;>[Binary]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-windows-amd64.tar.gz.asc;>[asc]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-windows-amd64.tar.gz.sha512;>[sha512]
   https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-linux-amd64.tar.gz;>[Binary]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-linux-amd64.tar.gz.asc;>[asc]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-linux-amd64.tar.gz.sha512;>[sha512]
   https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-darwin-amd64.tar.gz;>[Binary]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-darwin-amd64.tar.gz.asc;>[asc]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-darwin-amd64.tar.gz.sha512;>[sha512]
diff --git a/content/feed.xml b/content/feed.xml
index ba1e466..4c37e83 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">Jekyll2021-06-08T10:09:52+08:00/feed.xmlApache ServiceCombThe homepage of 
ServiceComb{name=nil, 
avatar= [...]
+http://www.w3.org/2005/Atom; >https://jekyllrb.com/; 
version="3.8.5">Jekyll2021-06-08T14:44:13+08:00/feed.xmlApache ServiceCombThe homepage of 
ServiceComb{name=nil, 
avatar= [...]
 
 
p本次讲座得到广东工业大学计算机院学生会同学们的鼎力支持和参与。报名通道开放后,报名人数迅速达到150+,活动放在学校报告厅举办。即便在周日,同学们的热情仍然很高,给广东工业大学的同学们点赞。/p
 
diff --git a/content/release/service-center-downloads/index.html 
b/content/release/service-center-downloads/index.html
index 030277e..0a6c1b6 100644
--- a/content/release/service-center-downloads/index.html
+++ b/content/release/service-center-downloads/index.html
@@ -550,7 +550,7 @@
   
 
   Apache ServiceComb Service-Center 2.0.0 
(LATEST)
-  https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip;>[src]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip.asc;>[asc]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip.sha512;>[sha512]
+  https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.tar.gz;>[src]
 https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.tar.gz.asc;>[asc]
 

[servicecomb-website] branch master updated: release service-center 2.0.0

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

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


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

commit 498571cfa0ec9829163c4ecc5922b4ba559ba691
Author: little-cui 
AuthorDate: Tue Jun 8 14:18:23 2021 +0800

release service-center 2.0.0
---
 _release/cn/service_center_downloads.md | 2 +-
 _release/service_center_downloads.md| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/_release/cn/service_center_downloads.md 
b/_release/cn/service_center_downloads.md
index ca7835f..5e74618 100644
--- a/_release/cn/service_center_downloads.md
+++ b/_release/cn/service_center_downloads.md
@@ -11,7 +11,7 @@ last_modified_at: 2021-06-04T00:50:43-55:00
 
 | 版本号   | 源码|   Windows版本 |
   Linux版本   |   Darwin版本  |   
与之兼容的Java-Chassis版本 |
 | -- | - | 
- | - | 
- |- |
-| **Apache ServiceComb Service-Center 2.0.0 (LATEST)**
|[[src]](https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip)
 
[[asc]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip.asc)
 
[[sha512]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip.sha512)
 | [[Binary]](https: [...]
+| **Apache ServiceComb Service-Center 2.0.0 (LATEST)**
|[[src]](https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.tar.gz)
 
[[asc]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.tar.gz.asc)
 
[[sha512]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.tar.gz.sha512)
 | [[Binary [...]
 | Apache ServiceComb Service-Center 1.3.0
|[[src]](https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/1.3.0/apache-servicecomb-service-center-1.3.0-src.zip)
 
[[asc]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/1.3.0/apache-servicecomb-service-center-1.3.0-src.zip.asc)
 
[[sha512]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/1.3.0/apache-servicecomb-service-center-1.3.0-src.zip.sha512)
 | [[Binary]](https://apache.org/ [...]
 | Apache ServiceComb Service-Center 1.2.0
|[[src]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.2.0/apache-servicecomb-service-center-1.2.0-src.tar.gz)
 
[[asc]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.2.0/apache-servicecomb-service-center-1.2.0-src.tar.gz.asc)
 
[[sha512]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.2.0/apache-servicecomb-service-center-1.2.0-src.tar.gz.sha512)
 | [...]
 | Apache ServiceComb Service-Center 1.1.0
|[[src]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.1.0/apache-servicecomb-service-center-1.1.0-src.tar.gz)
 
[[asc]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.1.0/apache-servicecomb-service-center-1.1.0-src.tar.gz.asc)
 
[[sha512]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.1.0/apache-servicecomb-service-center-1.1.0-src.tar.gz.sha512)
 | [...]
diff --git a/_release/service_center_downloads.md 
b/_release/service_center_downloads.md
index cfabff8..3fb69a1 100644
--- a/_release/service_center_downloads.md
+++ b/_release/service_center_downloads.md
@@ -12,7 +12,7 @@ last_modified_at: 2021-06-04T00:50:43-55:00
 
 | Release   | Source|   Windows |  
 Linux   |   Darwin  |   Recommended 
Version of Java-Chassis |
 | -- | - | 
- | - | 
- |- |
-| **Apache ServiceComb Service-Center 2.0.0 (LATEST)**
|[[src]](https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip)
 
[[asc]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip.asc)
 
[[sha512]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip.sha512)
 | [[Binary]](https: 

[GitHub] [servicecomb-website] tianxiaoliang merged pull request #269: release service-center 2.0.0

2021-06-08 Thread GitBox


tianxiaoliang merged pull request #269:
URL: https://github.com/apache/servicecomb-website/pull/269


   


-- 
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 asf-site updated: release service-center 2.0.0

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

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


The following commit(s) were added to refs/heads/asf-site by this push:
 new f1d4fea  release service-center 2.0.0
 new d87b37d  Merge pull request #269 from little-cui/sc
f1d4fea is described below

commit f1d4feaef0a9e3b7d3fb87095e4e2156e9c5f84c
Author: little-cui 
AuthorDate: Tue Jun 8 14:18:23 2021 +0800

release service-center 2.0.0
---
 _release/cn/service_center_downloads.md | 2 +-
 _release/service_center_downloads.md| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/_release/cn/service_center_downloads.md 
b/_release/cn/service_center_downloads.md
index ca7835f..5e74618 100644
--- a/_release/cn/service_center_downloads.md
+++ b/_release/cn/service_center_downloads.md
@@ -11,7 +11,7 @@ last_modified_at: 2021-06-04T00:50:43-55:00
 
 | 版本号   | 源码|   Windows版本 |
   Linux版本   |   Darwin版本  |   
与之兼容的Java-Chassis版本 |
 | -- | - | 
- | - | 
- |- |
-| **Apache ServiceComb Service-Center 2.0.0 (LATEST)**
|[[src]](https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip)
 
[[asc]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip.asc)
 
[[sha512]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip.sha512)
 | [[Binary]](https: [...]
+| **Apache ServiceComb Service-Center 2.0.0 (LATEST)**
|[[src]](https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.tar.gz)
 
[[asc]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.tar.gz.asc)
 
[[sha512]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.tar.gz.sha512)
 | [[Binary [...]
 | Apache ServiceComb Service-Center 1.3.0
|[[src]](https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/1.3.0/apache-servicecomb-service-center-1.3.0-src.zip)
 
[[asc]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/1.3.0/apache-servicecomb-service-center-1.3.0-src.zip.asc)
 
[[sha512]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/1.3.0/apache-servicecomb-service-center-1.3.0-src.zip.sha512)
 | [[Binary]](https://apache.org/ [...]
 | Apache ServiceComb Service-Center 1.2.0
|[[src]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.2.0/apache-servicecomb-service-center-1.2.0-src.tar.gz)
 
[[asc]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.2.0/apache-servicecomb-service-center-1.2.0-src.tar.gz.asc)
 
[[sha512]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.2.0/apache-servicecomb-service-center-1.2.0-src.tar.gz.sha512)
 | [...]
 | Apache ServiceComb Service-Center 1.1.0
|[[src]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.1.0/apache-servicecomb-service-center-1.1.0-src.tar.gz)
 
[[asc]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.1.0/apache-servicecomb-service-center-1.1.0-src.tar.gz.asc)
 
[[sha512]](https://archive.apache.org/dist/servicecomb/servicecomb-service-center/1.1.0/apache-servicecomb-service-center-1.1.0-src.tar.gz.sha512)
 | [...]
diff --git a/_release/service_center_downloads.md 
b/_release/service_center_downloads.md
index cfabff8..3fb69a1 100644
--- a/_release/service_center_downloads.md
+++ b/_release/service_center_downloads.md
@@ -12,7 +12,7 @@ last_modified_at: 2021-06-04T00:50:43-55:00
 
 | Release   | Source|   Windows |  
 Linux   |   Darwin  |   Recommended 
Version of Java-Chassis |
 | -- | - | 
- | - | 
- |- |
-| **Apache ServiceComb Service-Center 2.0.0 (LATEST)**
|[[src]](https://apache.org/dyn/closer.cgi/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip)
 
[[asc]](https://www.apache.org/dist/servicecomb/servicecomb-service-center/2.0.0/apache-servicecomb-service-center-2.0.0-src.zip.asc)
 

[servicecomb-service-center] branch master updated: create golangci lint

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

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


The following commit(s) were added to refs/heads/master by this push:
 new 488a1c1  create golangci lint
488a1c1 is described below

commit 488a1c12e672569fd550a84c5d5970d646025d35
Author: Shawn 
AuthorDate: Tue Jun 8 14:19:21 2021 +0800

create golangci lint
---
 .github/workflows/main.yml | 35 +++
 1 file changed, 35 insertions(+)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 000..c77cedd
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,35 @@
+# This is a basic workflow to help you get started with Actions
+
+name: CI
+
+# Controls when the action will run. 
+on:
+  # Triggers the workflow on push or pull request events but only for the 
master branch
+  push:
+branches: [ master ]
+  pull_request:
+branches: [ master ]
+
+  # Allows you to run this workflow manually from the Actions tab
+  workflow_dispatch:
+
+# A workflow run is made up of one or more jobs that can run sequentially or 
in parallel
+jobs:
+  # This workflow contains a single job called "build"
+  build:
+# The type of runner that the job will run on
+runs-on: ubuntu-latest
+
+# Steps represent a sequence of tasks that will be executed as part of the 
job
+steps:
+  # Checks-out your repository under $GITHUB_WORKSPACE, so your job can 
access it
+  - uses: actions/checkout@v2
+
+  - name: Run golangci-lint
+# You may pin to the exact commit or the version.
+# uses: 
golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018
+uses: golangci/golangci-lint-action@v2.5.2
+with:
+  version: v1.29
+  args: --timeout=5m 
--skip-dirs='test,.*/controller/(v3|v4)$,.*/bootstrap$,server/broker,examples,frontend,scctl,integration'
 --enable gofmt,golint,gocyclo,goimports --skip-files=.*_test.go$
+


[GitHub] [servicecomb-website] little-cui opened a new pull request #269: release service-center 2.0.0

2021-06-08 Thread GitBox


little-cui opened a new pull request #269:
URL: https://github.com/apache/servicecomb-website/pull/269


   


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