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

Mesos scheduler v1 HTTP API may generate 404 errors for temporary conditions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Accepted
    • Major
    • Resolution: Unresolved
    • None
    • None
    • HTTP API, libprocess

    Description

      Returning a 404 error for a condition that's a known temporary condition is confusing from a client's perspective. A client wants to know how to recover from various error conditions. A 404 error condition should be distinct from a "server is not yet ready, but will be shortly" condition (which should probably be reported as a 503 "unavailable" error).

      https://github.com/apache/mesos/blob/72752fc6deb8ebcbfbd5448dc599ef3774339d31/src/scheduler/scheduler.cpp#L593

          if (response->code == process::http::Status::NOT_FOUND) {
            // This could happen if the master libprocess process has not yet set up
            // HTTP routes.
            LOG(WARNING) << "Received '" << response->status << "' ("
                         << response->body << ") for " << call.type();
            return;
          }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jdef James DeFelice
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: