uschindler commented on PR #16865: URL: https://github.com/apache/lucene/pull/16865#issuecomment-6271169636
> Using an AtomicLong helps avoid some stale updates, but not all. For example: see `-1`, calculate the value, the files change, `-1` is still (or again) cached so it updates to the calculated but stale value. Of course not, but the AtomicLong is still not as "hacky" as the solution in this PR. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
