Solr
  1. Solr
  2. SOLR-2790

DataImportHandler last_index_time does not update on delta-imports

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Labels:
      None
    • Environment:

      Windows 7, Java version 1.6.0_26

      Description

      When a full-index is run using the DataImportHandler, the last_index_time is updated. But it is not updated when a delta-import is run. Same issue reported here: http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201104.mbox/%3CBANLkTi=CUnkZ26AJ8WCyFP7ujBjPNW6JTg@mail.gmail.com%3E

      Note that the DataImportHandler entry on the wiki states that the last_index_time should update on both delta-import and full-import.

        Issue Links

          Activity

          Greg Martin created issue -
          Hide
          Greg Martin added a comment -

          Has any consideration been made to looking into this issue?

          Show
          Greg Martin added a comment - Has any consideration been made to looking into this issue?
          Hide
          Chad Kouse added a comment - - edited

          I just went through the code – everything looks good – however I can see where this could happen due to file permissions on the file system.

          It looks like this property is persisted to the dataimport.properties file in your conf folder. If solr can't write to this file, it will appear as if the last_index_time is not updating.

          Code was added (not sure when) to surround this persist call with try/catch and add a status message "Could not write property file. Delta imports will not work. Make sure your conf directory is writable" if it cannot persist the file.

          Show
          Chad Kouse added a comment - - edited I just went through the code – everything looks good – however I can see where this could happen due to file permissions on the file system. It looks like this property is persisted to the dataimport.properties file in your conf folder. If solr can't write to this file, it will appear as if the last_index_time is not updating. Code was added (not sure when) to surround this persist call with try/catch and add a status message "Could not write property file. Delta imports will not work. Make sure your conf directory is writable" if it cannot persist the file.
          James Dyer made changes -
          Field Original Value New Value
          Link This issue is related to SOLR-3365 [ SOLR-3365 ]
          James Dyer made changes -
          Link This issue is part of SOLR-2551 [ SOLR-2551 ]
          Hide
          James Dyer added a comment -

          I agree with Chad: DocBuilder does update dataimport.properties at the end of a delta-import. SOLR-2551 added a warning message if the properties file is not writable. SOLR-4051 makes it possible to configure the file location so non-writable locations can be easily worked around.

          Show
          James Dyer added a comment - I agree with Chad: DocBuilder does update dataimport.properties at the end of a delta-import. SOLR-2551 added a warning message if the properties file is not writable. SOLR-4051 makes it possible to configure the file location so non-writable locations can be easily worked around.
          James Dyer made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Invalid [ 6 ]
          Uwe Schindler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Greg Martin
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development