juju.txns.stash never cleaned

Bug #1678587 reported by John A Meinel
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
John A Meinel

Bug Description

When documents are Removed by mgo/txn they are staged into txn.stash (in case something would cause the transaction to abort, they can't be removed yet). And the transaction that moves them into the stash cannot actually delete them (for the same reason that it leaves its own txn identifier in the txn-queue).

However, there is no process by which removed items are ever purged from the txns.stash. Which means if you ever have a database that creates and deletes lots of documents, the txns.stash collection will fill up with removed documents.

Juju was updated to purge transactions that are no longer referenced, but this is a whole collection that will always just keep filling up and referencing transactions that we won't be able to ever delete.

We should include a step that walks the documents in txns.stash and ensures that for any document, all of its transactions are flagged as completed (or aborted?), and then remove the actual document from the stash.

John A Meinel (jameinel)
Changed in juju:
status: Triaged → In Progress
Junien Fridrick (axino)
tags: added: canonical-is
Revision history for this message
John A Meinel (jameinel) wrote :
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.