Giter Site home page Giter Site logo

fgforrest / darwin Goto Github PK

View Code? Open in Web Editor NEW
6.0 5.0 2.0 478 KB

Darwin is a small Java library that helps applications to setup and evolve their database schema over the time. Evolution is based on SQL patch application and aims at traceability, predictability and reliability. It has been for 13 years in production systems.

Home Page: http://edee.one

License: MIT License

Java 99.43% PLSQL 0.54% Shell 0.02%
database database-schema evolution autoupdate sql model java

darwin's People

Contributors

novoj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

idelstak kamest

darwin's Issues

Retry when removing lock

Application tries to remove lock repeatably when lock is no longer valid (not found). It doesn't make sense, because application can't revive from this state.

Add identification of origin node per lock

In case of a restart or application crash is lock left in DB, there is no way to release the lock without waiting for leaseTime to unlock it. A particular lock should maintain information about the node from which it originated, and at the same time the Locker class should provide a way to remove locks from its own node.

Suggested solution:

  • Locks unlockKey should be stored with postfix: "_{NodeId}".
  • Locker class should implement method to remove all locks created by particular node (all locks where unlock key ends with "_{NodeId}")
  • Darwin module should provide interface which will provide identification of Node. This new interface InstanceIdProvider identifies not only a node, but also a specific instance of Locker if multiple instances exist in a single Spring context.

At the end unlockKey might look like "{Hash}{NodeId}{LockerInstanceId}", this will ensure no locks created by other instance of node will be removed.

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.