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

Very slow delete #6373

Closed
wouterdb opened this issue Aug 9, 2023 · 0 comments
Closed

Very slow delete #6373

wouterdb opened this issue Aug 9, 2023 · 0 comments
Labels
bug Something isn't working support Customer support ticket

Comments

@wouterdb
Copy link
Contributor

wouterdb commented Aug 9, 2023

When

  • clearing 2 environments at the same time
  • with a HA database
  • on ISO6

This

  • took over 40 hours
  • with very high cpu load
  • the number of versions slowly decreased in the dashboard
  • and after the delete everything was back, nothing was deleted

Database dump prior to the delete and server log after delete. can be found here: https://app.slack.com/client/T8G8JAPFU/CF7J3GD7Z/thread/CF7J3GD7Z-1691397814.827799

@wouterdb wouterdb added bug Something isn't working support Customer support ticket labels Aug 9, 2023
inmantaci pushed a commit that referenced this issue Aug 11, 2023
…environment. (Issue #6373, PR #6381)

# Description

Improve the performance of the API endpoints that clear or delete an environment.

closes #6373

# Self Check:

- [x] Attached issue to pull request
- [x] Changelog entry
- [x] Type annotations are present
- [x] Code is clear and sufficiently documented
- [x] No (preventable) type errors (check using make mypy or make mypy-diff)
- [x] Sufficient test cases (reproduces the bug/tests the requested feature)
- [x] Correct, in line with design
- [ ] ~~End user documentation is included or an issue is created for end-user documentation~~
- [ ] ~~If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)~~
inmantaci pushed a commit that referenced this issue Aug 11, 2023
…environment. (Issue #6373, PR #6381)

# Description

Improve the performance of the API endpoints that clear or delete an environment.

closes #6373

# Self Check:

- [x] Attached issue to pull request
- [x] Changelog entry
- [x] Type annotations are present
- [x] Code is clear and sufficiently documented
- [x] No (preventable) type errors (check using make mypy or make mypy-diff)
- [x] Sufficient test cases (reproduces the bug/tests the requested feature)
- [x] Correct, in line with design
- [ ] ~~End user documentation is included or an issue is created for end-user documentation~~
- [ ] ~~If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see [test-fixes](https://internal.inmanta.com/development/core/tasks/build-master.html#test-fixes) for more info)~~
inmantaci pushed a commit that referenced this issue Aug 11, 2023
…environment. (Issue #6373, PR #6381)

Pull request opened by the merge tool on behalf of #6381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working support Customer support ticket
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant