Skip to content

git-reader: RMST-609: reduce 400 responses even more - #1720

Open
leplatrem wants to merge 1 commit into
mainfrom
redirect-expected-since
Open

leplatrem wants to merge 1 commit into
mainfrom
redirect-expected-since

Conversation

@leplatrem

@leplatrem leplatrem commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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:

Screenshot 2026-11-26 at 19 14 08

After inspecting trafic, we can tell that these come from:

  1. Old Linux Firefox (115–140), search-config only (~3M requests). The collection was frozen in March 2024 when search-config-v2 replaced 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 in 000) 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 _expected query 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.
  2. For the rest of trafic, there's no pattern (spread over linux, windows, nightly), the local data is ahead of the push.

I suspect that we apply the same fix as #1700 for individual collection. Since we honour the _since value, 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.

Note: reminder, in v1 we used to return a 204 which was hiding all this.

@leplatrem
leplatrem requested a review from a team as a code owner November 26, 2026 18:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant