Skip to content

MODCLUSTER-876 Drain pending proxies discovery in init() and reset established on shutdown - #997

Draft
rhusar wants to merge 1 commit into
modcluster:mainfrom
rhusar:MODCLUSTER-876
Draft

rhusar wants to merge 1 commit into
modcluster:mainfrom
rhusar:MODCLUSTER-876

Conversation

@rhusar

@rhusar rhusar commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

The processPendingDiscoveryEvents() was inadvertently moved out of the private status(boolean) in MODCLUSTER-103, so init()'s status(false) iterates an empty proxy list and never establishes a connection. Restore the drain call before status(false) so statically configured proxies are contacted eagerly during init.

Also reset both established flags on shutdown so isEstablished() does not report a stale value after stop.

This would fix registration with the proxies in init.

https://redhat.atlassian.net/browse/MODCLUSTER-876

…tablished on shutdown

processPendingDiscoveryEvents() was inadvertently moved out of the private status(boolean) in MODCLUSTER-103, so init()'s status(false) iterates an empty proxy list and never establishes a connection.
Restore the drain call before status(false) so statically configured proxies are contacted eagerly during init.

Also reset both established flags on shutdown so isEstablished() does not report a stale value after stop.

Signed-off-by: Radoslav Husar <rhusar@ibm.com>
@rhusar
rhusar marked this pull request as draft September 3, 2026 09:33
@rhusar
rhusar requested a review from pferraro September 9, 2026 09:51
@rhusar
rhusar marked this pull request as ready for review October 8, 2026 16:08

@jajik jajik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks sensible to me. But it's a little bit weird, frankly.

@rhusar
rhusar marked this pull request as draft October 12, 2026 15:25
@rhusar

rhusar commented Oct 12, 2026

Copy link
Copy Markdown
Member Author

Thanks @jajik but I ll move this back to draft -- we first need to address the proxy state handling design issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants