Skip to content

fix(fwss): retarget the PDP rail when the cache-miss rail is settled - #686

Draft
snadrus wants to merge 1 commit into
FilOzone:mainfrom
curiostorage:fix/retarget-settled-cache-miss
Draft

snadrus wants to merge 1 commit into
FilOzone:mainfrom
curiostorage:fix/retarget-settled-cache-miss

Conversation

@snadrus

@snadrus snadrus commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • retargetRails treats a cache-miss rail that Filecoin Pay reports as inactive or settled as already gone, and still replaces the live PDP rail.
  • The data set's cacheMissRailId is cleared because no replacement rail is opened. A cache-miss rail that is terminated but not yet settled still reverts.
  • This unblocks a payee move for a data set whose CDN cache-miss rail was fully settled while its PDP rail is still live.

Test plan

  • forge test --match-test 'testServiceProviderChanged|testStorageProviderChanged' --offline in service_contracts
  • Add or run a case where the cache-miss rail is fully settled and retargetDataSetPayee still moves the PDP rail and stores cacheMissRailId = 0
  • After this service is upgraded, retry payee retarget for a data set whose cache-miss rail already reverts RailInactiveOrSettled

Made with Cursor

getRail reverts RailInactiveOrSettled after a cache-miss rail is fully settled, which aborted the whole payee retarget. Drop that rail and still replace the live PDP rail.

Co-authored-by: Cursor <cursoragent@cursor.com>
@FilOzzy FilOzzy added this to FOC Dec 1, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Dec 1, 2026
@snadrus
snadrus marked this pull request as draft December 1, 2026 04:12
@FilOzzy FilOzzy moved this from 📌 Triage to ⌨️ In Progress in FOC Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ⌨️ In Progress

Development

Successfully merging this pull request may close these issues.

1 participant