lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paddy Mullen (Updated) (JIRA)" <>
Subject [jira] [Updated] (SOLR-3147) FileDataSource throws a FileNotFoundException when reading from named pipes
Date Tue, 21 Feb 2012 16:44:35 GMT


Paddy Mullen updated SOLR-3147:

    Attachment: SOLR-3147.patch

This patch adds a new implementation of getFile that accepts an allowNonFile flag,  it keeps
the old version of getFile for api compatability (there are existing callers of the old prototype)
> FileDataSource throws a FileNotFoundException when reading from named pipes
> ---------------------------------------------------------------------------
>                 Key: SOLR-3147
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 3.5
>         Environment: Unix
>            Reporter: Paddy Mullen
>            Priority: Minor
>         Attachments: SOLR-3147.patch
> 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
> 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
fixes the issue.  
> What would the preferred patch do?  Should it read a forceFile attribute from initProps?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message