Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
247ca4ae
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 接近 2 年
通知
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,发现更多精彩内容 >>
未验证
提交
247ca4ae
编写于
6月 30, 2022
作者:
W
Wenjun Ruan
提交者:
GitHub
6月 30, 2022
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Improvement-10617] Add comment in slot check (#10618)
上级
5855274b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
3 deletion
+6
-3
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterSchedulerService.java
...cheduler/server/master/runner/MasterSchedulerService.java
+3
-2
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessServiceImpl.java
.../dolphinscheduler/service/process/ProcessServiceImpl.java
+3
-1
未找到文件。
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterSchedulerService.java
浏览文件 @
247ca4ae
...
...
@@ -207,8 +207,9 @@ public class MasterSchedulerService extends BaseDaemonThread {
for
(
final
Command
command
:
commands
)
{
masterPrepareExecService
.
execute
(()
->
{
try
{
// todo: this check is not safe, the slot may change after command transform.
// slot check again
// Note: this check is not safe, the slot may change after command transform.
// We use the database transaction in `handleCommand` so that we can guarantee the command will always be executed
// by only one master
SlotCheckState
slotCheckState
=
slotCheck
(
command
);
if
(
slotCheckState
.
equals
(
SlotCheckState
.
CHANGE
)
||
slotCheckState
.
equals
(
SlotCheckState
.
INJECT
))
{
logger
.
info
(
"Master handle command {} skip, slot check state: {}"
,
command
.
getId
(),
slotCheckState
);
...
...
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessServiceImpl.java
浏览文件 @
247ca4ae
...
...
@@ -138,6 +138,7 @@ import org.apache.dolphinscheduler.spi.enums.ResourceType;
import
org.apache.commons.collections.CollectionUtils
;
import
java.sql.SQLIntegrityConstraintViolationException
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Date
;
...
...
@@ -373,7 +374,8 @@ public class ProcessServiceImpl implements ProcessService {
}
/**
* save error command, and delete original command
* Save error command, and delete original command. If the given command has already been moved into error command,
* will throw {@link SQLIntegrityConstraintViolationException ).
*
* @param command command
* @param message message
...
...
GitCode官方
@csdn_codechina
mentioned in commit
6c83967e
·
9月 10, 2022
mentioned in commit
6c83967e
mentioned in commit 6c83967ebecc0fe0bb07cdeb09c4f42e2321dbe1
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录