Git Product home page Git Product logo

Comments (3)

hnwyllmm avatar hnwyllmm commented on May 23, 2024

现在的代码实现中,在进程退出时,是会调用sync接口同步数据到磁盘的。
可以看下m1系统上是否在kill时,可以正常退出

from miniob.

iiiuwioajdks avatar iiiuwioajdks commented on May 23, 2024

现在的代码实现中,在进程退出时,是会调用sync接口同步数据到磁盘的。
可以看下m1系统上是否在kill时,可以正常退出

我试了一下,在 ctrl+c 和 kill 下是可以走到 clean up 刷盘的,在使用 kill -9 的情况下只会走到 quit_thread_func 而不会返回到 main 中

from miniob.

hnwyllmm avatar hnwyllmm commented on May 23, 2024

kill -9 是一个特殊的信号,是应用程序无法捕获的一个信号,所以无法处理此信号。
解决这种问题的方式通常是使数据库支持redo/undo日志,然后再数据库应用程序重新启动时做恢复。

from miniob.

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.