eric-wang-1990 opened a new pull request, #3285:
URL: https://github.com/apache/arrow-adbc/pull/3285

   ## Fix CloudFetchResultFetcher cancellation token chaining
   # Problem
   The CloudFetchResultFetcher.StopAsync() method could not properly cancel 
ongoing fetch operations because:
   Missing cancellation token chaining: FetchNextResultBatchAsync created 
timeout-only tokens using ApacheUtility.GetCancellationToken() and ignored the 
external cancellation token passed from StopAsync()
   Test reliability issues: Unit tests were failing because StopAsync() calls 
weren't actually cancelling background operations
   Resource management: Background fetch operations could continue running even 
after disposal
   # Solution
   Fixed cancellation token chaining in FetchNextResultBatchAsync:
   Replace single timeout token with proper linked cancellation tokens
   Combine both timeout cancellation and external cancellation using 
CancellationTokenSource.CreateLinkedTokenSource()
   Now operations respond to both user-initiated cancellation (StopAsync()) and 
query timeouts
   # Test
   Adding new unit test to test for timeout cancel.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to