oscerd opened a new pull request, #25047: URL: https://github.com/apache/camel/pull/25047
Backport of #25040 to `camel-4.18.x`. When `startQueryExecution`'s inner wait loop exits because `waitTimeout` elapsed while the query was still `QUEUED`/`RUNNING`, no completion flag is set, so `shouldAttempt()` returned `true` and the outer loop resubmitted the same SQL as a brand-new Athena query — orphaning (and continuing to bill) the running one. The fix makes `shouldAttempt()` treat wait-timeout expiry as terminal, while a completed-and-retryable failure still consumes an attempt. The polling loop is identical on this branch. Cherry-picked cleanly; `Athena2QueryHelperTest` passes 24/24. No upgrade-guide entry — bug fix, no user-visible configuration change. --- _Claude Code on behalf of oscerd_ -- 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]
