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

Shorten failure reason stored #454

Merged
merged 1 commit into from Aug 18, 2022
Merged

Shorten failure reason stored #454

merged 1 commit into from Aug 18, 2022

Conversation

hopeyen
Copy link
Contributor

@hopeyen hopeyen commented Aug 8, 2022

Resolves #444

Currently the failure reason column gets populated by the error log message if a transaction fails. These log messages were designed to be logged to stdout not to be stored in a DB column. Occasionally the messages seem to hit the limit SequelizeDatabaseError: value too long for type character varying(1000).

We update the failure reasons to be shorter strings. For the actions that failed due to an existing IndexerError, we simply store the error code as IE0XX so people can look up the reasons and solutions if provided. We also added more variations of IndexerError to cover the failure cases here with the action manager.

@hopeyen hopeyen force-pushed the hope/failure-reason branch 3 times, most recently from f46fb69 to 5439ed1 Compare August 11, 2022 01:02
@hopeyen hopeyen requested a review from fordN August 11, 2022 01:36
@fordN fordN added indexer-common enhancement New feature or request labels Aug 11, 2022
@hopeyen hopeyen changed the title indexer-common: shorten failure reason stored Shorten failure reason stored Aug 11, 2022
docs/errors.md Outdated Show resolved Hide resolved
docs/errors.md Outdated Show resolved Hide resolved
docs/errors.md Outdated Show resolved Hide resolved
docs/errors.md Outdated Show resolved Hide resolved
docs/errors.md Outdated Show resolved Hide resolved
docs/errors.md Outdated Show resolved Hide resolved
docs/errors.md Outdated Show resolved Hide resolved
docs/errors.md Outdated Show resolved Hide resolved
Copy link
Contributor

@fordN fordN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@hopeyen hopeyen merged commit 6837ed7 into main Aug 18, 2022
@hopeyen hopeyen deleted the hope/failure-reason branch August 18, 2022 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request indexer-common
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Action queue improvements: Improve failure reason storage
2 participants