{"action":"closed","issue":{"url":"https://api.github.com/repos/projectriff/http-gateway/issues/35","repository_url":"https://api.github.com/repos/projectriff/http-gateway","labels_url":"https://api.github.com/repos/projectriff/http-gateway/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/projectriff/http-gateway/issues/35/comments","events_url":"https://api.github.com/repos/projectriff/http-gateway/issues/35/events","html_url":"https://github.com/projectriff/http-gateway/issues/35","id":298324464,"number":35,"title":"Crash loop until Kafka is available","user":{"login":"glyn","id":94953,"avatar_url":"https://avatars3.githubusercontent.com/u/94953?v=4","gravatar_id":"","url":"https://api.github.com/users/glyn","html_url":"https://github.com/glyn","followers_url":"https://api.github.com/users/glyn/followers","following_url":"https://api.github.com/users/glyn/following{/other_user}","gists_url":"https://api.github.com/users/glyn/gists{/gist_id}","starred_url":"https://api.github.com/users/glyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyn/subscriptions","organizations_url":"https://api.github.com/users/glyn/orgs","repos_url":"https://api.github.com/users/glyn/repos","events_url":"https://api.github.com/users/glyn/events{/privacy}","received_events_url":"https://api.github.com/users/glyn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-19T15:55:11Z","updated_at":"2018-03-01T10:49:09Z","closed_at":"2018-03-01T10:49:09Z","author_association":"OWNER","body":"Following the riff README on a fresh minikube, I noticed that the http-gateway enters a crash loop until Kafka is available. After 5 restarts it successfully starts. The logs from the failed starts are:\r\n```\r\npanic: kafka: client has run out of available brokers to talk to (Is your cluster reachable?)\r\n\r\ngoroutine 1 [running]:\r\nmain.main()\r\n\t/go/src/github.com/projectriff/http-gateway/cmd/http-gateway.go:37 +0x3fe\r\n\r\n```\r\n\r\nIt would be better if this behaviour was not visible to users.\r\n\r\n@trisberg suggested adding an init-container to poll for Kafka being available.\r\n@ericbottard wondered if the timeout in sarama could be tuned."}}
{"actor":{"display_login":"ericbottard"}}