grails-mongodb-data-migration's People
Forkers
marcoscarcelesgrails-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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.