Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.3.x] MODCLUSTER-824 Improve handling of overlapping aliases in APP commands #840

Open
wants to merge 1 commit into
base: 1.3.x
Choose a base branch
from

Conversation

jajik
Copy link
Collaborator

@jajik jajik commented Oct 21, 2024

Resolves MODCLUSTER-824

Opening as a draft since it's a backport.

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.

Please update the commit message so that the Jira ID is the first in the commit message.

@jajik jajik requested a review from rhusar October 21, 2024 09:23
@rhusar rhusar changed the title [1.3.x] Improve handling of overlapping aliases in APP commands [1.3.x] MODCLUSTER-824 Improve handling of overlapping aliases in APP commands Oct 21, 2024
@jajik jajik added the 1.3.x Issues and PRs for the 1.3.x branch label Oct 21, 2024
@jajik
Copy link
Collaborator Author

jajik commented Oct 21, 2024

@jajik jajik added the bug label Oct 21, 2024
@jajik
Copy link
Collaborator Author

jajik commented Oct 24, 2024

Upstream is merged, marking ready for review

@jajik jajik marked this pull request as ready for review October 24, 2024 14:55
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.

Can we please validate the removal behavior? Just to make sure there isn't a side-effect that we are missing.

@jajik
Copy link
Collaborator Author

jajik commented Oct 30, 2024

Can we please validate the removal behavior? Just to make sure there isn't a side-effect that we are missing.

Before the patch, two virtual hosts with overlapping aliases are created. When REMOVE-APP is sent to the overlapping alias, only one of the hosts gets removed. (That does no affect the case when the remove command is sent with /* path, then both get removed.)

With this PR, only one virtual hosts is present because in case of an overlap, the two get merged. Then the removal removes the only host as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.3.x Issues and PRs for the 1.3.x branch bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants