Skip to content

Conversation

@zhaohaidao
Copy link
Contributor

Purpose

Linked issue: close #164

Brief change log

Tests

API and Format

Documentation

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a deadlock issue in the LogFetchBuffer by preventing lock-order inversion when accessing multiple mutex-protected fields.

Changes:

  • Restructured buffered_buckets() method to acquire and release locks sequentially instead of holding multiple locks simultaneously

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@luoyuxia luoyuxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhaohaida Thanks for fix. LGTM!

@luoyuxia luoyuxia merged commit bbd5fad into apache:main Jan 16, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deadlock in LogFetchBuffer due to lock-order inversion between buffered_buckets and add

2 participants