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

subprocess fail to process "docker inspect" output if >64KB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Done
    • 0.21.1
    • 0.22.1
    • agent
    • None

    Description

      When running a task with docker and if docker inspect output size is more than 64k, it fails. The command docker inspect is blocked. The task remain in ASSIGNED state and after 15mins, the task is KILLED. The subprocess library [1] used in mesos to run this command is not handling the output beyond this size.

      docker pull livecipher/mesos-docker-inspect-64k:1.0 > /dev/null && docker inspect livecipher/mesos-docker-inspect-64k:1.0 > inspect.out && du -sh inspect.out && rm -f inspect.out
       76K	inspect.out
      

      You can reproduce it using the above image with any framework. I tested it with aurora.

      Here is a sample failure: http://pastebin.com/w1Ty41rb

      [1] https://github.com/apache/mesos/blob/0.21.1/src/docker/docker.cpp#L804

      Attachments

        Activity

          People

            bhuvan Bhuvaneswaran A
            bhuvan Bhuvaneswaran A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: