Skip to content

Fix deadlock on MultiprocessIterator and MultiprocessParallelUpdater#7511

Merged
mergify[bot] merged 1 commit intochainer:masterfrom
emcastillo:ecastill_mp_deadlock
Sep 12, 2019
Merged

Fix deadlock on MultiprocessIterator and MultiprocessParallelUpdater#7511
mergify[bot] merged 1 commit intochainer:masterfrom
emcastillo:ecastill_mp_deadlock

Conversation

@emcastillo
Copy link
Copy Markdown
Member

When using MultiprocessIterator in conjunction with MultiprocessParallelUpdater
The iterators are not finalized on MultiprocessParallelUpdater.finalize method.

The iterator state is cleanup while the python process exits and the iterator internal state is now inconsistent. The iterator uses an internal thread that gets stuck and tries to perpetually join it
deadlocking the execution.

@emcastillo emcastillo closed this Jun 14, 2019
@emcastillo emcastillo force-pushed the ecastill_mp_deadlock branch from e4bbfae to 88def02 Compare June 14, 2019 01:52
@stale
Copy link
Copy Markdown

stale bot commented Sep 12, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Not updated for a longer period of time. label Sep 12, 2019
@niboshi
Copy link
Copy Markdown
Member

niboshi commented Sep 12, 2019

I'm sorry for delay. Jenkins, test this please

@stale stale bot removed the stale Not updated for a longer period of time. label Sep 12, 2019
@niboshi niboshi added this to the v7.0.0b4 milestone Sep 12, 2019
@niboshi niboshi added st:test-and-merge State indicating that pull request is approved by a reviewer and can be merged after CI passes. to-be-backported Pull request that should be backported. labels Sep 12, 2019
@chainer-ci
Copy link
Copy Markdown
Member

Jenkins CI test (for commit 2fffa50, target branch master) succeeded!

@mergify mergify bot merged commit 461f594 into chainer:master Sep 12, 2019
@chainer-ci
Copy link
Copy Markdown
Member

@mergify[bot] This pull-request is marked as to-be-backported, but the corresponding backport PR could not be found. Could you check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:bug Bug report or fix. pr-blocker Blocking other PRs. st:test-and-merge State indicating that pull request is approved by a reviewer and can be merged after CI passes. to-be-backported Pull request that should be backported.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants