apache / apache/pulsar

[Client] Direct Buffer memory leak on Pulsar Admin API in Java

Open
#17,989 3 comments 0 reactions 0 assignees View on GitHub
Stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Version

pulsar-client-all: 2.10.1
pulsar: 2.10.0
flink-connector-pulsar: 1.17-SNAPSHOT

### Minimal reproduce step

Change the Java from 8 to 11 in flink application which uses `pulsar-client-all`. The console shows that the direct buffer memory leaks in Admin API querying.

### What did you expect to see?

No OOM exception.

### What did you see instead?

![image](https://user-images.githubusercontent.com/1761698/194965747-2f15c385-a481-4087-914f-5d142a9abbc0.png)

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start with the minimal reproduction described: a Flink application using pulsar-client-all, comparing Java 8 and Java 11 while querying the Pulsar Admin API. Confirm the direct-buffer leak and resulting OOM behavior, then identify the affected Admin API path; done means the reproduction no longer leaks or throws OOM.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.