rdhabalia opened a new pull request #2437: Race condition 
function-runtime-manager read old assignments
URL: https://github.com/apache/incubator-pulsar/pull/2437
 
 
   ### Motivation
   
   Right now, In function, schedulerManager tries to schedule assignments 
before MemebershipManager receives leader notification from broker. So, 
leader-worker's schedulerManager failed to assign new assignment and 
RuntimeManager read old assignment message and applies old assignment which 
might not be valid.
   
   ### Modifications
   
   Fix race condition by setting correct leader at `MemebershipManager` before 
function tries to schedule assignments.
   
   ### Result
   
   Function worker will not apply old assignments.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to