Details
Description
I had this issue in a real project, when storing embedded collections which contained a reference to an object in another collection. The attached integration test demonstrates the problem. However, I have not found any way to show this issue within one test. The integration test has to be run twice , without
dropping the db in between. It is not sufficient to just run the test twice within one integration test - it literally has to be run twice. This may seem pretty odd, but this situation seems to occur much more often when using the mongodb plug-in within actual services. To ensure the problem is not related to any problem with the management of documents in mongo, I run the test twice within one integration test. All tests run fine within the first integration test run.
-
Hide
- MongoTest.zip
- 05/Apr/12 3:28 PM
- 668 kB
- St.H
-
- MongoTest/.classpath 4 kB
- MongoTest/.DS_Store 6 kB
- __MACOSX/MongoTest/._.DS_Store 0.1 kB
- MongoTest/.project 0.9 kB
- MongoTest/.../com.springsource.sts.grails.core.prefs 0.2 kB
- MongoTest/.../org.codehaus.groovy.eclipse.preferences.prefs 0.1 kB
- MongoTest/.../org.eclipse.core.resources.prefs 1 kB
- MongoTest/.../org.eclipse.wst.common.project.facet.core.xml 0.1 kB
- MongoTest/application.properties 0.2 kB
- MongoTest/.../ApplicationResources.groovy 0.1 kB
- MongoTest/grails-app/.../BootStrap.groovy 0.1 kB
- MongoTest/grails-app/.../BuildConfig.groovy 2 kB
- MongoTest/grails-app/conf/Config.groovy 4 kB
- MongoTest/grails-app/.../DataSource.groovy 1 kB
- MongoTest/grails-app/.../resources.groovy 0.0 kB
- MongoTest/grails-app/.../UrlMappings.groovy 0.2 kB
- MongoTest/grails-app/.../Comment.groovy 0.2 kB
- MongoTest/grails-app/.../Posting.groovy 0.2 kB
- MongoTest/grails-app/.../User.groovy 0.1 kB
- MongoTest/grails-app/.../messages.properties 3 kB
- MongoTest/.../messages_cs_CZ.properties 3 kB
- MongoTest/.../messages_da.properties 3 kB
- MongoTest/.../messages_de.properties 4 kB
- MongoTest/.../messages_es.properties 3 kB
- MongoTest/.../messages_fr.properties 2 kB
- MongoTest/.../messages_it.properties 2 kB
- MongoTest/.../messages_ja.properties 4 kB
- MongoTest/.../messages_nl.properties 3 kB
- MongoTest/.../messages_pt_BR.properties 3 kB
- MongoTest/.../messages_pt_PT.properties 3 kB
can't reproduce this with the latest code