You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This build failed because of a deadlock on the delete path.
Trace:
Traceback (most recent call last):
File "/home/jenkins/workspace/_core-postgresql-versions_master/project/inmanta-core/.tox/py39/lib/python3.9/site-packages/inmanta/protocol/rest/__init__.py", line 495, in _execute_call
result = await config.handler(**arguments.call_args)
File "/home/jenkins/workspace/_core-postgresql-versions_master/project/inmanta-core/.tox/py39/lib/python3.9/site-packages/inmanta/server/services/orchestrationservice.py", line 472, in delete_version
await version.delete_cascade()
File "/home/jenkins/workspace/_core-postgresql-versions_master/project/inmanta-core/.tox/py39/lib/python3.9/site-packages/inmanta/data/__init__.py", line 5592, in delete_cascade
await self.delete(connection=con)
File "/home/jenkins/workspace/_core-postgresql-versions_master/project/inmanta-core/.tox/py39/lib/python3.9/site-packages/inmanta/data/__init__.py", line 1965, in delete
await self._execute_query(query, *values, connection=connection)
File "/home/jenkins/workspace/_core-postgresql-versions_master/project/inmanta-core/.tox/py39/lib/python3.9/site-packages/inmanta/data/__init__.py", line 1319, in _execute_query
return await con.execute(query, *values)
File "/home/jenkins/workspace/_core-postgresql-versions_master/project/inmanta-core/.tox/py39/lib64/python3.9/site-packages/asyncpg/connection.py", line 320, in execute
_, status, _ = await self._execute(
File "/home/jenkins/workspace/_core-postgresql-versions_master/project/inmanta-core/.tox/py39/lib64/python3.9/site-packages/asyncpg/connection.py", line 1659, in _execute
result, _ = await self.__execute(
File "/home/jenkins/workspace/_core-postgresql-versions_master/project/inmanta-core/.tox/py39/lib64/python3.9/site-packages/asyncpg/connection.py", line 1684, in __execute
return await self._do_execute(
File "/home/jenkins/workspace/_core-postgresql-versions_master/project/inmanta-core/.tox/py39/lib64/python3.9/site-packages/asyncpg/connection.py", line 1731, in _do_execute
result = await executor(stmt, None)
File "asyncpg/protocol/protocol.pyx", line 201, in bind_execute
asyncpg.exceptions.DeadlockDetectedError: deadlock detected
The text was updated successfully, but these errors were encountered:
…because it acquires a table-level lock on an incorrect database table. (Issue #4834, PR #4863)
# Description
Fix bug where lock is acquired on the ConfigurationModel table instead of the ResourceAction table. This bug causes deadlocks.
closes#4834
# 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~~
# Reviewer Checklist:
- [ ] Sufficient test cases (reproduces the bug/tests the requested feature)
- [ ] Code is clear and sufficiently documented
- [ ] Correct, in line with design
…because it acquires a table-level lock on an incorrect database table. (Issue #4834, PR #4863)
Pull request opened by the merge tool on behalf of #4863
This build failed because of a deadlock on the delete path.
Trace:
The text was updated successfully, but these errors were encountered: