allthingssecurity commented on PR #30909: URL: https://github.com/apache/camel/pull/30909#issuecomment-7214224148
Thanks Claus, good catch. Fixed in eff3d57d: after stopping the stale consumer, the route processor is started again whenever this master consumer runs (`isRunAllowed()`), not only when a consumer is already published. When the master consumer is stopping, the check runs under `leadershipLock`, which `doStop` takes first, so its own stop stops the processor afterwards. The new test `testStartAttemptFromBeforeARestartFinishingWhileTheNewConsumerStartsKeepsTheRouteWorking` follows your recipe: it holds the restarted consumer on `startGate`, lets the earlier attempt finish into the stale branch, releases the gate and checks that the route still routes (it fails without the change). -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
