Skip to content

[Bug] Deadlock in DrainingHashesTracker due to synchronized methods #23848

Closed

Description

@lhotari

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

Pulsar 4.0.1

Minimal reproduce step

Exact steps to reproduce aren't yet confirmed.

This problem was faced in a test. The problem is that there isn't a jstack -l <PID> thread dump of the deadlocked state. I have a heap dump, but since heap dumps don't contain exactly the same information as a thread dump about threads, it's hard to find out the exact reason why the dead lock happens. There are multiple blocked threads which indicates a dead lock:

Image Image Image Image Image Image Image Image Image

What did you expect to see?

No dead locks.

What did you see instead?

There are multiple threads in blocked state which indicates a dead lock.

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/bug
    on Jan 14, 2025
  2. self-assigned this
    on Jan 14, 2025
  3. lhotari commented on Jan 14, 2025

    @lhotari
    MemberAuthor

    I'm planning to first reproduce the issue and then addressing that. One improvement in DrainingHashesTracker is to replace synchronized with the use of a read-write lock.

  4. changed the title [-][Bug] Potential deadlock in DrainingHashesTracker due to synchronized methods[/-] [+][Bug] Deadlock in DrainingHashesTracker due to synchronized methods[/+] on Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions