new schema change deadlock
Open
bug
- Dominant language
- C
- Stars
- 1.5k
- Forks
- 243
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 37
Description
New schema change code relies on meta_get_tran(), which updates table options under a transaction. The get() accessor functions for table options rely on lite_find_exact_auxdb_tran(), which retries on deadlock instead returning error to caller (if transaction is passed as argument). Berkeley db lock detector deadlocks if reusing deadlock-ed transaction tid-s.
Here is the offending code:
https://github.com/bloomberg/comdb2/blob/master/db/glue.c#L5074-L5084
Contributor guide
Assessment
This issue has not been assessed yet.