Zoltan Borok-Nagy has uploaded this change for review. ( https://gerrit.cloudera.org/25566
Change subject: IMPALA-15848: Fix double unlock in SenderQueue::AddBatch() ...................................................................... IMPALA-15848: Fix double unlock in SenderQueue::AddBatch() IMPALA-13475 added a lock_.unlock() call to the is-cancelled branch of KrpcDataStreamRecvr::SenderQueue::AddBatch(). The unique_lock that acquired the lock still owns it, so it unlocks lock_ again when the function returns. base::SpinLock::Unlock() does not check the owner, so the second unlock can release the lock while another thread holds it. The branch runs when a TransmitData RPC reaches a receiver that was just cancelled, e.g. when a LIMIT closes the exchange early. A dockerised test run crashed this way in test_limit: Close() emptied the batch queue while a deserialization thread was still adding a batch to it, so DCHECKs failed in ProcessDeferredRpc() and in MemTracker::Close(). This patch unlocks through the unique_lock, as TakeOverEarlySender() already does. Testing: - Ran data-stream-test. Change-Id: I0d8783b883b3acaf2746f510f180176867559216 Assisted-by: Claude Opus 5.5 (Claude Code) --- M be/src/runtime/krpc-data-stream-recvr.cc 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/25566/1 -- To view, visit https://gerrit.cloudera.org/25566 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I0d8783b883b3acaf2746f510f180176867559216 Gerrit-Change-Number: 25566 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
