Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
40a21816
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 1 年多
通知
707
Star
9572
Fork
3514
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
40a21816
编写于
8月 07, 2020
作者:
_和
提交者:
GitHub
8月 07, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Fix] [Server] Fix the spell error and add log in SqlTask (#3243)
* fix the spell and modify logger print format
上级
f784ce50
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
14 addition
and
14 deletion
+14
-14
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/cache/impl/TaskInstanceCacheManagerImpl.java
...erver/master/cache/impl/TaskInstanceCacheManagerImpl.java
+1
-1
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/cache/impl/TaskExecutionContextCacheManagerImpl.java
...rker/cache/impl/TaskExecutionContextCacheManagerImpl.java
+1
-1
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/sql/SqlTask.java
...ache/dolphinscheduler/server/worker/task/sql/SqlTask.java
+12
-12
未找到文件。
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/cache/impl/TaskInstanceCacheManagerImpl.java
浏览文件 @
40a21816
...
...
@@ -36,7 +36,7 @@ import java.util.concurrent.ConcurrentHashMap;
public
class
TaskInstanceCacheManagerImpl
implements
TaskInstanceCacheManager
{
/**
* taskInstance cac
eh
* taskInstance cac
he
*/
private
Map
<
Integer
,
TaskInstance
>
taskInstanceCache
=
new
ConcurrentHashMap
<>();
...
...
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/cache/impl/TaskExecutionContextCacheManagerImpl.java
浏览文件 @
40a21816
...
...
@@ -32,7 +32,7 @@ public class TaskExecutionContextCacheManagerImpl implements TaskExecutionContex
/**
* taskInstance cac
eh
* taskInstance cac
he
*/
private
Map
<
Integer
,
TaskExecutionContext
>
taskExecutionContextCache
=
new
ConcurrentHashMap
<>();
...
...
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/sql/SqlTask.java
浏览文件 @
40a21816
...
...
@@ -147,8 +147,8 @@ public class SqlTask extends AbstractTask {
}
/**
*
ready to execute SQL and parameter entity Map
* @return
* ready to execute SQL and parameter entity Map
* @return
SqlBinds
*/
private
SqlBinds
getSqlAndSqlParamsMap
(
String
sql
)
{
Map
<
Integer
,
Property
>
sqlParamsMap
=
new
HashMap
<>();
...
...
@@ -250,7 +250,7 @@ public class SqlTask extends AbstractTask {
* result process
*
* @param resultSet resultSet
* @throws Exception
* @throws Exception
Exception
*/
private
void
resultProcess
(
ResultSet
resultSet
)
throws
Exception
{
ArrayNode
resultJSONArray
=
JSONUtils
.
createArrayNode
();
...
...
@@ -293,7 +293,7 @@ public class SqlTask extends AbstractTask {
}
/**
* post
p
sql
* post sql
*
* @param connection connection
* @param postStatementsBinds postStatementsBinds
...
...
@@ -329,7 +329,7 @@ public class SqlTask extends AbstractTask {
* create connection
*
* @return connection
* @throws Exception
* @throws Exception
Exception
*/
private
Connection
createConnection
()
throws
Exception
{
// if hive , load connection params if exists
...
...
@@ -367,7 +367,7 @@ public class SqlTask extends AbstractTask {
try
{
resultSet
.
close
();
}
catch
(
SQLException
e
)
{
logger
.
error
(
"close result set error : {}"
,
e
.
getMessage
(),
e
);
}
}
...
...
@@ -375,7 +375,7 @@ public class SqlTask extends AbstractTask {
try
{
pstmt
.
close
();
}
catch
(
SQLException
e
)
{
logger
.
error
(
"close prepared statement error : {}"
,
e
.
getMessage
(),
e
);
}
}
...
...
@@ -383,17 +383,17 @@ public class SqlTask extends AbstractTask {
try
{
connection
.
close
();
}
catch
(
SQLException
e
)
{
logger
.
error
(
"close connection error : {}"
,
e
.
getMessage
(),
e
);
}
}
}
/**
* preparedStatement bind
* @param connection
* @param sqlBinds
* @return
* @throws Exception
* @param connection
connection
* @param sqlBinds
sqlBinds
* @return
PreparedStatement
* @throws Exception
Exception
*/
private
PreparedStatement
prepareStatementAndBind
(
Connection
connection
,
SqlBinds
sqlBinds
)
throws
Exception
{
// is the timeout set
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录