v0.98.0 #7733
steven-sheehy
started this conversation in
Releases
v0.98.0
#7733
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release saw the implementation of HIP-844 Handling and externalization improvements for account nonce updates. This HIP resolve issues where the consensus nodes and the mirror nodes are account nonces are out of sync. The consensus nodes now sends the mirror node the up-to-date account nonce instead of the mirror node attempting to increment the nonce based upon its prior state.
There were two important changes to the database that helped to reduce its size substantially. The
topic_message
table primary key index was dropped in favor of relying upon a similar index on thetransaction
table. This simple change shaved 800 GiB off the mainnet database. The staking reward calculation performance was improved to only write accounts that elected to receive rewards. This reduces the staking reward calculation runtime from 47 minutes down to less than 2 minutes. A migration also removes the existing staking rows that did not have a staking reward election, shrinking those tables by 155 GiB. Note that to realize these disks savings mirror node operators will need to manually perform a full vacuum on theentity_stake
andentity_stake_history
tables. So in total the size of the mirror node database was reduced by almost 1 TB this release!There was quite a bit of technical debt paid down in this release. We've removed support for the event file format from the importer. This format was never fully implemented in the mirror node, didn't support the latest version, and no user interest in this data was expressed during its 4 years of existence. The acceptance tests were refactored to use the OpenAPI generated models, ensuring we dogfood our own API specification. The brittle
MockPool
tests were removed in favor of additional coverage in other, easier to maintain tests. The REST API tests now uses the correct read only user and common database setup that the other modules use. Finally, the unusedRestoreClientIntegrationTest
and associated test images were removed.Our Citus deployment saw a number of improvements. Performance was optimized for hash insertions by reducing the shard count for hash tables. Entity upserts saw improvement by increasing the number of CPU resources to the database. Finally, the transactions list and accounts by ID endpoints saw their read performance improved for Citus.
Upgrading
There is a long running migration in this release to consider when deploying. The
V1.93.0__update_entity_stake.sql
is expected to take 18 minutes against mainnet database with a complete transaction history. As noted previously, it's also recommended to run a full vacuum on theentity_stake
andentity_stake_history
tables after this migration.Enhancements
Bug Fixes
Dependency Upgrades
@aws-sdk
/client-s3 from 3.501.0 to 3.504.0 in /hedera-mirror-rest #7675@aws-sdk
/client-s3 from 3.496.0 to 3.501.0 in /hedera-mirror-rest #7634Contributors
We'd like to thank all the contributors who worked on this release!
This discussion was created from the release v0.98.0.
Beta Was this translation helpful? Give feedback.
All reactions