Coder Social home page Coder Social logo

Comments (2)

dossy avatar dossy commented on June 11, 2024

Hi, @yegor86. It's not clear to me how this is a dbmate bug? dbmate itself does not acquire any metadata locks on its own when applying migrations on MySQL targets.

If you are using a new enough version of MySQL that supports online DDL, you could write your migration files to take advantage of it.

If you forcefully terminate dbmate's execution, then dbmate won't have an opportunity to gracefully clean up its connection to the server, and it is a long-standing behavior of MySQL to not terminate client queries upon network connection disconnection, requiring a DBA to kill the process from the server side if the process requires terminating.

I don't think there's anything that can be done by way of change to dbmate to address either of these things.

from dbmate.

dossy avatar dossy commented on June 11, 2024

As everything described in this issue is either expected behavior, or something we cannot do anything about by a change to dbmate, I'm going to close this issue. If there's a proposal for a change to dbmate that could help here, please re-open this issue or open a new one outlining the change. Thanks!

from dbmate.

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.