reiabreu opened a new pull request, #9081:
URL: https://github.com/apache/storm/pull/9081

   ## Summary
   
   
`DeserializingConnectionCallbackTest.testJavaFallbackNegativeLengthDroppedAndBatchContinues`
 fails on current master (e.g. [run 
#9080](https://github.com/apache/storm/actions/runs/34323849241), and on plain 
master runs), breaking the `test (25, Client, ...)` CI job.
   
   ## Root cause
   
   - #9076 added the test, which corrupts the java-serialization length prefix 
to all-`0xFF` and expected `SerializableSerializer.read()` to reach `new 
byte[len]` and throw `NegativeArraySizeException`.
   - The very next commit, #9075, added a guard to 
`SerializableSerializer.read()` that rejects a negative length with a 
`KryoException` **before** the array is allocated. The dead 
`NegativeArraySizeException` path can no longer be hit, but the test assertion 
was not updated.
   
   ## Change
   
   - Assert `KryoException` (the exception the hardened path now throws) 
instead of `NegativeArraySizeException`.
   - Fix the now-stale comment describing the old allocate-then-fail behavior.
   
   `KryoException` is already a tolerated deserialization-failure/drop reason 
(the sibling `testTruncatedKryoPayloadDroppedAndBatchContinues` asserts it and 
reuses the same `assertBatchDeliversOnlyValidMessages` helper), so the 
batch-continues assertion is unaffected.
   
   ## Verification
   
   Ran the class locally on JDK 25: `Tests run: 10, Failures: 0, Errors: 0` — 
including the previously failing test.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to