James Peach created MESOS-7910:
----------------------------------

             Summary: The ports resource doesn't range check.
                 Key: MESOS-7910
                 URL: https://issues.apache.org/jira/browse/MESOS-7910
             Project: Mesos
          Issue Type: Bug
          Components: agent
            Reporter: James Peach
            Priority: Minor


The agent doesn't range check the port resource, so it is possible to specify 
something non-sensical:

{noformat}
$ sudo /opt/mesos/agent --resources="ports:[999999-9999999]"
...
New agent info:
hostname: "jpeach.apple.com"
resources {
  name: "ports"
  type: RANGES
  ranges {
    range {
      begin: 999999
      end: 9999999
    }
  }
}
resources {
  name: "cpus"
  type: SCALAR
  scalar {
    value: 12
  }
}
resources {
  name: "mem"
  type: SCALAR
  scalar {
    value: 63374
  }
}
resources {
  name: "disk"
  type: SCALAR
  scalar {
    value: 250519
  }
}
checkpoint: true
port: 5051
{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to