NVFlare icon indicating copy to clipboard operation
NVFlare copied to clipboard

[BUG] Expected late ModelController results are logged as errors

Open nvshaxie opened this issue 1 month ago • 0 comments

Description

After #5374, a recognized result that arrives after its custom task has completed can reach the existing unknown-task hook within the original workflow. This is intentional receipt/routing behavior, but the default BaseModelController logs Ignoring result from unknown task. at ERROR for a non-train task, even when the assignment identity is known and the lateness is expected.

Reproduction scenario

  1. Run a three-client job using BaseModelController with a custom task name such as poc.
  2. Have two clients return before the task timeout and one return after it. Alternatively, complete the task once the minimum number of responses is reached.
  3. Keep the issuing workflow running long enough for the remaining client's first result to arrive.
  4. Observe the default unknown-task handler logging ERROR for that recognized, completed assignment.

Expected behavior

Preserve the late-result callback policy, but distinguish a recognized late assignment from a genuinely unknown task. Ignoring a normal late non-training result should not emit a misleading ERROR. Genuinely unknown non-training results should retain their existing ERROR diagnostic.

Evidence and scope

Five integration cases covering timeout, minimum responses and timeout-before-minimum-responses fail on main and pass on 2.9.0. Two representative cases also pass immediately before #5374 and fail immediately after it with the same ERROR signature. Functional result-content assertions still pass; no model corruption or incorrect aggregation has been demonstrated.

The issue concerns the default ModelController diagnostic. It does not propose removing callbacks, disabling duplicate suppression, or changing training-result acceptance.

nvshaxie avatar Oct 26 '26 07:10 nvshaxie