[ https://issues.apache.org/jira/browse/HBASE-24538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bharath Vissapragada updated HBASE-24538: ----------------------------------------- Fix Version/s: master Resolution: Fixed Status: Resolved (was: Patch Available) > Deadlock in mini-cluster-test teardown on setup() failure > --------------------------------------------------------- > > Key: HBASE-24538 > URL: https://issues.apache.org/jira/browse/HBASE-24538 > Project: HBase > Issue Type: Sub-task > Components: Client, native-client > Affects Versions: 3.0.0-alpha-1 > Reporter: Bharath Vissapragada > Assignee: Bharath Vissapragada > Priority: Major > Fix For: master > > > Code seems to be weirdly strucutred. Cleanup the life cycle > {noformat} > #0 __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135 > #1 0x00007f4e2ce84023 in __GI___pthread_mutex_lock (mutex=0x55d922b810e8) at > ../nptl/pthread_mutex_lock.c:78 > #2 0x000055d9207b263a in __gthread_mutex_lock () > #3 0x000055d9207b3bf4 in std::mutex::lock() () > #4 0x000055d9207c2d88 in > std::lock_guard<std::mutex>::lock_guard(std::mutex&) () <== Attempts to lock > mutex again. > #5 0x000055d9208cbf86 in hbase::MiniCluster::Setup() () > #6 0x000055d9208cc87c in hbase::MiniCluster::env() () > #7 0x000055d9208cd33b in hbase::MiniCluster::StopCluster() () > #8 0x000055d9208c8ace in hbase::TestUtil::StopMiniCluster() () > #9 0x000055d9208c86d8 in hbase::TestUtil::~TestUtil() () > #10 0x000055d92061bbb0 in > std::default_delete<hbase::TestUtil>::operator()(hbase::TestUtil*) const () > #11 0x000055d920616c17 in std::unique_ptr<hbase::TestUtil, > std::default_delete<hbase::TestUtil> >::~unique_ptr() () > #12 0x00007f4e29e96041 in __run_exit_handlers (status=-1, > listp=0x7f4e2a23e718 <__exit_funcs>, > run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) > at exit.c:108 > #13 0x00007f4e29e9613a in __GI_exit (status=<optimized out>) at exit.c:139 > #14 0x000055d9208cbb67 in hbase::MiniCluster::CreateVM(JavaVM_**) () > #15 0x000055d9208cbfb1 in hbase::MiniCluster::Setup() () <== Locks mutex > #16 0x000055d9208cc87c in hbase::MiniCluster::env() () > #17 0x000055d9208cd227 in hbase::MiniCluster::StartCluster(int) () > #18 0x000055d9208c879b in hbase::TestUtil::StartMiniCluster(int) () > #19 0x000055d920613076 in AsyncBatchRpcRetryTest::SetUpTestCase() () > #20 0x000055d9208eaa48 in testing::TestCase::RunSetUpTestCase() () > #21 0x000055d9208f7347 in void > testing::internal::HandleSehExceptionsInMethodIfSupported<testing::TestCase, > void>(testing::TestCase*, void (testing::TestCase::*)(), char const*) () > #22 0x000055d9208f1b19 in void > testing::internal::HandleExceptionsInMethodIfSupported<testing::TestCase, > void>(testing::TestCase*, void (testing::TestCase::*)(), char const*) () > #23 0x000055d9208d6647 in testing::TestCase::Run() () > #24 0x000055d9208dd552 in testing::internal::UnitTestImpl::RunAllTests() () > #25 0x000055d9208f7d29 in bool > testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, > bool>(testing::internal::UnitTestImpl*, bool > (testing::internal::UnitTestImpl::*)(), char const*) () > #26 0x000055d9208f21a5 in bool > testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, > bool>(testing::internal::UnitTestImpl*, bool > (testing::internal::UnitTestImpl::*)(), char const*) () > #27 0x000055d9208dc116 in testing::UnitTest::Run() () > #28 0x000055d920904ce7 in RUN_ALL_TESTS() () > #29 0x000055d920904c76 in main () > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)