Skip to content

[2025.1.x] Keep sending event processor info after a failure - #535

Merged
MGathier merged 6 commits into
connector-2025.1.xfrom
fix/processor-info-scheduler-stops-on-exception-2025.1.x
Nov 23, 2026
Merged

MGathier merged 6 commits into
connector-2025.1.xfrom
fix/processor-info-scheduler-stops-on-exception-2025.1.x

Conversation

@MGathier

Copy link
Copy Markdown
Contributor

Backport of #534 to connector-2025.1.x.

Problem

ControlChannelImpl.sendScheduledProcessorInfo() reschedules itself as its last statement. If building or sending the info of any processor throws (a failing Supplier<EventProcessorInfo>, or onNext throwing IllegalStateException because a reconnect completed the outbound stream), the reschedule is skipped and the exception is lost in the unobserved ScheduledFuture. The client then stops reporting event processor status for that context until the application restarts.

Fix

  • Reschedule in a finally block, so the loop always continues.
  • Contain failures per processor, so one failing processor doesn't block the others.
  • Log failures at WARN, including the processor name and context.

Backport notes

Cherry-picked both commits from #534. The only conflict was in pom.xml: this branch keeps its own dependency versions, and only the Awaitility test dependency (4.2.2) was added.

Tests

ControlChannelImplProcessorInfoTest passes (3/3). Unit tests (!*IntegrationTest) pass apart from the tests that need Docker (DcbEndToEndTest, ETChannelTest), which couldn't run locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BZwTrkRHzpYUvni9BgWFew

MGathier and others added 2 commits November 20, 2026 13:09
The scheduled task that sends event processor info rescheduled itself as
its last statement. When building or sending the info of any processor
threw an exception, the reschedule was skipped and the exception was
swallowed by the ScheduledFuture. Because infoSupplierActive stayed true,
registering a processor did not restart the task either. As a result the
client silently stopped reporting processor status for that context until
the application was restarted, while staying connected.

Always reschedule in a finally block, and contain failures per processor
so a failing supplier or send does not block the info of other processors.
Failures are logged at WARN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BZwTrgqKzmmVjJ8cntDa1R
Replace the hand-written awaitUntil polling helper with Awaitility and
add it as a test dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BZwTrkRHzpYUvni9BgWFew
@smcvb smcvb added Type: Bug Priority 1: Must Type: Port Use to refer to an issue or pull request that ports logic from one branch to another. labels Nov 20, 2026
@smcvb
smcvb self-requested a review November 20, 2026 12:48

@smcvb smcvb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! The build isn't happy though

@MGathier
MGathier enabled auto-merge November 20, 2026 12:58
@MGathier
MGathier disabled auto-merge November 20, 2026 12:58
@MGathier
MGathier merged commit aa6b02f into connector-2025.1.x Nov 23, 2026
2 of 4 checks passed
@MGathier
MGathier deleted the fix/processor-info-scheduler-stops-on-exception-2025.1.x branch November 23, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority 1: Must Type: Bug Type: Port Use to refer to an issue or pull request that ports logic from one branch to another.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants