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
Duplicate Parallel calls to federated services with Federation 2 #1316
Comments
When the number of possible plans for a query is too high to generate all plans, we use a simple strategy to discard some options, but that strategy had a trivial bug (a simple loop that was reordering an element in an array was mishandling the case where the element had to move to the end) leading to invalid plans. Fixes apollographql#1316
Thanks for the report and sorry for the inconvenience. Created #1319 with a fix. |
When the number of possible plans for a query is too high to generate all plans, we use a simple strategy to discard some options, but that strategy had a trivial bug (a simple loop that was reordering an element in an array was mishandling the case where the element had to move to the end) leading to invalid plans. Fixes apollographql#1316
@pcmanus Can you publish the changes for the fix? I dont see the change reflected in "2.0.0-alpha.2" |
@AneethAnand Those are all referenced in this repository. This code doesn't live in any private federation monorepo. What you might be looking for is a release to be cut that includes this fix, which is something that hasn't yet been done but I understand should be coming in the next couple days. (Is that right, @pcmanus?) Lines 34 to 44 in 950eb93
|
@AneethAnand We should be cutting that new release sometime this week. |
@AneethAnand Sorry for the delay, but |
@pcmanus No problem I saw the newer version published on Friday and we have already started using it. Thanks again! |
Query planner generates - Duplicate parallel calls to the federated services
Repository to reproduce the error (https://github.com/AneethAnand/federation2)
Graphql Query
Actual QueryPlan
Expectation
Remove one of the field say "viewer3" in the query, the gateway works as expected.
The text was updated successfully, but these errors were encountered: