piece_cleanup stalls when the oldest deals are in dead data sets

Open
#764 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
blockchain, typescript

Research direction

Start with PieceCleanupService.deletePiece, where createContext runs outside the try/catch that handles already-deleted pieces, and with DatasetLivenessService.probeFwssDataSetLive, which only matches "does not exist or is not live". Make DataSetNotLive mark the deal cleaned up and let the run continue, while other createContext failures still count as failed. Done when a test with a reverting data set shows the run moving past it to newer candidates and the liveness probe returns false for that error.

Written by the indexing model from the issue text.

Description

piece_cleanup has made almost no progress for Angelo (provider 13, mainnet) since at least 2026-10-11. Each daily run fails 50 deletes and stops with piece_cleanup_no_progress, so newer, deletable pieces are never reached.

The 50 oldest candidates are in data sets 843 (42 deals), 857, 965, 993, 1010, 1067, 1074, 1078 and 1082. All nine return dataSetLive = false, so validateDataSet reverts during createContext:

The contract function "getDataSetListener" reverted.
Error: DataSetNotLive()

PieceCleanupService.deletePiece calls createContext outside the try/catch that handles already-deleted pieces. These deals stay cleaned_up = false and remain the oldest candidates on every run.

Done when:

  • A deal whose data set reverts with DataSetNotLive is marked cleaned up, and the run moves on to newer candidates. Other createContext failures still count as failed.
  • DatasetLivenessService.probeFwssDataSetLive returns false for DataSetNotLive. It currently matches only "does not exist or is not live", so this revert is rethrown.
Dominant language
TypeScript
Stars
2
Forks
9
Avg merge
5d 6h
Merged PRs (30d)
9

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from FilOzone/dealbot

All issues in FilOzone/dealbot

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.