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

Fix: Handle out-of-order Configure responses #275

Merged
merged 1 commit into from
May 9, 2024

Conversation

dorjesinpo
Copy link
Collaborator

Out of order configure responses for two concurrent configure requests result in using already deleted handle.

Current code relies on the order of responses being the same as requests.

Consider two queue handles: 0x7febbca192f0 and 0x7febbca13200.

The context for configure request for the first one references both handles. This is RelayQE, so it maintains downstream and upstream views.

Before the configure response, comes de-configure request for the second one, followed by close request, resulting in the second one destruction.

Now, the configure response for the first one gets processed and its context attempts to access already deleted he second one.

@dorjesinpo dorjesinpo added the bug Something isn't working label May 7, 2024
@dorjesinpo dorjesinpo requested a review from a team as a code owner May 7, 2024 14:58
@pniedzielski pniedzielski self-requested a review May 7, 2024 15:27
@pniedzielski pniedzielski self-assigned this May 7, 2024
@dorjesinpo dorjesinpo merged commit 4d71a71 into main May 9, 2024
17 checks passed
@678098 678098 changed the title Handle out-of-order Configure responses Fix: Handle out-of-order Configure responses Jun 6, 2024
alexander-e1off pushed a commit to alexander-e1off/blazingmq that referenced this pull request Oct 24, 2024
alexander-e1off pushed a commit to alexander-e1off/blazingmq that referenced this pull request Oct 24, 2024
alexander-e1off pushed a commit to alexander-e1off/blazingmq that referenced this pull request Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants