[infinispan-issues] [JBoss JIRA] (ISPN-3135) Cleanup mongodb databases created by tests

Mircea Markus (JIRA) jira-events at lists.jboss.org
Wed Jun 5 14:43:54 EDT 2013


     [ https://issues.jboss.org/browse/ISPN-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mircea Markus updated ISPN-3135:
--------------------------------

        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done

    
> Cleanup mongodb databases created by tests
> ------------------------------------------
>
>                 Key: ISPN-3135
>                 URL: https://issues.jboss.org/browse/ISPN-3135
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Loaders and Stores
>    Affects Versions: 5.3.0.Beta2, 5.3.0.CR1
>            Reporter: Mircea Markus
>            Assignee: Guillaume Scheibel
>
> ATM the MongoDB caches Store creates a database for each run instance, database name being an UUID in order to make sure that multiple tests connecting to the same mongo instance don't collide.
> This database is not deleted on shutdown causing the disk to get full quickly.
> It should be deleted and looking at the Mongodb java API the way to do it seems to be this: http://api.mongodb.org/java/2.10.1/com/mongodb/Mongo.html#dropDatabase(java.lang.String)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list