Closed lzpap closed 2 years ago
Verify you are calling Shutdown()
on your ObjectStorage instances correctly when stopping the node
@alexsporn Shutdown()
is called, and interestingly the issue is more apparent on my local machine. It is harder to reproduce on my VPS. Maybe something related to how fast your disk is?
@lzpap I have never seen this in hornet so far. Should we close that issue for now?
Bug description
When shutting the the object storage (from goshimmer), something might not get properly persisted in the database. Upon restart, the node has a different number of messages in its storage then before restart.
Steps To reproduce the bug
metrics.local.db
in the config file totrue
.tangle_solid_message_count
exported metrics. (Or the printed values to console from here )tangle_solid_message_count
exported metrics should have a different number than before the restart.Expected behaviour
(Solid) message count in the object storage stays the same after restart.
Actual behaviour
(Solid) message count in the object storage randomly varies, depending on what machine you are running on. It might even be 0, or a greater value.
Note
According to @luca-moser , the root of the problem might be in the object storage, specifically, the batchwriter.