Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-938

DataImportHandler: Add close hooks to the completion of a full-import process

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.4
    • Labels:
      None
    • Environment:

      JRE 6, Tomcat 6

      Description

      Adding a new feature that we need for continuation of a workflow based on a full-import procedure. When a full-import completes , the pre-defined hook method is called at the end of the same.

      Implementations that need to notified , need to implement the new interface - DataImportCloseHook and register themselves in the data config file as follows.

      <dataConfig>

      .
      .
      .
      .
      <closeHook type="com.myorg.fullimporter.closeHookImpl1" />
      <closeHook type="com.myorg.fullimporter.closeHookImpl2" />
      </dataConfig>

      A single instance of them is created (as part of DataImporter) during instantiation and the same insance is reused across multiple invocations.

      Since the dataImporter is protected by a thread-lock - there is no thred-safe guarantee for the implementations of the full-import close hook.

        Attachments

        1. SOLR-938.patch
          10 kB
          Karthik K
        2. SOLR-938.patch
          7 kB
          Noble Paul
        3. SOLR-938.patch
          9 kB
          Noble Paul
        4. SOLR-938.patch
          6 kB
          Shalin Shekhar Mangar

          Issue Links

            Activity

              People

              • Assignee:
                shalinmangar Shalin Shekhar Mangar
                Reporter:
                kaykay.unique Karthik K
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified