Skip to content

Revert "servlet: fix write when not ready in AsyncServletOutputStreamWriter#12867

Open
kannanjgithub wants to merge 1 commit into
grpc:masterfrom
kannanjgithub:revert_asyncServletOSW
Open

Revert "servlet: fix write when not ready in AsyncServletOutputStreamWriter#12867
kannanjgithub wants to merge 1 commit into
grpc:masterfrom
kannanjgithub:revert_asyncServletOSW

Conversation

@kannanjgithub

@kannanjgithub kannanjgithub commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

This reverts commit 243b79e. The approach taken of ensuring subsequent writes go through the container thread via onWritePossible() hasn't eliminated the need for catching the IllegalStateException (which you are catching and buffering the write if it happens). We have observed that the UndertowInteropTest now hangs instead of the earlier flaky failures due to uncaught exception. There has been another PR #12732 for the same issue that explicitly checks isReady.getAsBoolean() in addition to the cached state, that's probably most reliable, because you don't have to deal with callback scheduling and the state changing in the meantime. We would like to proceed with that PR and revert this one.

@mgustimz

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