Skip to content

Commit 7252e22

Browse files
authored
[3.1.9] add 3.1.9 release doc (#15333)
1 parent 443b3dc commit 7252e22

File tree

21 files changed

+345
-275
lines changed

21 files changed

+345
-275
lines changed

Diff for: deploy/docker/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717
#
1818
HUB=apache
19-
TAG=3.1.8
19+
TAG=3.1.9
2020

2121
TZ=Asia/Shanghai
2222
DATABASE=postgresql

Diff for: deploy/kubernetes/dolphinscheduler/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ type: application
3535

3636
# This is the chart version. This version number should be incremented each time you make changes
3737
# to the chart and its templates, including the app version.
38-
version: 3.1.8
38+
version: 3.1.9
3939

4040
# This is the version number of the application being deployed. This version number should be
4141
# incremented each time you make changes to the application.
42-
appVersion: 3.1.8
42+
appVersion: 3.1.9
4343

4444
dependencies:
4545
- name: postgresql

Diff for: deploy/kubernetes/dolphinscheduler/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ timezone: "Asia/Shanghai"
2323

2424
image:
2525
registry: "dolphinscheduler.docker.scarf.sh/apache"
26-
tag: "3.1.8"
26+
tag: "3.1.9"
2727
pullPolicy: "IfNotPresent"
2828
pullSecret: ""
2929
master: dolphinscheduler-master

Diff for: docs/configs/docsdev.js

+244-244
Large diffs are not rendered by default.

Diff for: docs/configs/site.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default {
4545
children: [
4646
{
4747
key: 'docs0',
48-
text: 'latest(3.1.8)',
48+
text: 'latest(3.1.9)',
4949
link: '/en-us/docs/latest/user_doc/about/introduction.html',
5050
},
5151
{
@@ -173,7 +173,7 @@ export default {
173173
children: [
174174
{
175175
key: 'docs0',
176-
text: '最新版本latest(3.1.8)',
176+
text: '最新版本latest(3.1.9)',
177177
link: '/zh-cn/docs/latest/user_doc/about/introduction.html',
178178
},
179179
{

Diff for: docs/docs/en/guide/expansion-reduction.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ Attention: DolphinScheduler itself does not depend on Hadoop, Hive, Spark, but w
3030
mkdir -p /opt
3131
cd /opt
3232
# decompress
33-
tar -zxvf apache-dolphinscheduler-3.1.8-bin.tar.gz -C /opt
33+
tar -zxvf apache-dolphinscheduler-3.1.9-bin.tar.gz -C /opt
3434
cd /opt
35-
mv apache-dolphinscheduler-3.1.8-bin dolphinscheduler
35+
mv apache-dolphinscheduler-3.1.9-bin dolphinscheduler
3636
```
3737

3838
```markdown

Diff for: docs/docs/en/guide/start/docker.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Start DolphinScheduler with standalone-server Docker images is the easiest way t
1919
you can learn DolphinScheduler's concepts and usage, with minimal cost.
2020

2121
```shell
22-
$ DOLPHINSCHEDULER_VERSION=3.1.8
22+
$ DOLPHINSCHEDULER_VERSION=3.1.9
2323
$ docker run --name dolphinscheduler-standalone-server -p 12345:12345 -p 25333:25333 -d apache/dolphinscheduler-standalone-server:"${DOLPHINSCHEDULER_VERSION}"
2424
```
2525

@@ -41,7 +41,7 @@ After complete the installation, get the `docker-compose.yaml` file from [downlo
4141
form its source package, and make sure you get the right version. After download the package, you can run the commands as below.
4242

4343
```shell
44-
$ DOLPHINSCHEDULER_VERSION=3.1.8
44+
$ DOLPHINSCHEDULER_VERSION=3.1.9
4545
$ tar -zxf apache-dolphinscheduler-"${DOLPHINSCHEDULER_VERSION}"-src.tar.gz
4646
# Going to docker-compose's location
4747
# For Mac or Linux users
@@ -68,7 +68,7 @@ $ docker-compose --profile all up -d
6868
container when it up. You could start DolphinScheduler server separately if you want to reuse your exists services.
6969

7070
```shell
71-
$ DOLPHINSCHEDULER_VERSION=3.1.8
71+
$ DOLPHINSCHEDULER_VERSION=3.1.9
7272
# Initialize the database, make sure database <DATABASE> already exists
7373
$ docker run -d --name dolphinscheduler-tools \
7474
-e DATABASE="postgresql" \
@@ -129,5 +129,5 @@ and use `admin` and `dolphinscheduler123` as default username and password in th
129129

130130
You can modify some environment variables to change configurations when you are starting servers through Docker. We have
131131
an example in [using exists PostgreSQL ZooKeeper](#using-exists-postgresql-zookeeper) to change database and ZooKeeper configurations,
132-
and you could find all environment variables in [all environment variables](https://github.com/apache/dolphinscheduler/blob/3.1.8/script/env/dolphinscheduler_env.sh) <!-- markdown-link-check-disable-line -->
132+
and you could find all environment variables in [all environment variables](https://github.com/apache/dolphinscheduler/blob/3.1.9/script/env/dolphinscheduler_env.sh) <!-- markdown-link-check-disable-line -->
133133
and change them if you want.

Diff for: docs/docs/en/history-versions.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
#### Setup instructions, are available for each stable version of Apache DolphinScheduler below:
66

7+
### Versions: 3.1.9
8+
9+
#### Links: [3.1.9 Document](../3.1.9/user_doc/about/introduction.md)
10+
711
### Versions: 3.1.8
812

913
#### Links: [3.1.8 Document](../3.1.8/user_doc/about/introduction.md)

Diff for: docs/docs/zh/guide/expansion-reduction.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
mkdir -p /opt
3131
cd /opt
3232
# 解压缩
33-
tar -zxvf apache-dolphinscheduler-3.1.8-bin.tar.gz -C /opt
33+
tar -zxvf apache-dolphinscheduler-3.1.9-bin.tar.gz -C /opt
3434
cd /opt
35-
mv apache-dolphinscheduler-3.1.8-bin dolphinscheduler
35+
mv apache-dolphinscheduler-3.1.9-bin dolphinscheduler
3636
```
3737

3838
```markdown

Diff for: docs/docs/zh/guide/start/docker.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
你可以最快速的体验到 DolphinScheduler 的大部分功能,了解主要和概念和内容。
1919

2020
```shell
21-
$ DOLPHINSCHEDULER_VERSION=3.1.8
21+
$ DOLPHINSCHEDULER_VERSION=3.1.9
2222
$ docker run --name dolphinscheduler-standalone-server -p 12345:12345 -p 25333:25333 -d apache/dolphinscheduler-standalone-server:"${DOLPHINSCHEDULER_VERSION}"
2323
```
2424

@@ -37,7 +37,7 @@ $ docker run --name dolphinscheduler-standalone-server -p 12345:12345 -p 25333:2
3737
下载对应版本源码包可能是最快的方法,当下载完源码后就可以运行命令进行部署了。
3838

3939
```shell
40-
$ DOLPHINSCHEDULER_VERSION=3.1.8
40+
$ DOLPHINSCHEDULER_VERSION=3.1.9
4141
$ tar -zxf apache-dolphinscheduler-"${DOLPHINSCHEDULER_VERSION}"-src.tar.gz
4242
# Mac Linux 用户
4343
$ cd apache-dolphinscheduler-"${DOLPHINSCHEDULER_VERSION}"-src/deploy/docker
@@ -61,7 +61,7 @@ $ docker-compose --profile all up -d
6161
ZooKeeper 且不想启动新的服务,可以使用这个方式分别启动 DolphinScheduler 容器。
6262

6363
```shell
64-
$ DOLPHINSCHEDULER_VERSION=3.1.8
64+
$ DOLPHINSCHEDULER_VERSION=3.1.9
6565
# 初始化数据库,其确保数据库 <DATABASE> 已经存在
6666
$ docker run -d --name dolphinscheduler-tools \
6767
-e DATABASE="postgresql" \

Diff for: docs/docs/zh/history-versions.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
#### 以下是Apache DolphinScheduler每个稳定版本的设置说明。
66

7+
### Versions: 3.1.9
8+
9+
#### Links: [3.1.9 文档](../3.1.9/user_doc/about/introduction.md)
10+
711
### Versions: 3.1.8
812

913
#### Links: [3.1.8 文档](../3.1.8/user_doc/about/introduction.md)

Diff for: dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ public Map<String, Object> updateUser(User loginUser, int userId,
398398

399399
// non-admin should not modify tenantId and queue
400400
if (!isAdmin(loginUser)) {
401-
if (tenantId != null && user.getTenantId() != tenantId) {
401+
if (user.getTenantId() != tenantId) {
402402
throw new ServiceException(Status.USER_NO_OPERATION_PERM);
403403
}
404404
if (StringUtils.isNotEmpty(queue) && !StringUtils.equals(queue, user.getQueue())) {

Diff for: dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_h2.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ CREATE TABLE t_ds_version
990990
-- Records of t_ds_version
991991
-- ----------------------------
992992
INSERT INTO t_ds_version
993-
VALUES ('1', '3.1.8');
993+
VALUES ('1', '3.1.9');
994994

995995

996996
-- ----------------------------

Diff for: dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_mysql.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ CREATE TABLE `t_ds_version` (
981981
-- ----------------------------
982982
-- Records of t_ds_version
983983
-- ----------------------------
984-
INSERT IGNORE INTO `t_ds_version` VALUES ('1', '3.1.8');
984+
INSERT IGNORE INTO `t_ds_version` VALUES ('1', '3.1.9');
985985

986986

987987
-- ----------------------------

Diff for: dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ INSERT INTO t_ds_queue(queue_name, queue, create_time, update_time)
973973
VALUES ('default', 'default', '2018-11-29 10:22:33', '2018-11-29 10:22:33');
974974

975975
-- Records of t_ds_queue,default queue name : default
976-
INSERT INTO t_ds_version(version) VALUES ('3.1.8');
976+
INSERT INTO t_ds_version(version) VALUES ('3.1.9');
977977

978978
--
979979
-- Table structure for table t_ds_plugin_define
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.8
1+
3.1.9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/

Diff for: dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/event/WorkflowSubmitFailStateEventHandler.java

+7-9
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ public class WorkflowSubmitFailStateEventHandler implements StateEventHandler {
3434
public boolean handleStateEvent(WorkflowExecuteRunnable workflowExecuteRunnable,
3535
StateEvent stateEvent) throws StateEventHandleException {
3636
WorkflowStateEvent workflowStateEvent = (WorkflowStateEvent) stateEvent;
37-
ProcessInstance processInstance =
38-
workflowExecuteRunnable.getWorkflowExecuteContext().getWorkflowInstance();
39-
measureProcessState(workflowStateEvent, processInstance.getProcessDefinitionCode().toString());
37+
ProcessInstance processInstance = workflowExecuteRunnable.getProcessInstance();
38+
measureProcessState(workflowStateEvent);
4039
log.info(
4140
"Handle workflow instance submit fail state event, the current workflow instance state {} will be changed to {}",
4241
processInstance.getState(), workflowStateEvent.getStatus());
@@ -51,20 +50,19 @@ public StateEventType getEventType() {
5150
return StateEventType.PROCESS_SUBMIT_FAILED;
5251
}
5352

54-
private void measureProcessState(WorkflowStateEvent processStateEvent, String processDefinitionCode) {
53+
private void measureProcessState(WorkflowStateEvent processStateEvent) {
5554
if (processStateEvent.getStatus().isFinished()) {
56-
ProcessInstanceMetrics.incProcessInstanceByStateAndProcessDefinitionCode("finish", processDefinitionCode);
55+
ProcessInstanceMetrics.incProcessInstanceByState("finish");
5756
}
5857
switch (processStateEvent.getStatus()) {
5958
case STOP:
60-
ProcessInstanceMetrics.incProcessInstanceByStateAndProcessDefinitionCode("stop", processDefinitionCode);
59+
ProcessInstanceMetrics.incProcessInstanceByState("stop");
6160
break;
6261
case SUCCESS:
63-
ProcessInstanceMetrics.incProcessInstanceByStateAndProcessDefinitionCode("success",
64-
processDefinitionCode);
62+
ProcessInstanceMetrics.incProcessInstanceByState("success");
6563
break;
6664
case FAILURE:
67-
ProcessInstanceMetrics.incProcessInstanceByStateAndProcessDefinitionCode("fail", processDefinitionCode);
65+
ProcessInstanceMetrics.incProcessInstanceByState("fail");
6866
break;
6967
default:
7068
break;

0 commit comments

Comments
 (0)