[
https://issues.apache.org/jira/browse/MESOS-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14218368#comment-14218368
]
Dominic Hamon commented on MESOS-2134:
--------------------------------------
stack trace when the master is not started:
{noformat}
465 || [ RUN ] MetricsTest.Slave
466 F1119 11|36| 57.720360 2251 cluster.hpp:411] Check failed: masters.size()
== 1
467 || *** Check failure stack trace: ***
468 || @ 0x2adff34cd55d google::LogMessage::Fail()
469 || @ 0x2adff34cc93e google::LogMessage::SendToLog()
470 || @ 0x2adff34cd21d google::LogMessage::Flush()
471 || @ 0x2adff34d0698 google::LogMessageFatal::~LogMessageFatal()
472 || @ 0xe41b2a
mesos::internal::tests::Cluster::Masters::detector()
473 || @ 0xe1d526
mesos::internal::tests::Cluster::Slaves::start()
474 || @ 0xe13ca0 mesos::internal::tests::MesosTest::StartSlave()
475 || @ 0xe53316 MetricsTest_Slave_Test::TestBody()
476 || @ 0x115ac93
testing::internal::HandleSehExceptionsInMethodIfSupported<>()
477 || @ 0x11467d7
testing::internal::HandleExceptionsInMethodIfSupported<>()
478 || @ 0x112da85 testing::Test::Run()
479 || @ 0x112e6bb testing::TestInfo::Run()
480 || @ 0x112ed57 testing::TestCase::Run()
481 || @ 0x113443d testing::internal::UnitTestImpl::RunAllTests()
482 || @ 0x1157753
testing::internal::HandleSehExceptionsInMethodIfSupported<>()
483 || @ 0x1148847
testing::internal::HandleExceptionsInMethodIfSupported<>()
484 || @ 0x1134127 testing::UnitTest::Run()
485 || @ 0xd15b15 main
486 || @ 0x2adff6833ec5 (unknown)
487 || @ 0x7ad87c (unknown)
488 || @ (nil) (unknown)
{noformat}
> Create ability to have slave-only tests
> ---------------------------------------
>
> Key: MESOS-2134
> URL: https://issues.apache.org/jira/browse/MESOS-2134
> Project: Mesos
> Issue Type: Bug
> Components: test
> Reporter: Dominic Hamon
>
> When creating a test that only calls {{StartSlave}} without {{StartMaster}},
> the test will segfault.
> Creating a {{StandaloneMasterDetector}} without a leader and passing that
> into {{StartSlave}} also segfaults within {{detect}}.
> Adding special cases to the {{StandaloneMasterDetector}} to return {{None()}}
> when {{leader.isNone()}} fixes the issue, but changes the semantics of the
> detector, so more thought is needed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)