gnodet-bot commented on PR #30703: URL: https://github.com/apache/camel/pull/30703#issuecomment-7119890585
**Coverage gap — low severity:** The PR description identifies four race conditions; the tests cover three of them (`forceConsumerAsReady`, error-state, `repeatCount`/unschedule). There is no test for bug #4: a stale poll's backoff counter writes polluting the restarted consumer's backoff state. The structural fix is the same (backoff block is now under `stateLock` + generation check at the top of `doRun()`) and TLA+-verified, so this is not blocking. A `backoffOfPollFromBeforeStopIsNotKept` test would add completeness: set `backoffMultiplier` + `backoffErrorThreshold`, trigger a poll that increments the backoff counters, hold it mid-way, restart the consumer, then assert `backoffCounter` and `backoffErrorBase` are zero on the restarted consumer. _This comment was generated by an AI agent, Hermès on behalf of @gnodet._ <!-- reviewer: gnodet-bot --> -- 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]
