Skip to content

[CELEBORN-2302] Fix NPE in MemoryManager.close() when readBufferDispatcher is not initialized#3654

Closed
cxzl25 wants to merge 1 commit intoapache:mainfrom
cxzl25:CELEBORN-2302
Closed

[CELEBORN-2302] Fix NPE in MemoryManager.close() when readBufferDispatcher is not initialized#3654
cxzl25 wants to merge 1 commit intoapache:mainfrom
cxzl25:CELEBORN-2302

Conversation

@cxzl25
Copy link
Copy Markdown
Contributor

@cxzl25 cxzl25 commented Apr 7, 2026

What changes were proposed in this pull request?

Add a null check for readBufferDispatcher before calling close() in MemoryManager.close().

Why are the changes needed?

readBufferDispatcher is only initialized when readBufferThreshold > 0.

Does this PR resolve a correctness bug?

No

Does this PR introduce any user-facing change?

No

How was this patch tested?

GHA

SteNicholas pushed a commit that referenced this pull request Apr 8, 2026
…tcher is not initialized

### What changes were proposed in this pull request?
Add a null check for readBufferDispatcher before calling close() in MemoryManager.close().

### Why are the changes needed?
readBufferDispatcher is only initialized when readBufferThreshold > 0.

### Does this PR resolve a correctness bug?
No

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
GHA

Closes #3654 from cxzl25/CELEBORN-2302.

Authored-by: sychen <sychen@ctrip.com>
Signed-off-by: SteNicholas <programgeek@163.com>
(cherry picked from commit 7f1bac3)
Signed-off-by: SteNicholas <programgeek@163.com>
@SteNicholas
Copy link
Copy Markdown
Member

Merged to main(v0.7.0) and branch-0.6(v0.6.3).

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