### 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.


[ Full content available at: 
https://github.com/apache/incubator-pulsar/pull/2437 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to