Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature-2.1.2-fix-log4j' into de…
Browse files Browse the repository at this point in the history
…velop
  • Loading branch information
GentleWang1011 committed Dec 16, 2021
2 parents d628d00 + afab482 commit c2228cc
Show file tree
Hide file tree
Showing 11 changed files with 54 additions and 13 deletions.
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Release 2.1.2
## Major Features and Improvements
* Fix serious security vulnerabilities in log4j.

# Release 2.1.1
## Major Features and Improvements
* Fix the bug that the serving-server service fails to start when zookeeper is not used as the service registration and coordination center.
Expand Down
6 changes: 3 additions & 3 deletions document/docs/quickstart/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ $ mvn clean package
随后拷贝,比如 serving-server/target/fate-serving-server-{version}-release.zip 到想要部署的路径下,并解压。(version为当前版本号)

用户也可选择下载已编译好的版本,链接如下:
[fate-serving-server-2.1.1-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-server-2.1.1-release.zip)
[fate-serving-proxy-2.1.1-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-proxy-2.1.1-release.zip)
[fate-serving-admin-2.1.1-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-admin-2.1.1-release.zip)
[fate-serving-server-2.1.2-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-server-2.1.2-release.zip)
[fate-serving-proxy-2.1.2-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-proxy-2.1.2-release.zip)
[fate-serving-admin-2.1.2-release.zip](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-admin-2.1.2-release.zip)


### zookeeper部署
Expand Down
5 changes: 5 additions & 0 deletions document/docs/release/change_log.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## FATE-SERVING 2.1.2
```text
1.修复log4j的严重安全漏洞。
```

## FATE-SERVING 2.1.1
```text
1.修复不使用zookeeper作为服务注册和协调中心的情况下,serving-server服务启动失败的BUG。
Expand Down
8 changes: 4 additions & 4 deletions document/docs/service/client.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FATE-Serving提供了fate-serving-client工具
### 下载对应版本的fate-serving-client
>linux版本:[fate-serving-client-2.1.1-linux.tar.gz](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-client-2.1.1-linux.tar.gz )
>mac版本:[fate-serving-client-2.1.1-darwin.tar.gz](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-client-2.1.1-darwin.tar.gz)
>linux版本:[fate-serving-client-2.1.2-linux.tar.gz](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-client-2.1.2-linux.tar.gz )
>mac版本:[fate-serving-client-2.1.2-darwin.tar.gz](https://webank-ai-1251170195.cos.ap-guangzhou.myqcloud.com/fate-serving-client-2.1.2-darwin.tar.gz)
需要先确认下载解压出来的文件有没有可执行权限,没有权限就执行 `chmod +777 fate-serving-client-2.1.1-linux`授权。
需要先确认下载解压出来的文件有没有可执行权限,没有权限就执行 `chmod +777 fate-serving-client-2.1.2-linux`授权。

### 启动client
在终端中使用`./fate-serving-client-2.1.1-linux`启动client
在终端中使用`./fate-serving-client-2.1.2-linux`启动client
![connect](../img/client-connect.jpg)

### 提供了以下几种指令
Expand Down
2 changes: 1 addition & 1 deletion fate-serving-admin-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FATE-Serving",
"version": "2.1.1",
"version": "2.1.2",
"private": true,
"author": "FATE Serving",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion fate-serving-admin/bin/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ basepath=$(cd `dirname $0`;pwd)
configpath=$(cd $basepath/conf;pwd)
module=serving-admin
main_class=com.webank.ai.fate.serving.admin.Bootstrap
module_version=2.1.1
module_version=2.1.2

case "$1" in
start)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.Map;

public class MetaInfo {
public static final long CURRENT_VERSION = 211;
public static final long CURRENT_VERSION = 212;
public static List<AdaptorDescriptor.ParamDescriptor> inferenceParamDescriptorList;
public static List<AdaptorDescriptor.ParamDescriptor> batchInferenceParamDescriptorList;
public static Boolean PROPERTY_REMOTE_MODEL_INFERENCE_RESULT_CACHE_SWITCH;
Expand Down
2 changes: 1 addition & 1 deletion fate-serving-proxy/bin/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ basepath=$(cd `dirname $0`;pwd)
configpath=$(cd $basepath/conf;pwd)
module=serving-proxy
main_class=com.webank.ai.fate.serving.proxy.bootstrap.Bootstrap
module_version=2.1.1
module_version=2.1.2


case "$1" in
Expand Down
4 changes: 4 additions & 0 deletions fate-serving-register/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
<artifactId>slf4j-log4j12</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion fate-serving-server/bin/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ basepath=$(cd `dirname $0`;pwd)
configpath=$(cd $basepath/conf;pwd)
module=serving-server
main_class=com.webank.ai.fate.serving.Bootstrap
module_version=2.1.1
module_version=2.1.2


case "$1" in
Expand Down
30 changes: 29 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</modules>

<properties>
<fate.version>2.1.1</fate.version>
<fate.version>2.1.2</fate.version>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Expand All @@ -50,6 +50,7 @@
<spring.boot.version>2.2.0.RELEASE</spring.boot.version>
<jackson.version>2.10.0</jackson.version>
<jedis.version>2.9.0</jedis.version>
<log4j2.version>2.16.0</log4j2.version>
<skipTests>true</skipTests>
</properties>

Expand Down Expand Up @@ -264,6 +265,33 @@
<artifactId>jackson-dataformat-properties</artifactId>
<version>2.9.4</version>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j2.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j2.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${log4j2.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jul</artifactId>
<version>${log4j2.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<version>1.7.32</version>
</dependency>

</dependencies>
</dependencyManagement>

Expand Down

0 comments on commit c2228cc

Please sign in to comment.