[
https://issues.apache.org/jira/browse/MESOS-1049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Lambert updated MESOS-1049:
---------------------------------
Component/s: isolation
> Cpu Isolator incorrectly writes double values when writing cpu.cfs_quota_us.
> ----------------------------------------------------------------------------
>
> Key: MESOS-1049
> URL: https://issues.apache.org/jira/browse/MESOS-1049
> Project: Mesos
> Issue Type: Bug
> Components: isolation
> Affects Versions: 0.18.0
> Reporter: Vinod Kone
> Assignee: Vinod Kone
> Fix For: 0.18.0
>
>
> cpu.cfs_quota_us file will only take integral values, whereas the cpu
> isolator writes double values.
> {code}
> [ RUN ] LimitedCpuIsolatorTest.ROOT_CGROUPS_Cfs
> I0228 18:10:16.145454 34925 cgroups_launcher.cpp:59] Using
> /sys/fs/cgroup/freezer as the freezer hierarchy for the cgroups launcher
> I0228 18:10:16.149149 34939 cgroups.cpp:394] Trying to write value: 13824
> I0228 18:10:16.149194 34939 cpushare.cpp:334] Updated 'cpu.shares' to 13824
> (cpus 13.5) for container mesos_test_cfs_cpu_limit
> I0228 18:10:16.149654 34939 cgroups.cpp:394] Trying to write value: 100000
> I0228 18:10:16.150081 34939 cgroups.cpp:394] Trying to write value: 1.35e+06
> ../../src/tests/isolator_tests.cpp:328: Failure
> (isolator.get()->prepare(containerId, executorInfo)).failure(): Failed to
> update 'cpu.cfs_quota_us' to 1350ms: Invalid argument
> [ FAILED ] LimitedCpuIsolatorTest.ROOT_CGROUPS_Cfs (16 ms)
> [----------] 1 test from LimitedCpuIsolatorTest (17 ms total)
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)