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

Use HttpStream.Wrapper for completion listener in JettyContainerService #79

Merged
merged 3 commits into from
Nov 9, 2023

Conversation

lachlan-roberts
Copy link
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
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
7 checks passed
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.

None yet

2 participants