[Feat][SDK-594] Compress payload and update payload max size to 1mb #371
Claude / Claude Code Review
completed
May 4, 2026 in 18m 43s
Code review found 2 potential issues
Found 6 candidates, confirmed 2. See review comments for details.
Details
| Severity | Count |
|---|---|
| 🔴 Important | 0 |
| 🟡 Nit | 1 |
| 🟣 Pre-existing | 0 |
| Severity | File:Line | Issue |
|---|---|---|
| 🟡 Nit | rollbar-reactive-streams-reactor/src/main/java/com/rollbar/reactivestreams/notifier/sender/http/ReactorAsyncHttpClient.java:154-164 |
Resource cleanup gaps in new gzip compression code |
Annotations
claude / Claude Code Review
Resource cleanup gaps in new gzip compression code
Two related resource-cleanup gaps were introduced by this PR's new gzip code. (1) The new `compress()` helpers in `ReactorAsyncHttpClient.java:154-164` and `ApacheRequestPublisher.java:129-139` construct a `GZIPOutputStream` and call `gzip.write(...)`/`gzip.close()` linearly without try/finally — if `write` throws, `close()` (and therefore `Deflater.end()` which releases native off-heap memory) never runs. (2) In `ReactorAsyncHttpClient.send()` line 53, a pooled Netty `ByteBuf` is allocated befo
Loading