Giter VIP home page Giter VIP logo

grails-mongodb-data-migration's People

Contributors

marcoscarceles avatar shin-nien avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

marcoscarceles

grails-mongodb-data-migration's Issues

Changelog files do not recognise classes included on the application classpath

I have a changelog file with

    { "filename": "normalise-slugs-for-seo",
        "author": "marcos-carceles",
        "description" : "Improves the slugs for Brand, Expert and Store with more accurate names"
    }

The content of the migration is

["brand","expert","store"].each { String collection ->
    db[collection].find().each {
        db[collection].update([_id: it._id], [$set: [slug: uk.co.makroos.util.SEOUtils.buildSlug(it.name)]])
    }
}

uk.co.makroos.util.SEOUtils is located on my grails-app under

    src
        groovy

Running the script results on the error below:

| Error Fatal error running tests: No such property: uk for class: Script1 (Use --stacktrace to see the full trace)

When a data migration fails it leaves the locks on the database, making following executions to fail

If a migration fails to run for any reason, it does not free the migrations_lock, making any following execution to fail like in the log below:

2014-08-29 12:17:37,154 [main] INFO  datamigration.Runner  - Migrations lock detected. Sleeping for 5s. Total time 120s
| Error 2014-08-29 12:17:42,158 [main] ERROR datamigration.Runner  - Timeout waiting for data migration lock
| Error Fatal error running tests: Timeout waiting for data migration lock (Use --stacktrace to see the full trace)

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.