This is an automated email from the ASF dual-hosted git repository.
curth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 6a8c2ae87 fix(csharp/src/Drivers/BigQuery): add details for retried
error message (#3244)
6a8c2ae87 is described below
commit 6a8c2ae87fb5b73df334bc85015e4bed3cfe91dd
Author: davidhcoe <[email protected]>
AuthorDate: Thu Aug 7 07:54:04 2025 -0400
fix(csharp/src/Drivers/BigQuery): add details for retried error message
(#3244)
Current error messages do not contain details for what occurred, only a
message like:
`Cannot execute <ReadChunkWithRetries>b__0 after 5 tries`
This adds the Message of the last exception that occurred as well.
Co-authored-by: David Coe <>
---
csharp/src/Drivers/BigQuery/RetryManager.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/csharp/src/Drivers/BigQuery/RetryManager.cs
b/csharp/src/Drivers/BigQuery/RetryManager.cs
index 6848fbcc1..29a02c65c 100644
--- a/csharp/src/Drivers/BigQuery/RetryManager.cs
+++ b/csharp/src/Drivers/BigQuery/RetryManager.cs
@@ -62,11 +62,11 @@ namespace Apache.Arrow.Adbc.Drivers.BigQuery
if
(tokenProtectedResource?.TokenRequiresUpdate(ex) == true)
{
activity?.AddBigQueryTag("update_token.status", "Expired");
- throw new AdbcException($"Cannot update access
token after {maxRetries} tries", AdbcStatusCode.Unauthenticated, ex);
+ throw new AdbcException($"Cannot update access
token after {maxRetries} tries. Last exception: {ex.Message}",
AdbcStatusCode.Unauthenticated, ex);
}
}
- throw new AdbcException($"Cannot execute
{action.Method.Name} after {maxRetries} tries", AdbcStatusCode.UnknownError,
ex);
+ throw new AdbcException($"Cannot execute
{action.Method.Name} after {maxRetries} tries. Last exception: {ex.Message}",
AdbcStatusCode.UnknownError, ex);
}
if ((tokenProtectedResource?.UpdateToken != null))