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

should construction be less flaky? #32

Open
pro-wh opened this issue Aug 7, 2020 · 5 comments
Open

should construction be less flaky? #32

pro-wh opened this issue Aug 7, 2020 · 5 comments

Comments

@pro-wh
Copy link
Collaborator

pro-wh commented Aug 7, 2020

if you run rosetta-cli check:construction indefinitely, you get a failure like this:

[STATS] Transactions Confirmed: 127 (Created: 137, In Progress: 10, Stale: 0, Failed: 0) Addresses Created: 72
Check failed: Transaction Conflict. Please retry: unable to add block to storage e75e4f272b4cd8df8a2b897e011e4e67fdeac22177c63b8bbf7fdc9f70850ae1:302: unable to sync to 302

how bad is that?

cross reference #26 (comment)

@kostko
Copy link
Member

kostko commented Aug 7, 2020

Huh, what does the error mean?

@pro-wh
Copy link
Collaborator Author

pro-wh commented Aug 7, 2020

they do this thing where in some places the wrap errors with the style "(cause): (context)" whereas we (outside of this repo) often do it the other way around. but they also sometimes to "(context): (cause)," as seen in that "Check failed: ..."

@kostko
Copy link
Member

kostko commented Aug 7, 2020

Sure, but why is there a "transaction conflict" and why is there a "please retry" (is it a transient error?) and why is it "unable to add block to storage" and "unable to sync"?

@pro-wh
Copy link
Collaborator Author

pro-wh commented Aug 7, 2020

that "Transaction Conflict. Please retry" seems to come from badger https://github.com/dgraph-io/badger/blob/v2.0.3/errors.go#L43

@kostko
Copy link
Member

kostko commented Aug 18, 2020

This looks like an upstream bug, they should correctly handle badger tx conflicts.

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