Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.4.3, 4.6.0
-
None
-
Unknown
Description
InputStreamCache is reset after each step (org.apache.camel.impl.engine.CamelInternalProcessor.StreamCachingAdvice#after), and if there are two threads processing the same InputStreamCache (e.g. Seda), there may be a case where one thread invokes InputStreamCache#reset (org.apache.camel.support.MessageHelper#resetStreamCache) while another thread converts this InputStreamCache to String (org.apache.camel.util.IOHelper#toString(java.io.BufferedReader, long). It leads to java.io.ByteArrayInputStream#pos being reset and the target String having duplicate entries.
Attachments
Issue Links
- relates to
-
CAMEL-20866 SEDA with exchangepattern InOnly gives sometimes multiple responses
- Resolved
- links to