GithubHelp home page GithubHelp logo

stop master and does not use kill -9 , master will crash at MasterZkAdapter destruction func。error code Device or resource busy about tera HOT 4 CLOSED

minguofeng avatar minguofeng commented on May 28, 2024
stop master and does not use kill -9 , master will crash at MasterZkAdapter destruction func。error code Device or resource busy

from tera.

Comments (4)

datonli avatar datonli commented on May 28, 2024

“error code Device or resource busy”代表的是mutex在析构的时候发现mutex在lock状态。
你们是在master启动的时候就kill掉了?

from tera.

minguofeng avatar minguofeng commented on May 28, 2024

@Datongli 多个节点,启动后执行一段时间同时执行master_entry.cc中的ShutdownServer函数。除了master节点外,其它节点都崩溃如上描述。

from tera.

datonli avatar datonli commented on May 28, 2024

你们应该是对master逻辑进行了一些修改吧?改成多master_entry?
出现这个core,应该是在调用master_entry.cc中的ShutdownServer时,master_impl还处在异步调用MasterImpl::InitAsync()的zk_adapter_->Init,而调用ShutdownServer会析构掉master_impl(包括zk_adapter_),在析构zk_adapter_是发现zk_adapter_的mutex还处在lock状态,导致出现上面的core。
因为在原tera master逻辑中是没有考虑多master_entry模型的,所以这部分你们如果要这样子用还需要另外考虑这种情况。

from tera.

minguofeng avatar minguofeng commented on May 28, 2024

@Datongli 十分感谢您的答复

from tera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.