tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Allison (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TIKA-2825) Make interrupter in tika-batch's child process actually optional
Date Fri, 01 Feb 2019 14:12:00 GMT
Tim Allison created TIKA-2825:
---------------------------------

             Summary: Make interrupter in tika-batch's child process actually optional
                 Key: TIKA-2825
                 URL: https://issues.apache.org/jira/browse/TIKA-2825
             Project: Tika
          Issue Type: Task
          Components: tika-batch, tika-eval
            Reporter: Tim Allison


tika-eval uses tika-batch, but it only uses the child batch process because if there's a failure
there, something went seriously wrong, and there shouldn't be a restart.

The problem is that the child process uses stdin as a potential interrupt from the parent
process.  If the child is run by itself, it uses the system's stdin, which can cause problems
w nohup:
{noformat}
Exception from STDIN in CommandlineInterrupter.
java.io.IOException: Bad file descriptor
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(FileInputStream.java:255)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
        at org.apache.tika.batch.Interrupter.call(Interrupter.java:52)
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message