Skip to content

Use HttpStream.Wrapper for completion listener in JettyContainerService#79

Merged
copybara-service[bot] merged 3 commits intomainfrom
HttpStreamWrapper
Nov 9, 2023
Merged

Use HttpStream.Wrapper for completion listener in JettyContainerService#79
copybara-service[bot] merged 3 commits intomainfrom
HttpStreamWrapper

Conversation

@lachlan-roberts
Copy link
Copy Markdown
Collaborator

Use a HttpStream.Wrapper for the completion listener in JettyContainerService.

We were previously using Callback for the onCompletion event in JettyContainerService, this tries to acquire all of the Semaphore permits to wait for all API calls to complete.

However the callback is invoked before the the HttpStream, and the SessionManager uses an HttpStream.Wrapper for its doComplete which was eventually calling the DatastoreApiHelper which was event doing an ApiProxy call.

This fixes the EE10 guestbook app.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Copy link
Copy Markdown
Collaborator

@ludoch ludoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you also check similar logic in prod runtime area for EE10? I guess EE8 is correct, right?

@copybara-service copybara-service bot merged commit 6e81c98 into main Nov 9, 2023
@lachlan-roberts lachlan-roberts deleted the HttpStreamWrapper branch September 17, 2024 06:29
srinjoyray pushed a commit that referenced this pull request Nov 12, 2024
PiperOrigin-RevId: 580932773
Change-Id: I6741c74d7f10411cb184d97b0930797d93731929
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants