You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shai Erera (JIRA)" <ji...@apache.org> on 2011/06/11 14:54:58 UTC

[jira] [Updated] (LUCENE-3193) TwoPhaseCommit interface

     [ https://issues.apache.org/jira/browse/LUCENE-3193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shai Erera updated LUCENE-3193:
-------------------------------

    Attachment: LUCENE-3193.patch

Patch introduces:

* TwoPhaseCommit interface
* TPCTool (inner to TPC interface) for running a 2-phase commit algorithm
* TPCWrapper, for running TPCTool w/ commitData
* Modify IW to impl TPC
* Add CHANGES entry (under the 3.x section).

TPCWrapper is just a convenience class for passing a different commitData long w/ every TPC. If you have a better name, I'm open to suggestions (maybe CommitDataWrapper?)

Core tests pass.

> TwoPhaseCommit interface
> ------------------------
>
>                 Key: LUCENE-3193
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3193
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: core/index
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>             Fix For: 3.3, 4.0
>
>         Attachments: LUCENE-3193.patch
>
>
> I would like to propose a TwoPhaseCommit interface which declares the methods necessary to implement a 2-phase commit algorithm:
> * prepareCommit()
> * commit()
> * rollback()
> 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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org