Skip to content

fix: return non-availability errors from TRITONSERVER_ServerModelIsReady - #513

Merged
yinggeh merged 2 commits into
mainfrom
yinggeh/fix-model-is-ready-error-handling
Jul 9, 2026
Merged

fix: return non-availability errors from TRITONSERVER_ServerModelIsReady#513
yinggeh merged 2 commits into
mainfrom
yinggeh/fix-model-is-ready-error-handling

Conversation

@yinggeh

@yinggeh yinggeh commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

What does the PR do?

Fixes a logic error in TRITONSERVER_ServerModelIsReady. GetModel returns UNAVAILABLE (server not ready) or NOT_FOUND (model not found) only when the server itself is not ready; it may return other error codes in the future for genuine lookup failures. The previous code swallowed every GetModel failure and reported ready=false, hiding real errors from the caller. Now only the server-not-ready (UNAVAILABLE) and model-not-found (NOT_FOUND) cases are reported as not-ready; any other error is surfaced.

Checklist

  • PR title reflects the change and is of format <commit_type>: <Title>
  • Changes are described in the pull request.
  • Related issues are referenced.
  • Populated github labels field
  • Added test plan and verified test passes.
  • Verified that the PR passes existing CI.
  • Verified copyright is correct on all changed files.
  • Added succinct git squash message before merging.
  • All template sections are filled out.
  • Optional: Additional screenshots for behavior/output changes with before/after.

Commit Type:

  • fix

Related PRs:

#502
#508

Test plan:

  • CI Pipeline ID: 57341501

GetModel returns UNAVAILABLE only when the server is not ready; in that
case the model is reported not-ready. Any other lookup failure is now
surfaced to the caller instead of being masked as ready=false.

Signed-off-by: Yingge He <yinggeh@nvidia.com>
@yinggeh yinggeh self-assigned this Jul 8, 2026
@yinggeh
yinggeh requested review from Vinya567, mc-nv and whoisj July 8, 2026 23:09
@yinggeh yinggeh added the PR: fix A bug fix label Jul 8, 2026
Vinya567
Vinya567 previously approved these changes Jul 8, 2026

@Vinya567 Vinya567 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yinggeh
yinggeh merged commit 2b67858 into main Jul 9, 2026
1 check passed
@yinggeh
yinggeh deleted the yinggeh/fix-model-is-ready-error-handling branch July 9, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix A bug fix

Development

Successfully merging this pull request may close these issues.

3 participants