Skip to content

Commit 0b2f8ef

Browse files
committed
Return Precondition in case of only fast slow store not found errors
1 parent d93775a commit 0b2f8ef

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nativelink-worker/src/local_worker.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ impl<'a, T: WorkerApiClientTrait + 'static, U: RunningActionsManager> LocalWorke
369369
.err_tip(|| "Error while calling execution_response")?;
370370
},
371371
Err(e) => {
372-
if e.code == Code::NotFound {
372+
let is_cas_blob_missing = e.code == Code::NotFound
373+
&& e.message_string().contains("not found in either fast or slow store");
374+
if is_cas_blob_missing {
373375
warn!(
374376
?e,
375377
"Missing CAS inputs during prepare_action, returning FAILED_PRECONDITION"

0 commit comments

Comments
 (0)