Repository navigation
Conversation
…ntegrationEngine#615) DonkeyMessageController.reprocessMessages swallowed two kinds of failure while dispatching a message: a ChannelException that does not stop the channel was caught and ignored, and any other Throwable was dropped on the assumption that it had already been logged. Reprocessing runs on its own thread after the request returns, so the server log is the only place a failure can show up. Each failed message is now logged with its channel and message id and the job moves on to the next message; a channel that is stopping still cancels the job as before. MessageServlet's reprocess thread also logs anything other than a ControllerException, which previously ended the thread with nothing logged. Signed-off-by: iacsha <122627209+iacsha@users.noreply.github.com>
iacsha
requested review from
a team,
gibson9583,
jonbartels,
kayyagari,
kpalang,
mgaffigan,
ssrowe and
tonygermano
December 2, 2026 18:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #615.
DonkeyMessageController.reprocessMessagesdropped two kinds of failure while dispatching a message:ChannelExceptionthat doesn't stop the channel was caught and ignored, andThrowablewas dropped with the comment "An error should have been logged", which isn't true for a failure the dispatch path doesn't already handle.Reprocessing runs on its own thread after the request has returned, so the server log is the only place a failure can show up.
Change
logReprocessFailurehelper: the message is logged with its channel and message id, and the job moves on to the next message. A channel that is stopping still cancels the job, with the same log line as before.MessageServlet's reprocess thread also logs anything other than aControllerException. A runtime exception from the steps before dispatch (decrypting, re-attaching attachments) previously ended that thread with nothing in the server log.I left the existing behaviour of
Channel.dispatchRawMessagewrapping aRuntimeExceptionas a "stopped"ChannelExceptionalone; that one is logged already, just with the "job cancelled" wording, and changing it is a wider decision.Testing
DonkeyMessageControllerReprocessTest(3 tests: non-stoppingChannelException, unexpectedRuntimeException, stopping channel).:server:testpasses.mainwith an unconditional throw added toDonkeyEngineController.dispatchRawMessagefor reprocessed messages only (not part of this PR): deployci/tests/101-raw-no-op, send one message, reprocess it. The reprocess returns 204 and the server log has nothing about it.