Croway commented on PR #30739:
URL: https://github.com/apache/camel/pull/30739#issuecomment-7160926312
Rebased on main as one commit (c4f46acb), after #30694 (CAMEL-27487), #30755
(CAMEL-27411) and #30757 (CAMEL-27413) were merged. Besides the rebase:
- **`ScheduledPollConsumer`, on top of #30694.** #30694's structure stays:
an `Error` is caught around the whole poll attempt, so this includes one thrown
by the rollback or the exception handler. This PR's rule applies on top:
- Only a `VirtualMachineError` stops the consumer, through
`DefaultConsumer.handleFatalError()`. Another `Error` is a failed poll.
- The whole consumer stops, also with `scheduler.concurrentConsumers`
greater than 1.
- Every scheduler stops it, since `run()` no longer throws the error on.
`ScheduledPollConsumer.getFatalError()` moves to
`DefaultConsumer.getFatalError()`, and `ScheduledPollConsumerHealthCheck` keeps
reporting DOWN on it. #30694's tests are kept and adapted
(`ScheduledPollConsumerTest`, `SchedulerConsumerHealthCheckTest`,
`ScheduledPollConsumerStaleRunTest`), and its upgrade-guide entry now describes
the final behaviour.
- **`SedaConsumer` with #30757:** a thread of an earlier start that catches
a `VirtualMachineError` logs it, but does not stop the consumer started again
since (`isCurrentStart(start)`).
- **`MulticastProcessor` with #30755:** both sides kept. Also the
parentheses from your nit.
- **Fixes from a review of the rebase:**
- A run after the consumer stopped no longer updates the poll counters.
- An `Error` keeps at most one suppressed poll exception, since a poll
strategy can throw the same instance on every poll.
- The stop log of `DefaultConsumer` passes the error as text. SLF4J took
it as the exception and left `{}` in the message.
Local runs: camel-core (9,849 tests, before the last rebase onto
#30755/#30757, then the affected suites again), aws2-sqs, kafka, kafka-share,
resilience4j, microprofile-fault-tolerance and bean all pass. In
camel-hazelcast, two tests
(`HazelcastUserConfigSerializationFilterWarningTest`,
`HazelcastAggregationRepositoryRoutesTest`) fail on my machine on main as well
(cluster networking), so they are not affected by this PR.
The PR description is updated.
_Claude Code on behalf of Croway_
--
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]