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

mesos-ps fails with "KeyError: 'mem_rss_bytes'"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.21.1, 0.22.0, 0.22.1
    • Fix Version/s: 0.23.0
    • Component/s: agent, cli, python api, statistics
    • Labels:
    • Environment:

      ubuntu 14.04, mesos 0.21.1

    • Flags:
      Patch

      Description

      When I run the command mesos ps --master=$MESOS-MASTER:5050, the following exception raised:

      exception.sh
      File "/usr/bin/mesos-ps", line 232, in <module>
          main()
        File "/usr/bin/mesos-ps", line 217, in main
          sys.stdout.write(columns[4].truncate(mem(task, statistics)))
        File "/usr/bin/mesos-ps", line 93, in mem
          mem_rss_bytes = entry['statistics']['mem_rss_bytes']
      KeyError: 'mem_rss_bytes'
      

      I tracked it and found that some mesos slave nodes can't return the statistics yet now. In my special case, the disk volumn of some my mesos slaves is 100% full.

        Attachments

          Activity

            People

            • Assignee:
              joe-zhou weitao zhou
              Reporter:
              joe-zhou weitao zhou
              Shepherd:
              Benjamin Mahler
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: