HDHM repair mechanism should not be enabled for snapshots #18844
Labels
Performance
Issues related to performance concerns.
Platform Data Structures
Platform Virtual Map
Platform
Tickets pertaining to the platform
Stability
Tickets pertaining to the stability of the consensus node.
Milestone
This is a follow-up for #18593. That fix introduced a mechanism to repair HDHM (index and data) for certain tables. The mechanism includes HDHM.rebuild() method, which is called from MerkleDbDataSource constructor, if the table is listed in the config. The issue here is the constructor is called not only when a state is loaded at node startup, but also on every state snapshot. No need to rebuild HDHM when taking snapshots, it's just a waste of resources and it makes snapshots longer than needed.
The text was updated successfully, but these errors were encountered: