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

Content may never get advertised on failure to persist #685

Open
masih opened this issue Mar 1, 2022 · 0 comments
Open

Content may never get advertised on failure to persist #685

masih opened this issue Mar 1, 2022 · 0 comments

Comments

@masih
Copy link
Member

masih commented Mar 1, 2022

If the error happens because the advertisement failed to persist then that content will never get advertised.
Looking at the code, such errors can happen before call to NotifyPut e.g. in metadata encoding on markets side or inside the provider before persistence.

Note, this failure scenario is different from a case where the index provider fails to announce the new advertisement. Since if an indexing advertisement is added to the chain of advertisements as long as one announcement is successful the un-announced advertisements are indexed.

Further, the announce-all functionality will not be helpful here since it is intended to be a one-off operation run after migration and not something a SP is expected to execute regularly.

Two things to consider:

  • expose error types on index-provider so that on the markets side we can differentiate critical persistence errors from announcement errors. If latter, the code execution can safely log and ignore the error.
  • document what should happen if advertisement creation fails but deal succeeds. Right now this will result in content never getting advertised.

Originally posted by @masih in #673 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant