Hunter L created HELIX-808:
------------------------------

             Summary: TASK: Fix double-booking of tasks with task CurrentStates
                 Key: HELIX-808
                 URL: https://issues.apache.org/jira/browse/HELIX-808
             Project: Apache Helix
          Issue Type: Improvement
            Reporter: Hunter L
            Assignee: Hunter L


It was observed that TestNoDoubleAssign was failing intermittently. Upon 
debugging with more detailed logs, there was a race condition between newly 
starting tasks and dropping tasks. To prevent this, dropping state transitions 
will be prioritized and prevInstanceToTaskAssignment will be built from 
CurrentStates. This is needed to make sure the right number of tasks are 
assigned every task pipeline and dropping transitions happen right away.
 
 Changelist:
 1\. Change the logic for generating prevInstToTaskAssignment so that it's 
based on CurrentState
 2\. Add a special check for not updating task partition state upon Participant 
connection loss
 3\. TestNoDoubleAssign passes consistently
 4. Fix TestNoDoubleAssign so that there won't be any thread leak



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to