[
https://issues.apache.org/jira/browse/MESOS-7996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16205315#comment-16205315
]
Alexander Rukletsov commented on MESOS-7996:
--------------------------------------------
>From the failed run we clearly see that an offer is sent to a framework before
>it revives offers:
{noformat}
I0920 23:48:50.672129 19125 master.cpp:7725] Sending 1 offers to framework
dde06e44-2c84-4d94-a69d-76fe38429536-0000 (default)
{noformat}
The reason why the test sometimes succeeds is probably because it takes some
time for the agent to register and hence its resources become available after
framework revives.
I've modified the test (code attached) to eliminate this race and to be more
explicit about expectations. The modified tests consistently fails, which hints
there might be a bug in Mesos code.
[~anindya.sinha], [~vinodkone] can you take over here as the authors if the
test?
> ContentType/SchedulerTest.NoOffersWithAllRolesSuppressed is flaky.
> ------------------------------------------------------------------
>
> Key: MESOS-7996
> URL: https://issues.apache.org/jira/browse/MESOS-7996
> Project: Mesos
> Issue Type: Bug
> Components: test
> Affects Versions: 1.5.0
> Environment: Observed on Ubuntu 17.04 with SSL enabled
> Reporter: Alexander Rukletsov
> Labels: flaky-test, mesosphere
> Attachments: NoOffersWithAllRolesSuppressed-modified.txt,
> SchedulerTest.NoOffersWithAllRolesSuppressed_badrun.txt,
> SchedulerTest.NoOffersWithAllRolesSuppressed_goodrun.txt
>
>
> Observed the failure on internal CI:
> {noformat}
> ../../src/tests/scheduler_tests.cpp:1474
> Mock function called more times than expected - returning directly.
> Function call: offers(0x7ffffb085d90, @0x7f1a88003590 48-byte object
> <48-82 52-9F 1A-7F 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00 00-00
> 00-00 00-00 00-00 00-00 01-00 00-00 04-00 00-00 20-4D 00-88 1A-7F 00-00>)
> Expected: to be never called
> Actual: called once - over-saturated and active
> {noformat}
> Full log attached.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)