I would like to propose a TwoPhaseCommit interface which declares the methods necessary to implement a 2-phase commit algorithm:
The prepare/commit ones have variants that take a (Map<String,String> commitData) following the ones we have in IndexWriter.
In addition, a TwoPhaseCommitTool which implements a 2-phase commit amongst several TPCs.
Having IndexWriter implement that interface will allow running the 2-phase commit algorithm on multiple IWs or IW + any other object that implements the interface.
We should mark the interface @lucene.internal so as to not block ourselves in the future. This is pretty advanced stuff anyway.
Will post a patch soon
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|2d 6h 13m||1||Shai Erera||13/Jun/11 18:38|
|18d 8h 1m||1||Robert Muir||02/Jul/11 02:40|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|