-
Notifications
You must be signed in to change notification settings - Fork 649
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
Merge release to master for 3.1.0 #1761
Conversation
updates on 12/20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
The snapshot has a lot of differences. I am attempting to sort through them. https://gist.github.com/jmjatlanta/8fb91043d7ce1b30b718c93e28754258 The first 290 lines are due to the addition of fail_reason, which is fine. The rest I am attempting to diagnose the cause. |
@jmjatlanta what block numbers did you use for the snapshots? Both fully replayed, or one of them was generated while syncing? That may be the cause of the differences, because |
That's probably the issue. I picked a very recent block, which probably did some syncing on the first run. I am re-running the first run. |
Unfortunately, while improved, the diff still contains many transactions that are different. the first ~290 lines are the fail_reason, but the rest are disturbing. Researching... Here is the diff: https://gist.github.com/jmjatlanta/14c0376c2c0b7b2c9e2a32b7a782918f |
|
I am not sure what you mean. Would you provide more information? I am using the same database on each run. I am running the snapshot of the |
It looks to me as if many (but not all) simply have a different database id. For instance, here are the first few lines of the file (excluding the fail_reason lines), matched by their data, not their id...
This makes me think that the id fix that was done is the reason for some of the differences, but not all. Also, all the expiration dates for all differences are 5/14 or 5/15, so all expiring yesterday or today, which is curious. |
Different IDs means the order they got inserted were different, or different number of transactions inserted before them then got removed. I didn't find why if both were replayed from the same data directory (aka same last_block_num thus same block number that enabled undo_do). Perhaps should disable p2p connection when replaying to avoid impacts due to syncing after finished replay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and snapshot comparison complete.
About the differences on bitshares-core/libraries/chain/db_management.cpp Lines 94 to 95 in 80a9f9f
If we start witness_node with Alternatively, if we take snapshots on a block older than |
See #1745 for release notes.