fix(files): preserve physical read provenance through cleanup
Keep raw physical read diagnostics alongside explicit operation provenance on the same cleanup owner. Preserve provenance after successful close retry for opted-in readers, restore legacy error projections, and prevent borrowed cleanup-shaped failures from authorizing foreign resource retries. Refs #5686
This commit is contained in:
1 parent
52c84f6f58
commit
56679dd2ae
4 files changed
+256
-13
No files matched your search
@@ -74,7 +74,10 @@ export const retryClientConfigurationCleanup = async (
|
||||
if (retried.cleanup !== undefined) observations.push(retried.cleanup);
|
||||
primary = retried.primary;
|
||||
const last = retried.failures.at(-1)!;
|
||||
nested = last.outcome.kind === "failed" ? last.outcome.cause : undefined;
|
||||
nested =
|
||||
last.operationFailure === undefined && last.outcome.kind === "failed"
|
||||
? last.outcome.cause
|
||||
: undefined;
|
||||
} else {
|
||||
const released = await resources.release({
|
||||
kind: "lease",
|
||||
|
||||
Reference in new issue
Block a user