-
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: handle deployment deletion in case of a job being deleted #2816
control-service: handle deployment deletion in case of a job being deleted #2816
Conversation
6757a79
to
2ce3965
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for addressing those changes.
Please make sure vdk-heartbeat passes reliably (3 times in sequence for example).
I am concerned that changing from syncrhouos to more async/eventual consistence model might introduce some intermittent issues so do not rely on passing immediately and monitor the control service pipeline a few days after the merge.
...nes_control_service/src/main/java/com/vmware/taurus/service/deploy/DataJobsSynchronizer.java
Show resolved
Hide resolved
...ce/src/integration-test/java/com/vmware/taurus/service/deploy/DataJobDeploymentCrudITV2.java
Show resolved
Hide resolved
0a7181f
to
2ce3965
Compare
I've introduced the initial version of async job deployment integration tests. This is just the starting point, and we plan to expand and refactor it further in the upcoming version based on feedback from aivanov's comment. You can find the discussion on this change in the following link: Link to the GitHub pull request discussion Signed-off-by: Miroslav Ivanov miroslavi@vmware.com
a758c55
to
9c8baa8
Compare
…leted Why When the data job is deleted, both desired deployment records are deleted, but the actual deployment records and Kubernetes cron jobs are still present. What Extended the deployment synchronization to cover this scenario. Testing done Integration tests. Signed-off-by: Miroslav Ivanov miroslavi@vmware.com
5109362
to
5d54cb5
Compare
Why
When the data job is deleted, both desired deployment records are deleted, but the actual deployment records and Kubernetes cron jobs are still present.
What
Extended the deployment synchronization to cover this scenario. Added an additional flyway script as part of the integration tests because of the different H2 constraint naming.
Testing done
Integration tests.
Signed-off-by: Miroslav Ivanov miroslavi@vmware.com