bitshares / bitshares-core

BitShares Blockchain node and command-line wallet
https://bitshares.github.io/
Other
1.17k stars 647 forks source link

ElasticSearch plugin bulk insertion mechanism is incompatible with undo database #2493

Open abitmore opened 3 years ago

abitmore commented 3 years ago

Bug Description

When there is something wrong on bulk insertion, the first error could be caused by a block which is many blocks prior to the head block, which means the block is likely not in the undo database. In this case, when shutting down the application, the object database would be at the state of the last irreversible block, but the latest data in the ES database would be before the block which caused the error. It means there would be data missing in the ES database, and the missing data won't be re-added to ES when restarting the application.

Note: this is annoying in development and testing, but less problematic in production.

Impacts Describe which portion(s) of BitShares Core may be impacted by this bug. Please tick at least one box.

CORE TEAM TASK LIST