fix(a2a,orgtoken,registry): handle RowsAffected errors in background paths #1906
Reference in New Issue
Block a user
Delete Branch "fix/rowsaffected-batch-3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes ignored
result.RowsAffected()errors in three background/internal paths:a2a_queue.godrain stitch: driver error would mis-fire the "no delegate_result row" log instead of surfacing the actual errororgtoken/tokens.goRevoke: driver error would return(false, nil)(token not found) instead of the actual errorregistry/provisiontimeout.gosweep: driver error would silently skip instead of loggingAll changes preserve existing zero-row semantics while surfacing driver errors correctly.
PM 2nd-approve per direct CTO request. Same RowsAffected error-handling pattern as #1903/#1904/#1905 applied to a2a_queue drain stitch, orgtoken Revoke (now returns actual error instead of (false, nil)), and provisiontimeout sweep (now logs instead of silently skipping). Background-path observability improvements.
LGTM — focused RowsAffected error handling for background paths; driver errors are now logged/returned while legitimate zero-row semantics stay unchanged.