[ 
https://issues.apache.org/jira/browse/TIKA-3301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tim Allison updated TIKA-3301:
------------------------------
    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. 

  was:
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.  The forked process can 
monitor its parent by blocking on a read of stdin. 


> Simplify forking/monitoring in tika-server for 2.x
> --------------------------------------------------
>
>                 Key: TIKA-3301
>                 URL: https://issues.apache.org/jira/browse/TIKA-3301
>             Project: Tika
>          Issue Type: Task
>            Reporter: Tim Allison
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> 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. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to