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

FileDataSource throws a FileNotFoundException when reading from named pipes

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

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 3.5
    • None
    • None
    • Unix

    Description

      DataImportHandler fails on a FileNotFoundException when FileDataSource tries to read from a named pipe. This is because FileDataSource:105 in getFile calls isFile(). Since named pipes aren't true files this fails. When this check is removed, the import is able to proceed normally.

      I want to use a named pipe so I can keep the file compressed on disk and use gunzip -c to uncompress the file to the named pipe. Another way of fixing this would be to natively decompress inside of FileDataSource, it's not clear if this bug https://issues.apache.org/jira/browse/SOLR-1406 fixes the issue.

      What would the preferred patch do? Should it read a forceFile attribute from initProps?

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            paddy_mullen Paddy Mullen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment