{"action":"created","issue":{"url":"https://api.github.com/repos/danielwegener/logback-kafka-appender/issues/60","repository_url":"https://api.github.com/repos/danielwegener/logback-kafka-appender","labels_url":"https://api.github.com/repos/danielwegener/logback-kafka-appender/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/danielwegener/logback-kafka-appender/issues/60/comments","events_url":"https://api.github.com/repos/danielwegener/logback-kafka-appender/issues/60/events","html_url":"https://github.com/danielwegener/logback-kafka-appender/issues/60","id":292238688,"node_id":"MDU6SXNzdWUyOTIyMzg2ODg=","number":60,"title":"Endless Kafka stacktraces when bad producer config","user":{"login":"gquintana","id":755587,"node_id":"MDQ6VXNlcjc1NTU4Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/755587?v=4","gravatar_id":"","url":"https://api.github.com/users/gquintana","html_url":"https://github.com/gquintana","followers_url":"https://api.github.com/users/gquintana/followers","following_url":"https://api.github.com/users/gquintana/following{/other_user}","gists_url":"https://api.github.com/users/gquintana/gists{/gist_id}","starred_url":"https://api.github.com/users/gquintana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gquintana/subscriptions","organizations_url":"https://api.github.com/users/gquintana/orgs","repos_url":"https://api.github.com/users/gquintana/repos","events_url":"https://api.github.com/users/gquintana/events{/privacy}","received_events_url":"https://api.github.com/users/gquintana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-28T21:09:19Z","updated_at":"2018-10-01T20:01:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When the producer config is wrong, the createProducer raises an exception.\r\nAs this method is called by the LazyInitializer when a log arrives, each logs tries to create a producer, it fails and a stack trace is logged.\r\nPrior to 0.2-RC1, the producer config check may have mitigated this issue.\r\n\r\nSome solutions I can see:\r\n- Let the producer to be created when the KafkaAppender starts (eager initialization), this would bring a _fail fast_ behaviour but may slow down startup.\r\n- Add some circuit breaker behaviour in the LazyInitializer, and allow only one producer creation."},"comment":{"url":"https://api.github.com/repos/danielwegener/logback-kafka-appender/issues/comments/426043030","html_url":"https://github.com/danielwegener/logback-kafka-appender/issues/60#issuecomment-426043030","issue_url":"https://api.github.com/repos/danielwegener/logback-kafka-appender/issues/60","id":426043030,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjA0MzAzMA==","user":{"login":"gsreddy99","id":42583006,"node_id":"MDQ6VXNlcjQyNTgzMDA2","avatar_url":"https://avatars1.githubusercontent.com/u/42583006?v=4","gravatar_id":"","url":"https://api.github.com/users/gsreddy99","html_url":"https://github.com/gsreddy99","followers_url":"https://api.github.com/users/gsreddy99/followers","following_url":"https://api.github.com/users/gsreddy99/following{/other_user}","gists_url":"https://api.github.com/users/gsreddy99/gists{/gist_id}","starred_url":"https://api.github.com/users/gsreddy99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsreddy99/subscriptions","organizations_url":"https://api.github.com/users/gsreddy99/orgs","repos_url":"https://api.github.com/users/gsreddy99/repos","events_url":"https://api.github.com/users/gsreddy99/events{/privacy}","received_events_url":"https://api.github.com/users/gsreddy99/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T20:01:29Z","updated_at":"2018-10-01T20:01:29Z","author_association":"NONE","body":"I also see endless stacktrace with bad producer config. Is there a way to restrict the no of retrials to a particular number?\r\nI tried the below config but has no affect on endless stacktrace:\r\n        <producerConfig>reconnect.backoff.ms=4000</producerConfig>\r\n        <producerConfig>request.timeout.ms=4000</producerConfig>\r\n        <producerConfig>retry.backoff.ms=1000</producerConfig>\r\nI did add fallback appender."}}
{"actor":{"display_login":"gsreddy99"}}