Added functionality for pruning mgo/txn's transactions collection #10

Merged
merged 1 commit into from May 20, 2015

Conversation

Projects
None yet
1 participant

mjs commented May 18, 2015

If left alone, the collection used by mgo/txn to coordinate and track client-side transactions will grow without bound.

This change adds a PruneTransactions method to the Runner interface. This can be called at any time to remove mgo/txn's documents for applied and aborted transactions. It is intended to be called periodically.

(Review request: http://reviews.vapour.ws/r/1705/)

@mjs mjs referenced this pull request in juju/juju May 19, 2015

Merged

Prune completed transactions #2361

Added functionality for pruning mgo/txn's transactions collection
If left alone, the collection used by mgo/txn to coordinate and track
client-side transactions will grow without bound.

This change extends the Runner interface with a PruneTransactions
method. PruneTransactions can be called at any time to remove
mgo/txn's documents for applied and aborted transactions. It is
intended to be called periodically.

mjs commented May 20, 2015

$$merge$$

mjs pushed a commit that referenced this pull request May 20, 2015

Merge pull request #10 from mjs/add-txn-pruning
Added functionality for pruning mgo/txn's transactions collection

@mjs mjs merged commit c3617a3 into juju:master May 20, 2015

@mjs mjs deleted the mjs:add-txn-pruning branch May 20, 2015

jujubot added a commit to juju/juju that referenced this pull request May 20, 2015

Merge pull request #2361 from mjs/1453785-txn-pruning-1.22
Prune completed transactions

This set of changes integrates the new txn pruning functionality in juju/txn#10 into Juju. A new txnpruner worker for the master machine agent is introduced to call PruneTransactions periodically. 

Part of the fix for LP #1453785.

This PR can't land until the PR for juju/txns lands.



(Review request: http://reviews.vapour.ws/r/1720/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment