-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GRPC entrypoint to download a blob (#2044)
## Motivation We need to be able to download blobs directly from the Proxy as part of the user blobs work. Fixes #2028 ## Proposal This PR does a few things: * Adds a storage connection to the Proxy * Adds an entrypoint for downloading a blob given a blob ID ## Test Plan WIP
- Loading branch information
Andre da Silva
authored
May 28, 2024
1 parent
40d0dad
commit 7eaa917
Showing
22 changed files
with
466 additions
and
92 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,19 @@ | ||
#!/bin/sh | ||
|
||
while true; do | ||
./linera-db check_existence --storage "scylladb:tcp:scylla-client.scylla.svc.cluster.local:9042" | ||
status=$? | ||
|
||
if [ $status -eq 0 ]; then | ||
echo "Database already exists, no need to initialize." | ||
exit 0 | ||
else | ||
# We rely on the shards to initialize the database, so just wait here | ||
if [ $status -eq 1 ]; then | ||
echo "Database does not exist, retrying in 5 seconds..." | ||
else | ||
echo "An unexpected error occurred (status: $status), retrying in 5 seconds..." | ||
fi | ||
sleep 5 | ||
fi | ||
done |
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
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
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
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
Oops, something went wrong.