Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3135

Cleanup mongodb databases created by tests

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • None
    • 5.3.0.Beta2, 5.3.0.CR1
    • Loaders and Stores
    • None

      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)

            g_scheibel Guillaume Scheibel (Inactive)
            mircea.markus Mircea Markus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: