Skip to content

Commit 0a4b2ad

Browse files
authored
fix(install): Check that all ingest topics exist (#686)
Probably this is not needed anymore after getsentry/sentry#20984 is merged, but just in case
1 parent 3408e3d commit 0a4b2ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ echo ""
250250
EXISTING_KAFKA_TOPICS=$($dcr kafka kafka-topics --list --bootstrap-server kafka:9092 2>/dev/null)
251251
NEEDED_KAFKA_TOPICS="ingest-attachments ingest-transactions ingest-events"
252252
for topic in $NEEDED_KAFKA_TOPICS; do
253-
if ! echo "$EXISTING_KAFKA_TOPICS" | grep -wq ingest-attachments; then
253+
if ! echo "$EXISTING_KAFKA_TOPICS" | grep -wq $topic; then
254254
echo "Creating additional Kafka topics..."
255255
$dcr kafka kafka-topics --create --topic $topic --bootstrap-server kafka:9092
256256
echo ""

0 commit comments

Comments
 (0)