Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6753

Refactor duplicated code for framework registration in master

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • master

    Description

      It would be nice to refactor the code and eliminate some/all of these redundancies:

      • Master::activateRecoveredFramework and Master::_failoverFramework duplicate some code.
      • Master::_subscribe for PID-based schedulers has a code path that contains code that is very similar to the Master::failoverFramework logic, but is not identical.
      • The logic around updateConnection could stand to be cleaned up. e.g., it seems like updateConnection could/should be responsible for linking to the target PID and/or setting up the closed callback (for PID or HTTP schedulers, respectively).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              neilc Neil Conway
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: