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

introduce errors db #714

Open
adecaro opened this issue Jul 24, 2024 · 2 comments
Open

introduce errors db #714

adecaro opened this issue Jul 24, 2024 · 2 comments

Comments

@adecaro
Copy link
Contributor

adecaro commented Jul 24, 2024

In cases when a transaction cannot be processed for some reasons, it would be good to have a database that stores information about these events.
Such a database can be then consulted by a human or an agent to resolve the issues.
Here is an example, for some reasons, a failure happened during the update of the tokens db. The transaction remains in pending state and the tokens are not made available. This can cause misalignments that can be reflected in a wrong balance.
The errors db can then be used to track these situations and resolve them timely.

Each entry in the errors db might contain:

  • unique identifier (uuid)
  • error identifier (string): the type of error
  • timestamp: when the error happened
  • message: error message
  • dump: any status information
@adecaro
Copy link
Contributor Author

adecaro commented Jul 24, 2024

@arner , what do you think?

@arner
Copy link
Contributor

arner commented Aug 1, 2024

Yes I like it. Especially (or only?) non-recoverable issues have to be persisted. A new table is a good place for that. By the way, sidestep, I wonder if we can be more granular in the status. Some 'Pending' transactions can technically still be committed (after endorsement) but some should be market 'Failed' right away.

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

2 participants