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

Simplify forking/monitoring in tika-server for 2.x

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      In looking back at the code for tika-server's forking process and monitoring. We can simplify it quite a bit and make restarts more timely and efficient.

      We should change a few Thread.sleep calls to process.waitFor() so that we're notified instantly if a forked process dies.

      We don't need the pinging communication via stdout/stdin between forking and forked. The forking process can monitor the forked process via the forkedstatusfile and watching for an exit value on the process. The forked process can monitor its parent by blocking on a read of stdin.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: