[fix-11176][Bug] [script] dolphinscheduler-daemon.sh Status error #11176#11182
[fix-11176][Bug] [script] dolphinscheduler-daemon.sh Status error #11176#11182TangTangGrit wants to merge 9 commits intoapache:devfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #11182 +/- ##
============================================
- Coverage 40.23% 40.16% -0.07%
- Complexity 4924 4947 +23
============================================
Files 982 988 +6
Lines 37567 37688 +121
Branches 4129 4135 +6
============================================
+ Hits 15116 15139 +23
- Misses 20915 21007 +92
- Partials 1536 1542 +6
Help us with your feedback. Take ten seconds to tell us how you rate us. |
|
I wonder, can we directly check the |
That sounds more reasonable to me. |
I have checked. There is no individual service PID |
We do have it. You can take a look at dolphinscheduler/script/dolphinscheduler-daemon.sh Lines 63 to 87 in 4b43d62 |
|
|
What i mean is we can get the pid of each service through the pid file to verify whether the process is alive. @TangTangGrit |
Yes, that's what I did |
I see. Sorry, I was careless and didn't take a close look at your modification. |
fix the alert-server and standalone-server class
| state="STOP" | ||
| state="[ \033[1;31m $state \033[0m ]" | ||
| if [ -f $pid ]; then | ||
| TARGET_PID=`cat $pid` | ||
| serverCount=`ps -p $TARGET_PID | wc -l` | ||
| if [[ $serverCount -gt 1 ]];then | ||
| state="RUNNING" | ||
| state="[ \033[1;32m $state \033[0m ]" | ||
| fi | ||
| echo -e "$command $state" | ||
| fi | ||
| ;; | ||
There was a problem hiding this comment.
I think we should not do this. The previous version is enough. Please rollback it.
There was a problem hiding this comment.
This is the,This is verified by obtaining the PID of each service from the PID file.
There was a problem hiding this comment.
Yes. But the old method also realizes this function. We should try to reduce large-scale modifications to ensure stability.
There was a problem hiding this comment.
@SbloodyS I think this is better than the old, more beautiful ^_^
There was a problem hiding this comment.
This change is want to used the pid as filter rather than use the process name.
If the pid file has been deleted, this method may return an incorrect status.
|
Kudos, SonarCloud Quality Gate passed! |
| ;; | ||
|
|
||
| state="STOP" | ||
| state="[ \033[1;31m $state \033[0m ]" |
There was a problem hiding this comment.
Why you remove the comment # font color - red?
|
This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs. |
|
This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request. |








Purpose of the pull request
close #11176
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md