scipy / SciPyCentral

SciPy Central
http://scipy-central.org
BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

Database doesn't unlock when DVCS Error raised #132

Closed ksurya closed 10 years ago

ksurya commented 11 years ago

If for some strange reasons, scipy_central.filestorage.dvsc_wrapper.DVCRepo.run_dvcs_command() don't properly execute either by raising exception or does not respond while submitting an entry, submissions are still stored in database! For this we need to have TransactionMiddleware.

But upon adding Transaction Middleware, if DVCS Error is raised, database doesn't get unlocked. The server has to be restarted again..

Update: PostgreSQL seems to handle this database lock! Probably, concurrency problem with Sqlite. However we need to optimize this feature

ksurya commented 10 years ago

This bug does not happen to come back after https://github.com/scipy/SciPyCentral/pull/168