Skip to content

Graphman restart: Handle cases where multiple subgraph names reference a deployment ID #5674

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

Merged

Conversation

isum
Copy link
Member

@isum isum commented Oct 17, 2024

There was an issue that prevented graphman restart from running if a deployment ID was referenced by multiple subgraph names. This PR fixes that.

Closes #5670

@isum isum self-assigned this Oct 17, 2024
@zorancv
Copy link
Contributor

zorancv commented Oct 17, 2024

It actually pauses and resumes the first of the two deployments. The second one is not accessible. Both names would point to the whichever happens to be first. If that's desired behaviour then is fine IMO.

@zorancv zorancv self-requested a review October 17, 2024 19:07
@lutter
Copy link
Collaborator

lutter commented Oct 17, 2024

In node/src/manager/deployment.rs, there's a similar helper locate_unique. I don't think this duplication is a big deal, just wanted to point that out.

@isum
Copy link
Member Author

isum commented Oct 18, 2024

@lutter The code duplication will eventually be eliminated once more commands are added to Graphman GraphQL API.

@isum isum merged commit 415005f into master Oct 18, 2024
6 checks passed
@isum isum deleted the ion/graphman-a-deployment-can-be-referenced-by-multiple-names branch October 18, 2024 15:02
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.

Improve Graphman restart: handle cases where multiple subgraph names reference the deployment ID
3 participants