Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3, 4.0-ALPHA
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      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

      1. LUCENE-3193.patch
        15 kB
        Shai Erera
      2. LUCENE-3193.patch
        17 kB
        Shai Erera

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Shai Erera
            Reporter:
            Shai Erera
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development