Skip to content

CAMEL-23494: Do not set preparingShutdown flag during suspend (backport 4.18.x)#23182

Merged
Croway merged 1 commit into
apache:camel-4.18.xfrom
Croway:backport/CAMEL-23494-4.18.x
May 13, 2026
Merged

CAMEL-23494: Do not set preparingShutdown flag during suspend (backport 4.18.x)#23182
Croway merged 1 commit into
apache:camel-4.18.xfrom
Croway:backport/CAMEL-23494-4.18.x

Conversation

@Croway
Copy link
Copy Markdown
Contributor

@Croway Croway commented May 13, 2026

Summary

Backport of #23179 to camel-4.18.x.

  • Skip setting preparingShutdown = true in prepareShutdown() when suspendOnly = true, preventing silent transaction rollback and redelivery suppression after suspend/resume
  • Fixes RedeliveryErrorHandler and camel-jta TransactionErrorHandler
  • Note: camel-spring TransactionErrorHandler on 4.18.x does not override prepareShutdown(), so the fix in RedeliveryErrorHandler (its parent) is sufficient

Test plan

  • RedeliveryErrorHandlerSuspendResumeTest (camel-core) — passes
  • TransactionErrorHandlerSuspendResumeTest (camel-jta) — passes
  • TransactionalClientDataSourceSuspendResumeTest (camel-spring-xml) — cannot build locally due to pre-existing jaxb2-maven-plugin schemagen issue on this branch/JDK; CI will validate

Claude Code on behalf of Federico Mariani

The preparingShutdown flag should only be set during a real shutdown,
not during a suspend (which is temporary and followed by resume).
Skip setting the flag when suspendOnly=true in prepareShutdown() on
RedeliveryErrorHandler and both TransactionErrorHandler implementations.
@Croway Croway merged commit f897fb3 into apache:camel-4.18.x May 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants