Skip to content

[cherry-pick] fix: release BulkWriter locks in finally blocks (#2106) - #2107

Merged
mergify[bot] merged 1 commit into
3.0from
cherry-pick-f1c0e035-to-3.0-37471226541-1
Oct 6, 2026
Merged

mergify[bot] merged 1 commit into
3.0from
cherry-pick-f1c0e035-to-3.0-37471226541-1

Conversation

@yhmo

@yhmo yhmo commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Cherry-picks commit f1c0e035e6710c77c5e9af8f536a05547e4e7119 (f1c0e03) from master to 3.0.

Created automatically by the backport workflow after the PR was merged to master.

appendLock, fileWriteLock and workingThreadLock were released without
try/finally. If the guarded code threw (IOException, OutOfMemoryError,
a failed chunk upload in commitIfFileReady), the lock stayed held by
the throwing thread, and every other thread calling appendRow parked
forever.

Fixes #2104

Signed-off-by: Waqqas Jabbar waqqas@vectara.com
Co-authored-by: Claude Opus 5.5 noreply@anthropic.com

appendLock, fileWriteLock and workingThreadLock were released without
try/finally. If the guarded code threw (IOException, OutOfMemoryError,
a failed chunk upload in commitIfFileReady), the lock stayed held by
the throwing thread, and every other thread calling appendRow parked
forever.

Fixes #2104

Signed-off-by: Waqqas Jabbar <waqqas@vectara.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit f1c0e03)
@sre-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yhmo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mergify

mergify Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@mergify mergify Bot added the ci-passed label Oct 6, 2026
@mergify
mergify Bot merged commit 1c56739 into 3.0 Oct 6, 2026
6 of 7 checks passed
@mergify
mergify Bot deleted the cherry-pick-f1c0e035-to-3.0-37471226541-1 branch October 6, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants