bloomberg / bloomberg/comdb2

new schema change deadlock

Open
#441 0 comments 0 reactions 1 assignee Claimed by @ldennis View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.