You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Vinod Kone (JIRA)" <ji...@apache.org> on 2013/02/23 00:38:13 UTC
[jira] [Commented] (MESOS-353) ZooKeepet state test GetSetGet hung
[ https://issues.apache.org/jira/browse/MESOS-353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13584826#comment-13584826 ]
Vinod Kone commented on MESOS-353:
----------------------------------
Looks like this was due to my change. Though I would like to understand why?
diff --git a/src/state/zookeeper.cpp b/src/state/zookeeper.cpp
index 07339ff..1b68c24 100644
--- a/src/state/zookeeper.cpp
+++ b/src/state/zookeeper.cpp
@@ -295,7 +295,7 @@ Result<Option<Entry> > ZooKeeperStateProcess::doFetch(const string& name)
int code = zk->get(znode + "/" + name, false, &result, &stat);
if (code == ZNONODE) {
- return Option<Entry>::none();
+ return None();
} else if (code == ZINVALIDSTATE || (code != ZOK && zk->retryable(code))) {
CHECK(zk->getState() != ZOO_AUTH_FAILED_STATE);
return None(); // Try again later.
> ZooKeepet state test GetSetGet hung
> -----------------------------------
>
> Key: MESOS-353
> URL: https://issues.apache.org/jira/browse/MESOS-353
> Project: Mesos
> Issue Type: Bug
> Reporter: Vinod Kone
> Assignee: Benjamin Hindman
> Priority: Critical
>
> This happened during one of my 'make checks'. The GetSetGet test basically hung for ever.
> This is the relevant stack trace:
> Thread 1 (Thread 0x7f3e121a3730 (LWP 56574)):
> ---Type <return> to continue, or q <return> to quit---
> #0 0x000000316120aee9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
> #1 0x00007f3e13167ccc in Gate::arrive(long) () from /home/vinod/mesos/build/src/.libs/libmesos-0.12.0.so
> #2 0x00007f3e13110eaa in process::ProcessManager::wait(process::UPID const&) () from /home/vinod/mesos/build/src/.libs/libmesos-0.12.0.so
> #3 0x00007f3e131182d5 in process::wait(process::UPID const&, Duration const&) () from /home/vinod/mesos/build/src/.libs/libmesos-0.12.0.so
> #4 0x00007f3e1316fbec in process::Latch::await(Duration const&) () from /home/vinod/mesos/build/src/.libs/libmesos-0.12.0.so
> #5 0x000000000053f46a in process::Future<mesos::internal::state::Variable<mesos::internal::Slaves> >::await (this=0x1ca17d8, duration=...) at ../../third_party/libprocess/include/process/future.hpp:521
> #6 0x000000000055dbba in AssertFutureWillSucceed<mesos::internal::state::Variable<mesos::internal::Slaves> > (expr=0x7bed9f "variable", actual=...) at ../../src/tests/assert.hpp:148
> #7 0x000000000053a8d8 in GetSetGet (state=0x7f3de4054010) at ../../src/tests/state_tests.cpp:58
> #8 0x000000000078f1bb in testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void> (object=0x7f3de40590c0, method=&virtual testing::Test::TestBody(), location=0x8409b5 "the test body")
> at gmock-1.6.0/gtest/src/gtest.cc:2126
> #9 0x0000000000783049 in testing::Test::Run (this=0x7f3de40590c0) at gmock-1.6.0/gtest/src/gtest.cc:2162
> #10 0x0000000000783185 in testing::TestInfo::Run (this=0x1c9d0c0) at gmock-1.6.0/gtest/src/gtest.cc:2338
> #11 0x000000000078323d in testing::TestCase::Run (this=0x1c9d200) at gmock-1.6.0/gtest/src/gtest.cc:2445
> #12 0x000000000078641d in testing::internal::UnitTestImpl::RunAllTests (this=0x1c759a0) at gmock-1.6.0/gtest/src/gtest.cc:4237
> #13 0x0000000000786e15 in testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=<value optimized out>, method=
> (bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl *)) 0x7861a0 <testing::internal::UnitTestImpl::RunAllTests()>, location=0xffffffffffffffff <Address 0xffffffffffffffff out of bounds>)
> at gmock-1.6.0/gtest/src/gtest.cc:2090
> #14 0x000000000078ed3e in testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (object=0x1c759a0, method=
> (bool (testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl *)) 0x7861a0 <testing::internal::UnitTestImpl::RunAllTests()>,
> location=0x842640 "auxiliary test code (environments or event listeners)") at gmock-1.6.0/gtest/src/gtest.cc:2126
> #15 0x00000000007825ca in testing::UnitTest::Run (this=<value optimized out>) at gmock-1.6.0/gtest/src/gtest.cc:3874
> #16 0x0000000000474508 in main (argc=1, argv=<value optimized out>) at ../../src/tests/main.cpp:103
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira