I'm having an issue with my Spring Boot app where the only one group is processed in my aggregator and then the app stops consuming more messages from the queue. It only processes a group at startup it seems. I restarted the app and it processed another group, but then it just stopped again.
This is my flow below.
return IntegrationFlows.from(Amqp.inboundAdapter(connectionFactory, importQueueName).errorChannel(errorChannel))
.split(userImportSplitter)
.channel(Amqp.channel(connectionFactory)
.queueName(USER_QUEUE_NAME)
.prefetchCount(batchSize))
.aggregate(a -> a.releaseStrategy(g -> g.size() >= batchSize)
.sendPartialResultOnExpiry(true)
.groupTimeout(500))
.handle(userImporter)
.get();