Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv: dequeue request from lock table wait-queues on scan error
Informs cockroachdb#111352. Informs cockroachdb#111530. Informs cockroachdb#111564. Informs cockroachdb#111893. In 8205b43, we added a case to the lock table where a request's initial scan could throw an error. This was not being handled properly if the request had already entered any other lock wait-queues. In these cases, the request's entries in those wait-queues would be abandoned and the locks would get stuck. This commit fixes that issue by dequeuing the request from the lock table when throwing an error from ScanAndEnqueue. This was one of the causes of the recent kvnemesis instability, but we believe that there is at least one other issue that is still causing timeouts. Release note: None
- Loading branch information