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

Fix potential deadlock when HttpPageBufferClient exceeds memory limit #5289

Conversation

pettyjamesm
Copy link
Member

@pettyjamesm pettyjamesm commented Sep 24, 2020

Comparable changes to prestodb/presto#15220

Prior to this change, if the HttpPageBufferClient caused a task to exceed its memory limit inside of addPages, the exception would bubble to the root of the exchange client callback executor without ever marking the task as failed. If no other operator also saw the memory limit exceeded condition, then the task would become stuck in a deadlocked
state.

Prior to this change, if the HttpPageBufferClient caused a task to
exceed its memory limit inside of addPages, the exception would bubble
to the root of the exchange client callback executor without ever
marking the task as failed. If no other operator also saw the memory
limit exceeded condition, then the task would become stuck in a deadlocked
state.
@pettyjamesm pettyjamesm force-pushed the handle-exchange-client-memory-limit-exception branch from 5a34728 to 22f06fa Compare September 25, 2020 12:24
@@ -237,7 +244,7 @@ public void testInvalidResponses()
"localhost",
new TestingHttpClient(processor, scheduler),
DataIntegrityVerification.ABORT,
DataSize.of(10, Unit.MEGABYTE),
Copy link
Member

Choose a reason for hiding this comment

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

nit: this could be separate commit

@sopel39 sopel39 merged commit 8ae60fe into trinodb:master Sep 28, 2020
@sopel39
Copy link
Member

sopel39 commented Sep 28, 2020

merged, thanks!

@sopel39 sopel39 mentioned this pull request Sep 28, 2020
10 tasks
@pettyjamesm pettyjamesm deleted the handle-exchange-client-memory-limit-exception branch September 28, 2020 15:12
@martint martint added this to the 344 milestone Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants