jenskordowski opened a new pull request #5925: URL: https://github.com/apache/camel/pull/5925
Both retry & reconnect states need to be set carefully. Prior this change, retry=true is always true (unless PollOnError is set to STOP) and this retry state still avoids that the consumer is closed in the finally block. I temporarily set it to false in the RECONNECT case (so the consumer is closed) and reset it later to continue polling. Probably better to merge those states into a single enum (potential future improvement). Also I recognized that the consumer may leak if the service is being stopped, while not being in the poll routine (i.e. while retrying/reconnecting/sleeping). Best regards Jens -- 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: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org