chrisberkhout commented on PR #16865: URL: https://github.com/apache/lucene/pull/16865#issuecomment-6270849875
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. -- 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]
