-
Notifications
You must be signed in to change notification settings - Fork 973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require BucketsDB flag in config file #4202
Comments
When |
Adding a new, mandatory configurable variable with no default value is a breaking change. If this is going to be going into Could we do any of the following to avoid this:
|
We do need this flag to be required. The issue is the initial migration to BucketListDB drops many tables that are very expensive to recreate. Some devs in the ecosystem still rely on these tables, and we're afraid if we have some sort of default flag, operators will upgrade their package and wipe their tables before noticing, so we want to have a required flag that crashes core before dropping the tables if not set. We might be able to strike a middle ground. How about in 21.0, we make it such that either |
🙏 Indeed, this would be great. We can update Horizon/RPC to send the new flag in our next releases |
Great, we'll go this route then. |
To start the transition to BucketListDB, we should change the
EXPERIMENTAL_BUCKETLIST_DB
flag to a required, non-experimental flagUSE_BUCKETLIST_DB
. If this flag is not set in the config, we should crash on startup. We should crash instead of defaulting toUSE_BUCKETLIST_DB = true
because migrating from SQL to BucketList drops most of the SQL tables. If a operator is relying on Core's SQL database, this automatic migration could be detrimental. Instead, we should strongly persuade validators to setUSE_BUCKETLIST_DB = true
and print deprecation warning ifUSE_BUCKETLIST_DB = false
, but should not automatically migrate.The text was updated successfully, but these errors were encountered: