davsclaus opened a new pull request, #25288:
URL: https://github.com/apache/camel/pull/25288

   ## Backport of #25283
   
   Cherry-pick of #25283 onto `camel-4.18.x`.
   
   **Original PR:** #25283 - CAMEL-24284: Reset recoverTask after successful 
SJMS connection recovery
   **Original author:** @gansheer
   **Target branch:** `camel-4.18.x`
   
   ### Original description
   
   Fix a bug where the SJMS consumer becomes permanently dead after recovering 
from a JMS connection failure once — any subsequent connection failure cannot 
trigger recovery.
   
   **Root cause:** BackgroundTask.schedule() sets running=true but never resets 
it, so the re-scheduling guard permanently blocks after the first successful 
recovery.
   
   **Fix:** Reset recoverTask and recoverFuture to null (and cancel the 
scheduled future) after successful recovery to re-arm the mechanism for 
subsequent failures.


-- 
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]

Reply via email to