EdwardShen125 commented on PR #1567:
URL: https://github.com/apache/arrow-go/pull/1567#issuecomment-6972699554

   Confirmed with your repro (8 goroutines, 1ns lifetime) — kekFor was handing 
out an entry that a concurrent refresh rewrote in place. All four points are 
addressed in fa5c1755:
   
   - kekFor replaces the map entry with a new, immutable cachedKek on refresh; 
TestKekRefreshFromConcurrentWriters drives that same repro and additionally 
checks every generated material still unwraps.
   - Expired entries are swept when a new key joins the map 
(CheckCacheForExpiredTokens); an internal test asserts it.
   - WithKekCacheLifetime now documents the zero/negative fallback; the 
Algorithm doc says parquet.AesCtr.
   


-- 
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