After upgrading from camel 2.17.5 to 2.21.0 the following problem was encountered:
A camel RouteBuilder with a split :
A malformed xml arrives on this route. it.hasNext() returns true but it.next() throws an exception. This causes an indefinite wait in MulticastProcessor at line 374.
A call to countDown on aggregationOnTheFlyDone is never performed and thus the latch waits indefinitely.
A call to aggregationOnTheFlyDone .countDown inside the catch corresponding to the try surrounding the while.