Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

remove index hash calculation as an option #23928

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

jeffwashington
Copy link
Contributor

@jeffwashington jeffwashington commented Mar 25, 2022

Problem

Performance will not continue to scale with the index-based hash calculation. We are no longer in transition, so eliminate the cli args controlling the transition.

Summary of Changes

Fixes #

@jeffwashington jeffwashington added the CI Pull Request is ready to enter CI label Mar 25, 2022
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Mar 25, 2022
@jeffwashington jeffwashington force-pushed the mar82 branch 3 times, most recently from fc94c14 to 8a53040 Compare March 25, 2022 16:14
@jeffwashington jeffwashington added the CI Pull Request is ready to enter CI label Mar 25, 2022
@solana-grimes solana-grimes removed the CI Pull Request is ready to enter CI label Mar 25, 2022
@@ -1617,15 +1617,12 @@ pub fn main() {
.arg(
Arg::with_name("accounts_db_index_hashing")
.long("accounts-db-index-hashing")
.help("Enables the use of the index in hash calculation in \
AccountsHashVerifier/Accounts Background Service."),
.help("This is obsolete. The accounts hash is only calculated without using the index."),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.help("This is obsolete. The accounts hash is only calculated without using the index."),
.hidden(true),

.help("This is obsolete. See --accounts-db-index-hashing. \
Disables the use of the index in hash calculation in \
AccountsHashVerifier/Accounts Background Service."),
.help("This is obsolete. The accounts hash is only calculated without using the index."),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.help("This is obsolete. The accounts hash is only calculated without using the index."),
.hidden(true),

validator/src/main.rs Show resolved Hide resolved
@jeffwashington jeffwashington force-pushed the mar82 branch 3 times, most recently from 2e8be37 to 91b41f4 Compare March 25, 2022 17:31
@jeffwashington jeffwashington requested a review from t-nelson March 25, 2022 20:28
@jeffwashington jeffwashington marked this pull request as ready for review March 25, 2022 20:28
Copy link
Contributor

@t-nelson t-nelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! :shipit:

@jeffwashington jeffwashington merged commit c24de17 into solana-labs:master Mar 25, 2022
mergify bot pushed a commit that referenced this pull request Mar 28, 2022
(cherry picked from commit c24de17)

# Conflicts:
#	validator/src/main.rs
jeffwashington added a commit that referenced this pull request Mar 29, 2022
(cherry picked from commit c24de17)

# Conflicts:
#	validator/src/main.rs
jeffwashington added a commit to jeffwashington/solana that referenced this pull request Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants