New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the entire schema when hashing an introspection query #5007
Conversation
Add indentation to indicate labels are associated with the above metric. Thanks! Co-authored-by: Geoffroy Couprie <apollo@geoffroycouprie.com>
…#4848) replace trait implementation for supergraph_service from router::BoxService to supergraph::BoxService Co-authored-by: Geoffroy Couprie <apollo@geoffroycouprie.com>
CI performance tests
|
4f91abe
to
b9b9d3c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's possible to add a test, that's my "requested change". You're free to dismiss this review.
Fixed in 433ba4b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests have been introduced. LGTM. thank you, @o0Ignition0o
Fix #5006
in #4883 we introduced a query hashing scheme that stays stable across schema updates if the update does not affect the query. Unfortunately, it was not taking introspection queries into account.
This fixes the hashing mechanism to add the schema string to hashed data if we encounter an introspection field. This is a temporary fix until we move introspection execution out of query planning. At that point, this hashing mechanism won't ever see introspection fields.
This PR starts from the 1.44.0 tag, since the bug was introduced there. It will be easy to update it to either 1.45 or the latest dev, depending on when we want to ship that fix
Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
Exceptions
Note any exceptions here
Notes
Footnotes
It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. ↩
Configuration is an important part of many changes. Where applicable please try to document configuration examples. ↩
Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions. ↩