Skip to content

Conversation

@nickva
Copy link
Contributor

@nickva nickva commented Jul 9, 2025

In commit caa4f9b we optimized query args validation so it happens on the coordinator side only. However, during online cluster upgrades some requests like _all_docs from old nodes executed on newly upgrades nodes will fail as the args won't be validated.

To bridge the online upgrade gap add a validated optional flag to args. If the flag is not set, the workers will validate the args; if the flag is already set by the coordinator, they won't be revalidated, so we don't lose the minor performance gain from having to validate them twice.

In commit caa4f9b we optimized query args
validation so it happens on the coordinator side only. However, during online
cluster upgrades some requests like _all_docs from old nodes executed on newly
upgrades nodes will fail as the args won't be validated.

To bridge the online upgrade gap add a `validated` optional flag to args. If
the flag is not set, the workers will validate the args; if the flag is already
set by the coordinator, they won't be revalidated, so we don't lose the minor
performance gain from having to validate them twice.
Copy link
Contributor

@jiahuili430 jiahuili430 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix!

@nickva nickva merged commit a7f0abf into main Jul 9, 2025
23 checks passed
@nickva nickva deleted the online-upgrade-query-param-fix branch July 9, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants