RATIS-2426. Fix memory leak in ServerRequestStreamObserver by ivandika3 · Pull Request #1368 · apache/ratis

added 4 commits

March 9, 2026 11:02

@ivandika3 ivandika3 changed the title Ratis 2426 RATIS-2426. Fix memory leak in ServerRequestStreamObserver

Mar 9, 2026

@ivandika3

@ivandika3

@ivandika3

@ivandika3

@ivandika3

@ivandika3

Add a static counter in GrpcServerProtocolService that tracks
handleError closures where previousOnNext was not cleaned up.
The test asserts the counter remains zero, which fails without
the previousOnNext.set(null) fix.

Made-with: Cursor

@ivandika3

@ivandika3

@ivandika3

@ivandika3 ivandika3 marked this pull request as ready for review

March 12, 2026 04:09