00sense opened a new pull request, #3786:
URL: https://github.com/apache/fory/pull/3786

   ## Why?
   
   `LinkedBlockingQueueSerializer` fails to deserialize default unbounded `new 
LinkedBlockingQueue<>()`. Serialize works, deserialize throws 
`IndexOutOfBoundsException` because capacity on the wire is `Integer.MAX_VALUE` 
and `checkReadableBytes(capacity)` tries to read ~2GB. Bounded queues like `new 
LinkedBlockingQueue<>(16)` work fine.
   
   ## What does this PR do?
   
   - Drop `checkReadableBytes(capacity)` in 
`LinkedBlockingQueueSerializer.newCollection`
   - Add regression test for unbounded queue round-trip
   
   ## Related issues
   
   - Fixes #3783
   
   ## AI Contribution Checklist
   
   - [x] Substantial AI assistance was used in this PR: `no`


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to