Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

forc index deploy --replace-indexer not working as expected #1498

@ra0x3

Description

@ra0x3
  • Please see this Slack thread for context
    • We confirmed that the error happened on http://beta-4.fuel.network as well
      • This means that --replace-indexer is not actually replacing the indexer with a new indexer. How do I know?
        • First I removed the old indexer with forc index remove
        • Then I redeployed the explorer starting at block 7,000,000 and it works - no deserialization error
  • This all leads me to believe that for whatever reason - --replace-indexer is not actually replacing the indexer properly
  • I was not able to reproduce this locally - the explorer worked from block 7,000,000 with no issue
    • However, locally I did not try to use --replace-indexer
    • If you really wanted to repro you could:
      • Deploy an indexer using the last v0.23 release we had -- locally, on beta-4, starting from block 7,000,000
      • Let it index a few thousand blocks
      • Redeploy that indexer with v0.24.1 (without stopping the other one) and using --replace-data)
  • Expected results
    • I would expect that the old indexer bytes get removed, and the new indexer bytes get registered - and the indexer executor task gets re-created, and indexing continues smoothly
      • The fact that I had to forc index remove before forc index deploy would work tells me the old indexer bytes must not have been removed 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions