Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task instance failure when worker group doesn't exist #13448

Conversation

ruanwenjun
Copy link
Member

Purpose of the pull request

Set then task instance status to failure when the related worker group doesn't exist.

This may happen when user change the worker group name or worker group has been deleted.

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

@ruanwenjun ruanwenjun added improvement make more easy to user or prompt friendly 3.2.0 for 3.2.0 version labels Jan 29, 2023
@ruanwenjun ruanwenjun added this to the 3.2.0 milestone Jan 29, 2023
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_taskFailedWhenWorkerGroupDoesExist branch from e56ac7d to 50719a9 Compare January 29, 2023 05:38
@codecov-commenter
Copy link

codecov-commenter commented Jan 29, 2023

Codecov Report

Merging #13448 (873b9e4) into dev (45694aa) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##                dev   #13448      +/-   ##
============================================
- Coverage     39.59%   39.53%   -0.07%     
+ Complexity     4336     4334       -2     
============================================
  Files          1086     1087       +1     
  Lines         40955    40985      +30     
  Branches       4700     4701       +1     
============================================
- Hits          16218    16205      -13     
- Misses        22932    22976      +44     
+ Partials       1805     1804       -1     
Impacted Files Coverage Δ
...ver/master/consumer/TaskPriorityQueueConsumer.java 0.00% <0.00%> (ø)
...ler/server/master/dispatch/ExecutorDispatcher.java 0.00% <0.00%> (ø)
...rver/master/dispatch/context/ExecutionContext.java 100.00% <ø> (ø)
...patch/exceptions/WorkerGroupNotFoundException.java 0.00% <0.00%> (ø)
...master/dispatch/executor/NettyExecutorManager.java 0.00% <0.00%> (ø)
...server/master/dispatch/host/CommonHostManager.java 85.71% <ø> (ø)
...r/master/dispatch/host/LowerWeightHostManager.java 0.00% <0.00%> (ø)
...er/server/master/event/TaskResultEventHandler.java 0.00% <0.00%> (ø)
...duler/server/master/processor/queue/TaskEvent.java 60.00% <ø> (ø)
...er/master/processor/queue/TaskExecuteRunnable.java 0.00% <0.00%> (ø)
... and 9 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_taskFailedWhenWorkerGroupDoesExist branch from 50719a9 to 3889c4c Compare January 29, 2023 07:04
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_taskFailedWhenWorkerGroupDoesExist branch from 3889c4c to 873b9e4 Compare January 29, 2023 07:10
@sonarcloud
Copy link

sonarcloud bot commented Jan 29, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@caishunfeng caishunfeng merged commit ce34e21 into apache:dev Jan 29, 2023
@ruanwenjun ruanwenjun deleted the dev_wenjun_taskFailedWhenWorkerGroupDoesExist branch January 29, 2023 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.2.0 for 3.2.0 version backend improvement make more easy to user or prompt friendly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants