Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry PSD with valid deals if the message failed #7368

Closed
6 of 15 tasks
jennijuju opened this issue Sep 21, 2021 · 4 comments
Closed
6 of 15 tasks

Retry PSD with valid deals if the message failed #7368

jennijuju opened this issue Sep 21, 2021 · 4 comments
Assignees
Labels
dif/medium Prior development experience with lotus is likely helpful effort/days Effort: Multiple Days P1 P1: Must be resolved team/ignite Issues and PRs being tracked by Team Ignite at Protocol Labs tribute
Milestone

Comments

@jennijuju
Copy link
Member

Checklist

  • This is not a new feature or an enhancement to the Filecoin protocol. If it is, please open an FIP issue.
  • This is not a new feature request. If it is, please file a feature request instead.
  • This is not brainstorming ideas. If you have an idea you'd like to discuss, please open a new discussion on the lotus forum and select the category as Ideas.
  • I have a specific, actionable, and well motivated improvement to propose.

Lotus component

  • lotus daemon - chain sync
  • lotus miner - mining and block production
  • lotus miner/worker - sealing
  • lotus miner - proving(WindowPoSt)
  • lotus miner/market - storage deal
  • lotus miner/market - retrieval deal
  • lotus miner/market - data transfer
  • lotus client
  • lotus JSON-RPC API
  • lotus message management (mpool)
  • Other

Improvement Suggestion

Currently, if a PSD is failed, SP cannot re-publish the valid deals in a new msg - however, we should do that to improve deal-making experience for both sides.

@jennijuju jennijuju added effort/days Effort: Multiple Days dif/medium Prior development experience with lotus is likely helpful P1 P1: Must be resolved tribute labels Sep 21, 2021
@jennijuju jennijuju added this to the v1.13.1 milestone Sep 21, 2021
@jennijuju jennijuju modified the milestones: v1.13.1, v1.13.0 Sep 21, 2021
@jennijuju jennijuju added the team/ignite Issues and PRs being tracked by Team Ignite at Protocol Labs label Sep 24, 2021
@nonsense
Copy link
Member

@jennijuju could you clarify this ticket? Is this about retrying deals that were batched together with a failing deal?

AFAICT when we have 1 deal in a PSD message, and it fails, it is not a transient error, and there really is nothing to retry. If we have N deals and a PSD message fails because of 1 bad deal, then it makes sense to still retry the N-1 deals, but this obviously is not how Lotus works today, and something worth improving. WDYT?

@jennijuju
Copy link
Member Author

@jennijuju could you clarify this ticket? Is this about retrying deals that were batched together with a failing deal?

AFAICT when we have 1 deal in a PSD message, and it fails, it is not a transient error, and there really is nothing to retry. If we have N deals and a PSD message fails because of 1 bad deal, then it makes sense to still retry the N-1 deals, but this obviously is not how Lotus works today, and something worth improving. WDYT?

This is exactly for the later case!

@nonsense
Copy link
Member

@jennijuju sorry, but having looked at the code, this is still confusing.

We already validate and publish only deals that are valid, done at #7234 . So I assume this ticket is about retrying PSD after it has actually failed, which means that it passed simulation, only valid deals were included because of simulation, but even so - the PSD failed for some reason.

I am trying to understand why a PSD would fail after simulation, before trying to address this.

@nonsense
Copy link
Member

Having spoken to Lotus folks, we decided to close this one in favour of #7102

Basically it is not obvious when an error is transient and when we need to retry, so for the time being having a manual retry mechanism is a good first step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dif/medium Prior development experience with lotus is likely helpful effort/days Effort: Multiple Days P1 P1: Must be resolved team/ignite Issues and PRs being tracked by Team Ignite at Protocol Labs tribute
Projects
None yet
Development

No branches or pull requests

2 participants