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

Remove redundant epollWaitNow() call in EpollEventLoop#closeAll() #9614

Merged
merged 1 commit into from Oct 7, 2019

Conversation

njhill
Copy link
Member

@njhill njhill commented Sep 27, 2019

Motivation

This is a vestige that was removed in the original PR #9535 before it was reverted, but we missed it when re-applying in #9586.

It means there is a possible race condition because a wakeup event could be missed while shutting down, but the consequences aren't serious since there's a 1 second safeguard timeout when waiting for it.

Modification

Remove call to epollWaitNow() in EpollEventLoop#closeAll()

Result

Cleanup redundant code, avoid shutdown delay race condition

Motivation

This is a vestige that was removed in the original PR netty#9535 before it
was reverted, but we missed it when re-applying in netty#9586.

It means there is a possible race condition because a wakeup event could
be missed while shutting down, but the consequences aren't serious since
there's a 1 second safeguard timeout when waiting for it.

Modification

Remove call to epollWaitNow() in EpollEventLoop#closeAll()

Result

Cleanup redundant code, avoid shutdown delay race condition
@netty-bot
Copy link

Can one of the admins verify this patch?

njhill added a commit to njhill/netty that referenced this pull request Sep 27, 2019
@normanmaurer
Copy link
Member

@netty-bot test this please

@normanmaurer normanmaurer added this to the 4.1.43.Final milestone Oct 7, 2019
@normanmaurer normanmaurer merged commit c591d03 into netty:4.1 Oct 7, 2019
@normanmaurer
Copy link
Member

@njhill thanks a lot!

@njhill njhill deleted the cleanup-epoll-closeall branch October 7, 2019 12:06
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.

None yet

3 participants