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

DataImportHandler dataimport.properties should write to data dir by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 4.10, 5.5, 6.6
    • None
    • None

    Description

      Currently, DIH drops the dataimport.properties file in the core directory by default, but the data directory seems to be the logical choice.

      • The core directory tends to be read-only.
      • The data directory is the write area, and the dataimport.properties file is tied to the index, rather than the core configurations.

      Docker is a use case where the current behavior is glaringly problematic: The core directory lives in the container layer, and any files that Solr writes there disappear when the container is restarted (forcing a subsequent full index). The data directory, on the other hand, is already persisted to a volume (according to normal practice), so if it were the default location to write dataimport.properties, it would behave as one would expect.

      It's possible to work around this (using PropertyWriter, symlinks, or other tricks), but this shouldn't be necessary.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jamiejackson Jamie Jackson
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: