Skip to content

Conversation

@TomasHofman
Copy link
Contributor

https://issues.redhat.com/browse/MODCLUSTER-754
https://issues.redhat.com/browse/WFLY-16416

When an app server connects to a proxy for the first time or after a
disruption, it sends an INFO request to the proxy. Proxy responds with a
list of contexts that are registered for given server, and their states.
The context states returned from the proxy are compared to the actual
states of contexts on the app server, and if necessary, the server
should send ENABLE / STOP requests to bring the proxy to an up-to-date
state.

The change in this commit makes the app server send a STOP request for a
context in case when the proxy response to an INFO request doesn't
contain given context. The purpose of this STOP request is to enforce
context registration on the proxy side.

@TomasHofman TomasHofman requested a review from rhusar as a code owner June 3, 2022 12:53
@TomasHofman TomasHofman changed the title Modify ResetRequestSourceImpl to send STOP request when proxy not aware of a context MODCLUSTER-754 Modify ResetRequestSourceImpl to send STOP request when proxy not aware of a context Jun 3, 2022
rhusar
rhusar previously requested changes Jun 3, 2022
…n proxy not aware of a context

When an app server connects to a proxy for the first time or after a
disruption, it sends an INFO request to the proxy. Proxy responds with a
list of contexts that are registered for given server, and their states.
The context states returned from the proxy are compared to the actual
states of contexts on the app server, and if necessary, the server
should send ENABLE / STOP requests to bring the proxy to an up-to-date
state.

The change in this commit makes the app server send a STOP request for a
context in case when the proxy response to an INFO request doesn't
contain given context. The purpose of this STOP request is to enforce
context registration on the proxy side.
@TomasHofman
Copy link
Contributor Author

Are there any further objections to this PR?

@rhusar rhusar dismissed their stale review October 22, 2022 18:52

Needs re-review. :)

@rhusar rhusar requested review from rhusar and removed request for rhusar November 3, 2022 16:54
@modcluster modcluster deleted a comment from KarmBot May 20, 2023
Copy link
Member

@rhusar rhusar left a comment

Choose a reason for hiding this comment

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

LGTM

@rhusar rhusar merged commit 4d2dc2a into modcluster:main Jul 21, 2023
@rhusar
Copy link
Member

rhusar commented Jul 21, 2023

Merged, thanks @TomasHofman !

@TomasHofman
Copy link
Contributor Author

Thanks @rhusar ! I created backport for EAP 7.4.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants