ChuanFF commented on PR #12288: URL: https://github.com/apache/apisix/pull/12288#issuecomment-3254410220
@Baoyuantop Sorry, I've been trying to fix this issue in my own repository for the past couple of days and didn't realize the PR would sync here as well. I have now completed the code changes. The approach is: In the pre_list function, I record the existing keys from the shared_dict into a temporary table handle.existing_keys. Then, when APISIX lists Kubernetes endpoints/endpointSlices, I record the keys written to the shared_dict into another temporary table handle.current_keys_hash. Essentially, handle.existing_keys represents the old list of keys, while handle.current_keys_hash represents the new list of keys. Finally, in the post_list function, I compare the old and new data to identify and remove any dirty data. -- 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]
