spring-framework icon indicating copy to clipboard operation
spring-framework copied to clipboard

Race condition on jmsListener scaling down

Open fsgonz opened this issue 5 months ago • 2 comments
trafficstars

After this changes related to this issue, we are experiencing race conditons when jmsListeners are scaling down and some messages are dropped.

I've seen that this idleReceivesPerTaskLimit was changed which previously was always < 0 as default. Now, by default it will always eventually result in the consumers to be stopped resulting for this condition.

Should this condition which now is always false by default and previously was always true, be changed to something like this:

if (messageLimit < 0 && (!surplus || idleTaskExecutionCount< idleLimit))\

cc @jhoeller

fsgonz avatar May 22 '25 17:05 fsgonz