Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

MongoDB runs out of storage space #49

Closed
clintonb opened this issue Jan 27, 2017 · 5 comments
Closed

MongoDB runs out of storage space #49

clintonb opened this issue Jan 27, 2017 · 5 comments

Comments

@clintonb
Copy link
Contributor

Running edxapp tests creates a new database with every run. This leads to mongod shutting down due to lack of storage space. I fixed this by deleting all of the test databases.

db.getMongo().getDBNames().forEach(function(name) {
    if(name.match("^test")) { 
        db.getMongo().getDB( name ).dropDatabase();
    }
});

We should find a way to have the tests cleanup after themselves.

@clintonb
Copy link
Contributor Author

@edx/testeng how do we get around this issue for Vagrant-based devstacks?

@jzoldak
Copy link

jzoldak commented Feb 1, 2017

@clintonb I've not heard of the issue before. Could be nobody had noticed. Dunno.

@clintonb
Copy link
Contributor Author

I suspect this may have been resolved by edx#52.

@clintonb
Copy link
Contributor Author

Correction: the database cleanup has not been resolved. Space issues have been mitigated.

@clintonb clintonb reopened this Mar 25, 2017
@macdiesel
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants