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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.21.1, 0.22.0, 0.22.1
    • 0.23.0
    • agent, cli, python api, statistics
    • ubuntu 14.04, mesos 0.21.1

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: