Project: mule
Issue MULE-8581: Spike on Collection splitter is not setting the group size when payload is an Iterator
Salesforce queries return an iterator and when a collection splitter is used, it fails to aggregate the collection after because the group size is set to -1. Attached mule config This seems to be happening because this class https://github.com/mulesoft/mule/blob/bfb3a17263d1e4b32ee10272cbf710a2bf41b16b/core/src/main/java/org/mule/routing/outbound/IteratorMessageSequence.java is used from https://github.com/mulesoft/mule/blob/1dbf6e09a651184e9c54ec8988ecf1907cbdd58f/core/src/main/java/org/mule/util/collection/EventToMessageSequenceSplittingStrategy.java and it is setting UNKNOWN_SIZE as Group size for all Iterator payloads
Story points: 5