Xuanwo opened a new pull request, #918:
URL: https://github.com/apache/arrow-rs-object-store/pull/918

   # Which issue does this PR close?
   
   Standalone enhancement.
   
   # Rationale for this change
   
   A client waiting for credentials can be blocked on the cache read lock while 
another request refreshes the token. Instrumenting only the metadata HTTP 
request leaves the waiter invisible. An application running concurrent storage 
operations needs to attribute the owner and waiter to their respective 
operations.
   
   # What changes are included in this PR?
   
   A `token_cache_lookup` tracing span inherits the caller’s context and 
identifies the shared cache with an opaque process-local ID. It reports a wait 
when polling the original read or write acquisition yields `Pending`, exclusive 
acquisition before the cache recheck, the provider fetch start and return, and 
the lookup return after lock release. Returning drops the guard before the 
final event. The same acquisition future remains queued across polls.
   
   A concurrent success test drives the GCS instance metadata provider with an 
in-process HTTP service. It observes one refresh owner and a second caller 
waiting on the same cache, then verifies both callers receive the same 
credential after one metadata request.
   
   # Are there any user-facing changes?
   
   Subscribers can enable `object_store::client::token` at TRACE to consume the 
structured events. Lookup spans expose no tokens, credential attributes, URLs 
or provider error text. Credential selection, cache validity, refresh backoff 
and retry policy keep their existing behavior.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to