Skip to content

hotfix(db): fix the bug of data loss in mongo#5031

Merged
317787106 merged 12 commits intotronprotocol:release_v4.7.2from
317787106:hotfix/mongo_miss
Mar 24, 2023
Merged

hotfix(db): fix the bug of data loss in mongo#5031
317787106 merged 12 commits intotronprotocol:release_v4.7.2from
317787106:hotfix/mongo_miss

Conversation

@317787106
Copy link

@317787106 317787106 commented Mar 1, 2023

What does this PR do?
Fix the bug of data loss in mongo when mongo event plugin is enabled.

Why are these changes required?
Sometimes, LATEST_SOLIDIFIED_BLOCK_NUM in LevelDB doesn't grow by just one, it might grow larger than one, but we only write the last block into mongo, therefore some blocks are not written into mongo.

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

Bobom00 referenced this pull request Mar 1, 2023
feat(db): add timeout sending of zmq
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

Successfully merging this pull request may close these issues.

3 participants