Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] fix bug where certain allocation retries failed with mysterious …
…message (#85446) (#85451) When an allocation fails for a given model, we retry that allocation. We only do this in certain failure paths. But, if an allocation makes it as far as setting the model config, we will attempt to set the model config again on the same task instance. This will throw a Lucene `Object cannot be set twice!` exception. This commit addresses this bug by using a `trySet`, which is atomic and safe. And then starts tracking the model usage once the config is set. (cherry picked from commit 1bde592)
- Loading branch information