Skip to content

fix: restore ready=false for unresolved model in TRITONSERVER_ServerModelIsReady (#508) - #510

Merged
mc-nv merged 1 commit into
r26.07from
mchornyi/TRI-1529/cp-508
Jul 8, 2026
Merged

fix: restore ready=false for unresolved model in TRITONSERVER_ServerModelIsReady (#508)#510
mc-nv merged 1 commit into
r26.07from
mchornyi/TRI-1529/cp-508

Conversation

@mc-nv

@mc-nv mc-nv commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Cherry-pick of #508 into r26.07.

Description

#502 refactored ModelIsReady to take an already-resolved Model, moving the GetModel() lookup into TRITONSERVER_ServerModelIsReady with RETURN_IF_STATUS_ERROR. This changed the public contract: a model that was never loaded, was unloaded, or is unregistered now returns a NOT_FOUND error instead of ready=false. Before #502 the lookup failure was swallowed and the call returned ready=false with a success status.

The regression surfaced as a failure in test_binding.py::test_server_explicit (and affects every model_is_ready caller, incl. KServe /ready endpoints and the Python in-process API). Treat an unresolvable model as not-ready again while keeping #502's resolved-Model path for the found case.

Changes

  • src/tritonserver.cc: when GetModel() cannot resolve the model, set *ready = false and return success instead of surfacing the lookup error.

Affected Files

  • src/tritonserver.cc

Related Issues:

  • Resolves: TRI-1529

Related PRs:

…odelIsReady (#508)

#502 refactored ModelIsReady to take an already-resolved Model, moving the
GetModel() lookup into TRITONSERVER_ServerModelIsReady with
RETURN_IF_STATUS_ERROR. This changed the public contract: a model that was
never loaded, was unloaded, or is unregistered now returns a NOT_FOUND error
instead of ready=false. Before #502 the lookup failure was swallowed and the
call returned ready=false with a success status.

The regression surfaced as a failure in test_binding.py::test_server_explicit
(and affects every model_is_ready caller, incl. KServe /ready endpoints and the
Python in-process API). Treat an unresolvable model as not-ready again while
keeping #502's resolved-Model path for the found case.
@mc-nv mc-nv added the cherry-pick Cherry-picked from another branch label Jul 8, 2026
@mc-nv mc-nv self-assigned this Jul 8, 2026
@mc-nv
mc-nv requested review from whoisj and yinggeh July 8, 2026 17:27
@mc-nv
mc-nv marked this pull request as ready for review July 8, 2026 17:27
@mc-nv
mc-nv merged commit bf59783 into r26.07 Jul 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick Cherry-picked from another branch

Development

Successfully merging this pull request may close these issues.

2 participants