bitshares / bitshares-core

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

Missing account history data in ElasticSearch if node is restarted while syncing #2693

Open abitmore opened 1 year ago

abitmore commented 1 year ago

Bug Description

The elasticsearch plugin does not send data in memory to ElasticSearch when the node is shutting down. If the node is still syncing (30+ seconds behind the current head block time), after it is restarted, it will resume from a potential much later block number.

Related:

https://github.com/blocksights/blocksights-open-explorer/issues/7 might be caused by this issue.

This might be the answer to https://github.com/bitshares/bitshares-core/issues/2549#issuecomment-991921614

... it is strange that the error didn't pop up on the first sync, but popped up on replay.

https://github.com/bitshares/bitshares-core/issues/2493 is also somewhat related.

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

Host Environment Please provide details about the host environment. Much of this information can be found running: witness_node --version.

CORE TEAM TASK LIST