hanzhenfang commented on issue #14149: URL: https://github.com/apache/apisix/issues/14149#issuecomment-6657176572
I reviewed the relevant code locally. The reported race appears possible: a worker could read the new version before the new endpoint content is written and cache the old content with the new version. We’re discussing the preferred direction internally. The options we’re considering are: 1. Coordinate reads and writes with a lock. 2. Write the endpoint content before updating the version. We also want to review whether a worker should continue to reuse its cached content after the TTL expires when the version still matches. The exact race has not yet been reproduced in a controlled environment. We’ll follow up once we’ve agreed on a direction. @membphis @nic-6443 -- 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]
