Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We already reduced a good amount of 400s by redirecting the polls to monitor/changes. See #1700.
We still observe a good amount of 400 responses:
After inspecting trafic, we can tell that these come from:
search-configonly (~3M requests). The collection was frozen in March 2024 whensearch-config-v2replaced it. These clients hold a local timestamp that is later than that (2024-05 to 2025-04). BTW it's a whole number of seconds (they all end in000) and one hypothesis (not verified) could be that this is distro-built data, not data originally synced from our server. Their local data will always be polled with newer timestamp (the_expectedquery param comes from the monitor/changes response), so every sync will always fail. We only erase the local data on client side errors, not server side errors, they will retry infinitely.I suspect that we apply the same fix as #1700 for individual collection. Since we honour the
_sincevalue, response is likely be an empty list of changes, and signature verification will be executed. Potential distro data will be replaced by our official server data.