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

ForkParser deadlock when InputStreamResource catches/returns IOException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.20, 1.19.1, 1.21
    • Fix Version/s: 2.0, 1.23
    • Component/s: parser
    • Labels:
      None

      Description

      It happens because ForkServer is waiting an int with the number of bytes read and, when InputStreamResource returns IOException, ForkClient does nothing with the IOException and tries to read input channel again.

      Simple fix is to do m = -1 instead of returning IOException in InputStreamResource. Better fix should propagate the IOException to ForkServer, no time to implement that now...

        Attachments

          Activity

            People

            • Assignee:
              lfcnassif Luís Filipe Nassif
              Reporter:
              lfcnassif Luís Filipe Nassif
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: