Skip to content

IoUring: Only complete deregistration promise once we received all co…#16330

Merged
normanmaurer merged 2 commits into
4.2from
deregister
Feb 23, 2026
Merged

IoUring: Only complete deregistration promise once we received all co…#16330
normanmaurer merged 2 commits into
4.2from
deregister

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

…mpletions

Motivation:

We need to ensure we only notify about the completion of the deregistration once we handled all completions. Otherwise we might produce assertion failures. Beside this we also need to ensure we always cancel the registration on deregistration even if there are no ops scheduled.

Modifications:

  • Only notify promise once everything is handled
  • Always cancel registration.
  • Add unit test

Result:

Fixes #16307

…mpletions

Motivation:

We need to ensure we only notify about the completion of the deregistration once we handled all completions. Otherwise we might produce assertion failures. Beside this we also need to ensure we always cancel the registration on deregistration even if there are no ops scheduled.

Modifications:

- Only notify promise once everything is handled
- Always cancel registration.
- Add unit test

Result:

Fixes #16307
@normanmaurer
Copy link
Copy Markdown
Member Author

/cc @doom369.. I think this should fix your problem

@normanmaurer
Copy link
Copy Markdown
Member Author

The same problem exists in 5.0 but I want to do a better fix there as I can break the API ...

@normanmaurer normanmaurer added this to the 4.2.11.Final milestone Feb 21, 2026
@normanmaurer
Copy link
Copy Markdown
Member Author

This is the fix for 5.0 #16336

@normanmaurer normanmaurer merged commit 0cf380d into 4.2 Feb 23, 2026
34 of 36 checks passed
@normanmaurer normanmaurer deleted the deregister branch February 23, 2026 20:06
@doom369
Copy link
Copy Markdown
Contributor

doom369 commented Feb 24, 2026

@normanmaurer thanks! Will check with the next Netty release.

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.

io_uring doesn't work with Java 25 and Ubuntu 24.04 on GitHub Actions

3 participants