You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/09/09 09:00:00 UTC

[jira] [Commented] (TIKA-4886) ProcessUtils spawns and immediately kills a subprocess when time budget is zero

    [ https://issues.apache.org/jira/browse/TIKA-4886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18113231#comment-18113231 ] 

ASF GitHub Bot commented on TIKA-4886:
--------------------------------------

timgrein opened a new pull request, #3149:
URL: https://github.com/apache/tika/pull/3149

   Currently `ProcessUtils.execute` starts and then immediately kills a subprocess, even if the granted timeout is <= `0`. `TikaHttpClient` has a similar scenario and handles that fast-path failure scenario explicitly, so a similar mechanism is added to `ProcessUtils.execute`.




> ProcessUtils spawns and immediately kills a subprocess when time budget is zero
> -------------------------------------------------------------------------------
>
>                 Key: TIKA-4886
>                 URL: https://issues.apache.org/jira/browse/TIKA-4886
>             Project: Tika
>          Issue Type: Bug
>          Components: core
>            Reporter: Tim Grein
>            Priority: Minor
>
> Currently ProcessUtils.execute starts a subprocess, even if requestedTimeoutMillis is 0. TikaHttpClient on the other hand has a fail fast path, where a timeout exception is thrown, if the granted timeout is <= 0.
> ProcessUtils.execute should probably also have a fail fast path similar to the TikaHttpClient.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)