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

address upstream connection corruption (Issue 2497) #2531

Merged
merged 3 commits into from
Sep 6, 2020
Merged

Conversation

edsiper
Copy link
Member

@edsiper edsiper commented Sep 5, 2020

The following patch introduces a new mechanism to cleanup upstream connections, avoiding corruption while there are still events to be processed.

In my local tests, I could no longer reproduce the issue, anyways we need extra testing.

Signed-off-by: Eduardo Silva <eduardo@treasure-data.com>
…2497)

A connection context might be destroyed while the event loop still has some
pending event to be processed, in some cases a network exception. Destroying
the context might lead to a corruption.

The following patch implements a new queue to store temporary the connection
context so the 'destroy' process is defered until all events from the event
loop has been processed.

Signed-off-by: Eduardo Silva <eduardo@treasure-data.com>
…events (#2497)

Signed-off-by: Eduardo Silva <eduardo@treasure-data.com>
@edsiper
Copy link
Member Author

edsiper commented Sep 5, 2020

@PettitWesley @phiremande

would you please validate this and see if you can reproduce the problem ?

@edsiper edsiper mentioned this pull request Sep 5, 2020
4 tasks
@phiremande
Copy link
Contributor

@PettitWesley @phiremande

would you please validate this and see if you can reproduce the problem ?

@edsiper , Have run for more than 3 hours without any crash.

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