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

DataImportHandler dataimport.properties should write to data dir by default

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 4.10, 5.5, 6.6
    • Fix Version/s: None
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              jamiejackson Jamie Jackson

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment