Skip to content

Missing reprovider queue purge on Reprovider.Strategy change #10832

Closed as duplicate of#10829
@lidel

Description

@lidel

Version

0.35

Description

@hsanjuan noticed:

the Problem is I had [Reprovider.Strategy] "all". It did not finished providing. Stored the queue on disk. Changing the strategy keeps providing what was left.

This feels like a bug. People who cant reprovide with Reprovider.Strategy=all will not be able to benefit from alternative strategy if the node already populated the queue with everything, and there is no way to reset it.

Fix ideas

  • Add ipfs routing reprovide reset and ipfs routing reprovide reset for manual purging of queues
  • Add code that detects Reprovider.Strategy change across restarts, and purge the reprovider queue once detected

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions