Skip to content
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

[Bug] graphman drop sgdXXX results in all deployments with same deployment hash being dropped #5688

Open
1 of 3 tasks
datanexus-vincent opened this issue Oct 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@datanexus-vincent
Copy link

Bug report

In an attempt to drop one deployment with multiple copies, I used graphman drop. The confirmation made no mention that multiple deployments were going to be removed, but both deployments were removed when I confirmed. Is this expected behavior? Because it doesn't seem like it from the user perspective.

Relevant log output

$ graphman --config graph_node_config.toml drop sgd1591
Found 1 deployment(s) to remove:
name       | indexer-agent/yGw4wgaMhW
deployment | QmTMKqty5yZvZtB3SwzXUG92aZUH1YQw3VjByGw4wgaMhW

Continue? [y/N] y
unassigning QmTMKqty5yZvZtB3SwzXUG92aZUH1YQw3VjByGw4wgaMhW[1591]
Removing subgraph indexer-agent/yGw4wgaMhW
Recording unused deployments. This might take a while.
id        | 603
shard     | arbitrum
namespace | sgd603
subgraphs | 
entities  | 4117337
----------+-------------------------------------------------------------------
id        | 1591
shard     | arbitrum_vip
namespace | sgd1591
subgraphs | 
entities  | 4859231
Recorded 2 unused deployments
====================================    1 ====================================
removing sgd603 from arbitrum
   deployment id: QmTMKqty5yZvZtB3SwzXUG92aZUH1YQw3VjByGw4wgaMhW
        entities: 4117337
done removing sgd603 from arbitrum in 2.2s

====================================    2 ====================================
removing sgd1591 from arbitrum_vip
   deployment id: QmTMKqty5yZvZtB3SwzXUG92aZUH1YQw3VjByGw4wgaMhW
        entities: 4859231
done removing sgd1591 from arbitrum_vip in 1.0s

IPFS hash

No response

Subgraph name or link to explorer

No response

Some information to help us out

  • Tick this box if this bug is caused by a regression found in the latest release.
  • Tick this box if this bug is specific to the hosted service.
  • I have searched the issue tracker to make sure this issue is not a duplicate.

OS information

Linux

@datanexus-vincent datanexus-vincent added the bug Something isn't working label Oct 28, 2024
@suntzu93
Copy link

You can remove a single namespace using the following commands:

  1. graphman unassign sgdxxx
  2. graphman unused record
  3. graphman unused remove

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants