[
https://issues.apache.org/jira/browse/TEZ-3077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15145301#comment-15145301
]
Hitesh Shah commented on TEZ-3077:
----------------------------------
The waitTillReady api is to check if the session is in a state to submit dags
to it. If there is a timeout specified and it expires, it implies that the
session has still not reached a ready state even after the timeout expired. The
main objective here is to not have waitTillReady() hang indefinitely. Now after
the timeout expires, there are 2 options for the API:
1) Silently return back and let the application decide what it wants to do
2) Return back something ( or throw an exception if needed ) to indicate
whether the api returned because the session is ready or if the timeout
expired.
(2) for me seems a better approach. One could be to return a bool to indicate
success/failure or throw a timeoutexpired/timeoutexceeded exception.
\cc [~sseth] [~sershe] in case they have any preferences.
> TezClient.waitTillReady should support timeout
> ----------------------------------------------
>
> Key: TEZ-3077
> URL: https://issues.apache.org/jira/browse/TEZ-3077
> Project: Apache Tez
> Issue Type: Bug
> Reporter: Sergey Shelukhin
> Assignee: Kuhu Shukla
>
> Also preWarm.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)