Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
209ab7df
Unverified
Commit
209ab7df
authored
Nov 24, 2022
by
高岩
Committed by
GitHub
Nov 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix k8s sql application savepoint failed (#1315)
* bug fix k8s application savepoint failed * add some comment Co-authored-by: steve <woai1998>
parent
03c86bcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
TaskServiceImpl.java
...src/main/java/com/dlink/service/impl/TaskServiceImpl.java
+8
-10
No files found.
dlink-admin/src/main/java/com/dlink/service/impl/TaskServiceImpl.java
View file @
209ab7df
...
@@ -752,20 +752,18 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
...
@@ -752,20 +752,18 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
JobConfig
jobConfig
=
new
JobConfig
();
JobConfig
jobConfig
=
new
JobConfig
();
jobConfig
.
setAddress
(
cluster
.
getJobManagerHost
());
jobConfig
.
setAddress
(
cluster
.
getJobManagerHost
());
jobConfig
.
setType
(
cluster
.
getType
());
jobConfig
.
setType
(
cluster
.
getType
());
Task
task
=
this
.
getTaskInfoById
(
cluster
.
getTaskId
());
if
(
GatewayType
.
KUBERNETES_APPLICATION
.
equalsValue
(
cluster
.
getType
()))
{
Statement
statement
=
statementService
.
getById
(
cluster
.
getTaskId
());
Map
<
String
,
Object
>
clusterConfiguration
=
clusterConfigurationService
.
getGatewayConfig
(
cluster
.
getClusterConfigurationId
());
Map
<
String
,
Object
>
gatewayConfig
=
JSONUtil
.
toMap
(
statement
.
getStatement
(),
String
.
class
,
Object
.
class
);
gatewayConfig
.
putAll
(
clusterConfiguration
);
jobConfig
.
buildGatewayConfig
(
gatewayConfig
);
jobConfig
.
getGatewayConfig
().
getClusterConfig
().
setAppId
(
cluster
.
getName
());
useGateway
=
true
;
}
if
(
Asserts
.
isNotNull
(
cluster
.
getClusterConfigurationId
()))
{
if
(
Asserts
.
isNotNull
(
cluster
.
getClusterConfigurationId
()))
{
Map
<
String
,
Object
>
gatewayConfig
=
Map
<
String
,
Object
>
gatewayConfig
=
clusterConfigurationService
.
getGatewayConfig
(
cluster
.
getClusterConfigurationId
());
clusterConfigurationService
.
getGatewayConfig
(
cluster
.
getClusterConfigurationId
());
// 如果是k8s application 模式,且不是sql任务,则需要补齐statement 内的自定义配置
if
(
Dialect
.
KUBERNETES_APPLICATION
.
equalsVal
(
task
.
getDialect
()))
{
Statement
statement
=
statementService
.
getById
(
cluster
.
getTaskId
());
Map
<
String
,
Object
>
statementConfig
=
JSONUtil
.
toMap
(
statement
.
getStatement
(),
String
.
class
,
Object
.
class
);
gatewayConfig
.
putAll
(
statementConfig
);
}
jobConfig
.
buildGatewayConfig
(
gatewayConfig
);
jobConfig
.
buildGatewayConfig
(
gatewayConfig
);
jobConfig
.
getGatewayConfig
().
getClusterConfig
().
setAppId
(
cluster
.
getName
());
jobConfig
.
getGatewayConfig
().
getClusterConfig
().
setAppId
(
cluster
.
getName
());
useGateway
=
true
;
useGateway
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment