-
Notifications
You must be signed in to change notification settings - Fork 59
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
control-service: Reset termination status when job is disabled #1405
Conversation
...s_control_service/src/test/java/com/vmware/taurus/service/monitoring/DataJobMetricsTest.java
Show resolved
Hide resolved
I would prefer that the test is testing the function |
aef1c3f
to
2f43e15
Compare
Hi, @murphp15 UPDATE: I've added two additional tests for the patchDeployment |
...lines_control_service/src/main/java/com/vmware/taurus/service/monitoring/DataJobMetrics.java
Outdated
Show resolved
Hide resolved
Looks in the right direction. I think we need to see what happens when we remove a job deployment as well (I honestly do not know and haven't time to check the code so it's up to you). I am also fine if you decide to handle this case in subsequent PR. Don't wait for my approval since I am going on vacation :) |
2f43e15
to
1cdc3dc
Compare
...es_control_service/src/test/java/com/vmware/taurus/service/deploy/DeploymentServiceTest.java
Outdated
Show resolved
Hide resolved
Currently, when a data job is deleted, we reset its termination status, so as to avoid issues with monitoring services reporting incorrect status. This, however, is not done in case a data job is disabled, even though the job is no longer active and its termination status should not matter. This change modifies the DeplymentService, so that if a data job is disabled, the termination status is reset. Testing Done: Added test. Signed-off-by: Andon Andonov <[email protected]>
7a3e738
to
7ac97ed
Compare
Currently, when a data job is deleted, we reset its termination status, so as to avoid issues with monitoring services reporting incorrect status. This, however, is not done in case a data job is disabled, even though the job is no longer active and its termination status should not matter.
This change modifies the DeplymentService, so that if a data job is disabled, the termination status is reset.
Testing Done: Added test.
Signed-off-by: Andon Andonov [email protected]