oscerd commented on PR #29080:
URL: https://github.com/apache/camel/pull/29080#issuecomment-6603205662

   Both points are in.
   
   The component doc now says that a stream body is read fully into memory, 
also by a `putIfAbsent` that finds the key already set.
   
   `StateStoreSpooledStreamBodyTest` turns on spooling with a threshold of 1 
byte, so the body reaches the producer as a cache spooled to a file, which the 
test checks. After the put has completed and its file is gone, two gets each 
return the bytes. It passes now, and on main it fails with "Cannot reset stream 
from file". The test wraps the stream in a `BufferedInputStream`, because 
stream caching keeps a `ByteArrayInputStream` in memory whatever its size.
   
   _Claude Code on behalf of Andrea Cosentino (oscerd)_


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