Undo replayed PreparedOp for aborted recovery

Description

If coordinator rejects the completed recovery, the recovered PreparedOp entries are left behind.

Garbage collector cannot clean them since they are registered to TransactionManager already.

Option 1) log cleaner check tablet status and clean it properly. (possibly inefficient.)
Option 2) sweep and delete entries like objectManager.removeOrphanedObjects();
Something like TransactionManager.removeOrphanedItems(); which scan every prepared item and incompleteTransactions and delete if they belongs to the tablet of aborted recovery.

For undoing AddOrGetTransaction, need to consult with Collin.

Environment

None

Status

Assignee

Collin Lee

Reporter

Seo Jin Park

Labels

None

Priority

Medium
Configure