You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2019/12/20 11:26:54 UTC
[GitHub] [incubator-dolphinscheduler] Technoboy- opened a new pull request
#1532: fix MasterBaseTaskExecThread submit method bug
Technoboy- opened a new pull request #1532: fix MasterBaseTaskExecThread submit method bug
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1532
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] lenboo commented on a change in pull
request #1532: fix MasterBaseTaskExecThread submit method bug
Posted by GitBox <gi...@apache.org>.
lenboo commented on a change in pull request #1532: fix MasterBaseTaskExecThread submit method bug
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1532#discussion_r360352102
##########
File path: dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterTaskExecThread.java
##########
@@ -74,6 +74,9 @@ public TaskInstance getTaskInstance(){
public Boolean submitWaitComplete() {
Boolean result = false;
this.taskInstance = submit();
+ if(this.taskInstance == null){
+ return result;
Review comment:
should this return be checked whether the process instance is can be continue normally?
i am not sure about this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] Technoboy- commented on a change in
pull request #1532: fix MasterBaseTaskExecThread submit method bug
Posted by GitBox <gi...@apache.org>.
Technoboy- commented on a change in pull request #1532: fix MasterBaseTaskExecThread submit method bug
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1532#discussion_r360405280
##########
File path: dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterTaskExecThread.java
##########
@@ -74,6 +74,9 @@ public TaskInstance getTaskInstance(){
public Boolean submitWaitComplete() {
Boolean result = false;
this.taskInstance = submit();
+ if(this.taskInstance == null){
+ return result;
Review comment:
@qiaozhanwei how about your idea
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] Technoboy- commented on a change in
pull request #1532: fix MasterBaseTaskExecThread submit method bug
Posted by GitBox <gi...@apache.org>.
Technoboy- commented on a change in pull request #1532: fix MasterBaseTaskExecThread submit method bug
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1532#discussion_r360705450
##########
File path: dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterTaskExecThread.java
##########
@@ -74,6 +74,9 @@ public TaskInstance getTaskInstance(){
public Boolean submitWaitComplete() {
Boolean result = false;
this.taskInstance = submit();
+ if(this.taskInstance == null){
+ return result;
Review comment:
Should we send alert here if submit failed?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] codecov-io edited a comment on issue
#1532: fix MasterBaseTaskExecThread submit method bug
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #1532: fix MasterBaseTaskExecThread submit method bug
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1532#issuecomment-567894912
# [Codecov](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=h1) Report
> Merging [#1532](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=desc) into [dev](https://codecov.io/gh/apache/incubator-dolphinscheduler/commit/99fc87f9116f871fa89d985731fb579f0f41aa17?src=pr&el=desc) will **increase** coverage by `0.38%`.
> The diff coverage is `0%`.
[](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## dev #1532 +/- ##
========================================
+ Coverage 7.4% 7.78% +0.38%
========================================
Files 272 272
Lines 13643 13646 +3
Branches 2170 2168 -2
========================================
+ Hits 1010 1063 +53
+ Misses 12566 12511 -55
- Partials 67 72 +5
```
| [Impacted Files](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ler/server/master/runner/MasterTaskExecThread.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvc2VydmVyL21hc3Rlci9ydW5uZXIvTWFzdGVyVGFza0V4ZWNUaHJlYWQuamF2YQ==) | `0% <0%> (ø)` | :arrow_up: |
| [...server/master/runner/MasterBaseTaskExecThread.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvc2VydmVyL21hc3Rlci9ydW5uZXIvTWFzdGVyQmFzZVRhc2tFeGVjVGhyZWFkLmphdmE=) | `0% <0%> (ø)` | :arrow_up: |
| [...pache/dolphinscheduler/common/utils/FileUtils.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1jb21tb24vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvY29tbW9uL3V0aWxzL0ZpbGVVdGlscy5qYXZh) | `18.47% <0%> (+1.64%)` | :arrow_up: |
| [...apache/dolphinscheduler/api/enums/ExecuteType.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1hcGkvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvYXBpL2VudW1zL0V4ZWN1dGVUeXBlLmphdmE=) | `66.66% <0%> (+66.66%)` | :arrow_up: |
| [.../dolphinscheduler/server/utils/SparkArgsUtils.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvc2VydmVyL3V0aWxzL1NwYXJrQXJnc1V0aWxzLmphdmE=) | `92.15% <0%> (+92.15%)` | :arrow_up: |
| [...ache/dolphinscheduler/common/enums/ZKNodeType.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1jb21tb24vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvY29tbW9uL2VudW1zL1pLTm9kZVR5cGUuamF2YQ==) | `100% <0%> (+100%)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=footer). Last update [99fc87f...16c29a0](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] lenboo commented on a change in pull
request #1532: fix MasterBaseTaskExecThread submit method bug
Posted by GitBox <gi...@apache.org>.
lenboo commented on a change in pull request #1532: fix MasterBaseTaskExecThread submit method bug
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1532#discussion_r360347569
##########
File path: dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterBaseTaskExecThread.java
##########
@@ -114,37 +114,37 @@ protected TaskInstance submit(){
Integer commitRetryInterval = masterConfig.getMasterTaskCommitInterval();
int retryTimes = 1;
- boolean taskDBFlag = false;
- boolean taskQueueFlag = false;
+ boolean submitDB = false;
+ boolean submitQueue = false;
TaskInstance task = null;
- while (true){
+ while (retryTimes <= commitRetryTimes){
try {
- if(!taskDBFlag){
+ if(!submitDB){
// submit task to db
task = processDao.submitTask(taskInstance, processInstance);
if(task != null && task.getId() != 0){
- taskDBFlag = true;
+ submitDB = true;
}
}
- if(taskDBFlag && !taskQueueFlag){
+ if(submitDB && !submitQueue){
// submit task to queue
- taskQueueFlag = processDao.submitTaskToQueue(task);
+ submitQueue = processDao.submitTaskToQueue(task);
}
- if(taskDBFlag && taskQueueFlag){
+ if(submitDB && submitQueue){
return task;
}
- if(!taskDBFlag){
+ if(!submitDB){
logger.error("task commit to db failed , task has already retry {} times, please check the database", retryTimes);
- }else if(!taskQueueFlag){
+ }else if(!submitDB){
Review comment:
is submitQueue?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] qiaozhanwei commented on a change in
pull request #1532: fix MasterBaseTaskExecThread submit method bug
Posted by GitBox <gi...@apache.org>.
qiaozhanwei commented on a change in pull request #1532: fix MasterBaseTaskExecThread submit method bug
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1532#discussion_r361069044
##########
File path: dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterTaskExecThread.java
##########
@@ -74,6 +74,9 @@ public TaskInstance getTaskInstance(){
public Boolean submitWaitComplete() {
Boolean result = false;
this.taskInstance = submit();
+ if(this.taskInstance == null){
+ return result;
Review comment:
1,Uncertain return, it is recommended to debug
2,submit failed should be logs and mail
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] qiaozhanwei merged pull request #1532:
fix MasterBaseTaskExecThread submit method bug
Posted by GitBox <gi...@apache.org>.
qiaozhanwei merged pull request #1532: fix MasterBaseTaskExecThread submit method bug
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1532
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] Technoboy- commented on a change in
pull request #1532: fix MasterBaseTaskExecThread submit method bug
Posted by GitBox <gi...@apache.org>.
Technoboy- commented on a change in pull request #1532: fix MasterBaseTaskExecThread submit method bug
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1532#discussion_r361170732
##########
File path: dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/MasterTaskExecThread.java
##########
@@ -74,6 +74,9 @@ public TaskInstance getTaskInstance(){
public Boolean submitWaitComplete() {
Boolean result = false;
this.taskInstance = submit();
+ if(this.taskInstance == null){
+ return result;
Review comment:
yes, I debug for submit fail test, process will end and be a failure state.
it is satisfied the result.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] codecov-io commented on issue #1532:
fix MasterBaseTaskExecThread submit method bug
Posted by GitBox <gi...@apache.org>.
codecov-io commented on issue #1532: fix MasterBaseTaskExecThread submit method bug
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1532#issuecomment-567894912
# [Codecov](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=h1) Report
> Merging [#1532](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=desc) into [dev](https://codecov.io/gh/apache/incubator-dolphinscheduler/commit/1868c56764a380a7dca80429c90b8faf58e2b51f?src=pr&el=desc) will **increase** coverage by `0.42%`.
> The diff coverage is `96.55%`.
[](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## dev #1532 +/- ##
========================================
+ Coverage 6.97% 7.4% +0.42%
========================================
Files 272 272
Lines 13622 13647 +25
Branches 2168 2172 +4
========================================
+ Hits 950 1010 +60
+ Misses 12605 12570 -35
Partials 67 67
```
| [Impacted Files](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ler/server/master/runner/MasterTaskExecThread.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvc2VydmVyL21hc3Rlci9ydW5uZXIvTWFzdGVyVGFza0V4ZWNUaHJlYWQuamF2YQ==) | `0% <ø> (ø)` | :arrow_up: |
| [...server/master/runner/MasterBaseTaskExecThread.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvc2VydmVyL21hc3Rlci9ydW5uZXIvTWFzdGVyQmFzZVRhc2tFeGVjVGhyZWFkLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...cheduler/server/worker/runner/FetchTaskThread.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvc2VydmVyL3dvcmtlci9ydW5uZXIvRmV0Y2hUYXNrVGhyZWFkLmphdmE=) | `0% <ø> (ø)` | :arrow_up: |
| [...pache/dolphinscheduler/common/utils/FileUtils.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1jb21tb24vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvY29tbW9uL3V0aWxzL0ZpbGVVdGlscy5qYXZh) | `16.83% <100%> (ø)` | :arrow_up: |
| [...he/dolphinscheduler/alert/utils/PropertyUtils.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1hbGVydC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvZG9scGhpbnNjaGVkdWxlci9hbGVydC91dGlscy9Qcm9wZXJ0eVV0aWxzLmphdmE=) | `88.23% <96.29%> (+88.23%)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=footer). Last update [1868c56...7bb0beb](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-dolphinscheduler] codecov-io edited a comment on issue
#1532: fix MasterBaseTaskExecThread submit method bug
Posted by GitBox <gi...@apache.org>.
codecov-io edited a comment on issue #1532: fix MasterBaseTaskExecThread submit method bug
URL: https://github.com/apache/incubator-dolphinscheduler/pull/1532#issuecomment-567894912
# [Codecov](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=h1) Report
> Merging [#1532](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=desc) into [dev](https://codecov.io/gh/apache/incubator-dolphinscheduler/commit/99fc87f9116f871fa89d985731fb579f0f41aa17?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `0%`.
[](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## dev #1532 +/- ##
========================================
- Coverage 7.4% 7.4% -0.01%
========================================
Files 272 272
Lines 13643 13647 +4
Branches 2170 2172 +2
========================================
Hits 1010 1010
- Misses 12566 12570 +4
Partials 67 67
```
| [Impacted Files](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [...ler/server/master/runner/MasterTaskExecThread.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvc2VydmVyL21hc3Rlci9ydW5uZXIvTWFzdGVyVGFza0V4ZWNUaHJlYWQuamF2YQ==) | `0% <0%> (ø)` | :arrow_up: |
| [...server/master/runner/MasterBaseTaskExecThread.java](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532/diff?src=pr&el=tree#diff-ZG9scGhpbnNjaGVkdWxlci1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvc2VydmVyL21hc3Rlci9ydW5uZXIvTWFzdGVyQmFzZVRhc2tFeGVjVGhyZWFkLmphdmE=) | `0% <0%> (ø)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=footer). Last update [99fc87f...d14cefd](https://codecov.io/gh/apache/incubator-dolphinscheduler/pull/1532?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services