Commit c315519e authored by Marcin's avatar Marcin Committed by Dan Notestein
Browse files

autodetach works correctly

1. mutual exclusive lock with attaching executed by the apps
2. contexts which are using stages are initially detached

The changes above fix problems with starting applications on api_haf_node: applications hold on waiting for a moment when HAF reaches LIVE state, and then immediately start processing together with hived starts running auto detach procedure. There is a race between 'auto detach' and apps -> apps need to update their active time faster than 'auto detach' will check it, some apps lost the race and were asynchronously detached in different stages of their algorithms which randomly ends with deadlocks or an app contexts finish with desynchronized its contexts group
parent 395241ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment