2
0

fix(install): Remove unnecessary infinite loop from snuba bootst… (#354)

With getsentry/snuba#709 merged, we no longer need to randomly try forever creating Kafka topics, which were a prerequisite for creating Clickhouse tables. This patch also removes the preceding (and obsolete) `docker-compose up` statement which was used to "speed up" the `snuba bootstrap` command in the hopes to fix it.
This commit is contained in:
Burak Yigit Kaya 2020-01-21 22:56:45 +03:00 committed by GitHub
parent b8405fca76
commit 1292a125b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,13 +104,10 @@ echo ""
echo "Docker images built." echo "Docker images built."
echo "Bootstrapping Snuba..." echo "Bootstrapping Snuba..."
$dc up -d kafka redis clickhouse
until $($dcr clickhouse clickhouse-client -h clickhouse --query="SHOW TABLES;" | grep -q sentry_local); do
# `bootstrap` is for fresh installs, and `migrate` is for existing installs # `bootstrap` is for fresh installs, and `migrate` is for existing installs
# Running them both for both cases is harmless so we blindly run them # Running them both for both cases is harmless so we blindly run them
$dcr snuba-api bootstrap --force || true; $dcr snuba-api bootstrap --force
$dcr snuba-api migrate || true; $dcr snuba-api migrate
done;
echo "" echo ""
# Very naively check whether there's an existing sentry-postgres volume and the PG version in it # Very naively check whether there's an existing sentry-postgres volume and the PG version in it