Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2825

Make interrupter in tika-batch's child process actually optional

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.21
    • Component/s: tika-batch, tika-eval
    • Labels:
      None

      Description

      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:

      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)
      

      Further, the comments suggest that the interrupter is optional, and so it should be.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tallison Tim Allison
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: