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

Subscribers::send incorrectly assumes frameworks are registered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • None
    • 1.5.1
    • None
    • None

    Description

      We observed this in prod

      F0214 00:36:15.746939 3827787 master.cpp:11190] Check failed: 'framework' Must be non NULL
      

      which is here in code: https://github.com/apache/mesos/blob/9635d4a2d12fc77935c3d5d166469258634c6b7e/src/master/master.cpp#L11203

      Diagnosis

      The checks were added in in https://github.com/apache/mesos/commit/cf331184714f692f21988a53fd04fa64fbbb3aba MESOS-8469

      Framework* framework =
      master->getFramework(event.task_added().task().framework_id());
      
      CHECK_NOTNULL(framework);
      

      However as least when we recover tasks when the agent reregisters after a master failover, the frameworks may not have reregistered yet so they don't show up in the result from master->getFramework. Such checks failed to consider this.

      Attachments

        Issue Links

          Activity

            People

              chhsia0 Chun-Hung Hsiao
              xujyan Yan Xu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: