fix(BRIDGE-614): read onDiskLiteral in applyMessageUpdated before db transaction - #486
Conversation
|
There's three separate things getting addressed here:
I'd split them off into their own MR's and commits. AFAIK this is the order of importance 2 -> 1 -> 3. I only took a better look at part 2 thus far, and that one looks good and clear. But I'm not so sure about 3 in particular. Rarely touched, and based off of the evidence we have the deadlock shouldn't be related to that part in particular. |
I will split them up and open them as separate prs. The importing/moving has the same codepath as 2, so they can be included in one. The panic recovery is its special thing |
73c5657 to
9af3dfe
Compare
9af3dfe to
66a4fc9
Compare
|
@ElectroNafta split up the MR into a stack, each containing separate changes |
66a4fc9 to
4c73f46
Compare
If a panic happens in appy(), it doesn't block potential Wait/WaitContext listeners and applies updates.Done.
Concurrently get/set in a db transaction doesn't contest for the same lock - read the literals before the transaction.