You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log ERROR "Failed to retrieve metadata for topic: $topic"
54
+
return 1
55
+
fi
56
+
57
+
log DEBUG "Metadata for $topic:"
58
+
echo "$metadata"
59
+
60
+
if echo "$metadata" | grep -q 'leader: -1'; then
61
+
log ERROR "Found 'leader: -1' in topic '$topic'; topic not ready yet!"
62
+
return 1
63
+
fi
64
+
65
+
if echo "$metadata" | grep -q 'Broker: Leader not available'; then
66
+
log ERROR "Topic '$topic' not available yet"
67
+
return 1
68
+
fi
69
+
70
+
log INFO "Check topic '$topic' was successful"
71
+
return 0
72
+
}
73
+
74
+
for topic in "shared_bikes_bike_status" "shared_bikes_station_status" "shared_bikes_station_information" "water_levels_measurements" "water_levels_stations"
0 commit comments