forked from tursodatabase/libsql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bottomless: emit restored snapshot for waiters (tursodatabase#1252)
This fixes an issue where a db gets restored from bottomless and doesn't get any writes until shutdown. At this point, the current generation is the same as the restored one but the graceful shutdown process expects to wait for that generation to be uploaded which never happens because there are no writes. This change adds a snapshot generation emit call at restore time to allow graceful shutdown to happen when there are no writes without having to checkpoint and upload a new snapshot.
- Loading branch information
1 parent
1f2de7e
commit e4a87fa
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
export LIBSQL_BOTTOMLESS_AWS_ACCESS_KEY_ID=minioadmin | ||
export LIBSQL_BOTTOMLESS_AWS_DEFAULT_REGION=us-east-1 | ||
export LIBSQL_BOTTOMLESS_AWS_SECRET_ACCESS_KEY=minioadmin | ||
export LIBSQL_BOTTOMLESS_BUCKET=turso-dev | ||
export LIBSQL_BOTTOMLESS_DATABASE_ID=5d64e223-21a3-4835-9815-9613216d9859 | ||
export LIBSQL_BOTTOMLESS_ENDPOINT=http://localhost:9000 | ||
export LIBSQL_BOTTOMLESS_VERIFY_CRC=false | ||
export SQLD_BACKUP_META_STORE=true | ||
export SQLD_ENABLE_BOTTOMLESS_REPLICATION=true | ||
export SQLD_META_STORE_ACCESS_KEY_ID=minioadmin | ||
export SQLD_META_STORE_BACKUP_ID=metastore-dev | ||
export SQLD_META_STORE_BACKUP_INTERVAL_S=1 | ||
export SQLD_META_STORE_BUCKET_ENDPOINT=http://localhost:9000 | ||
export SQLD_META_STORE_BUCKET_NAME=turso-dev | ||
export SQLD_META_STORE_REGION=us-east-1 | ||
export SQLD_META_STORE_SECRET_ACCESS=minioadmin |