Details
Description
Currently when an operator subscribes to the /api/v1 master endpoint, it would receive a SUBSCRIBED event carrying information about all known frameworks, including registered ones and unregistered ones. If an unregistered framework reregisters later, a FRAMEWORK_UPDATED event would be sent to the operator.
However, if an operator subscribes to the /api/v1 master endpoint after a master failover but before any of the frameworks and agents reregisters, SUBSCRIBED would contain no recovered framework information. When a agent with running tasks reregisters later, unregistered frameworks of those tasks will be recovered, but no FRAMEWORK_ADDED will be sent to the operator, so the operator will receive TASK_ADDED for those tasks with unknown framework IDs.