graphprotocol / graphprotocol/indexer

[BUG] indexer-agent allowing multiple allocations

Open
#1,044 3 comments 0 reactions 0 assignees View on GitHub

A pull request for this has already been merged.

  • #1046 by @dwerner — merged
Dominant language
TypeScript
Stars
262
Forks
148
PR merge metrics
No merged PRs in 30d

Description

the indexer-agent is allowing multiple allocations to the same SG.

this SG QmQN7Xfhq2J1WhhJc2sNC9WMz99Guw9ZMbfJ8LeiFQhdq8 has two allocations when checking the indexer page for allocations.
image

when I go to SG's page I only see once the upgrade indexer because the explorer created the lists by the ID
image

this shouldn't allow to open another allocation if there's another already opened as there's a specific error for that.

I'm running the ghcr.io/graphprotocol/indexer-agent:v0.21.6-2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the allocation flow in indexer-agent with the SG ID shown in the report, then trace where a second allocation is accepted despite the existing-allocation error. Done means the same SG cannot receive another open allocation and the existing error is surfaced; check the indexer and explorer allocation views against the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.