{"action":"created","issue":{"url":"https://api.github.com/repos/eventuate-local/eventuate-local/issues/10","repository_url":"https://api.github.com/repos/eventuate-local/eventuate-local","labels_url":"https://api.github.com/repos/eventuate-local/eventuate-local/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/eventuate-local/eventuate-local/issues/10/comments","events_url":"https://api.github.com/repos/eventuate-local/eventuate-local/issues/10/events","html_url":"https://github.com/eventuate-local/eventuate-local/issues/10","id":238093958,"number":10,"title":"cdc-service stops sending events to kafka after temporal loss of connection to mysql","user":{"login":"KarolisL","id":571022,"avatar_url":"https://avatars0.githubusercontent.com/u/571022?v=3","gravatar_id":"","url":"https://api.github.com/users/KarolisL","html_url":"https://github.com/KarolisL","followers_url":"https://api.github.com/users/KarolisL/followers","following_url":"https://api.github.com/users/KarolisL/following{/other_user}","gists_url":"https://api.github.com/users/KarolisL/gists{/gist_id}","starred_url":"https://api.github.com/users/KarolisL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KarolisL/subscriptions","organizations_url":"https://api.github.com/users/KarolisL/orgs","repos_url":"https://api.github.com/users/KarolisL/repos","events_url":"https://api.github.com/users/KarolisL/events{/privacy}","received_events_url":"https://api.github.com/users/KarolisL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-23T09:46:44Z","updated_at":"2017-06-24T23:09:28Z","closed_at":null,"body":"I've ran into an issue when running cdc-service on kubernetes cluster: I've restarted mysql, so connection dropped and then became available after a while.\r\n\r\nAfter restarting CDC, the events were published to kafka and received by event handlers.\r\n\r\nSteps to reproduce:\r\n* Stop mysql\r\n* Wait about 10 sec\r\n* Start mysql\r\n\r\nExpected behaviour:\r\nNew events gets published\r\n\r\nActual behaviour:\r\nEvents doesn't get published\r\n\r\nWorkaround:\r\nRestart `cdc-service` after mysql becomes available\r\n\r\n\r\nIf this is not easily solvable, a simple HTTP endpoint for quering connection health would help -- kubernetes would restart CDC when connection is dropped.\r\n\r\n\r\nLog: \r\n[cdc-log-gh.txt](https://github.com/eventuate-local/eventuate-local/files/1097628/cdc-log-gh.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/eventuate-local/eventuate-local/issues/comments/310871149","html_url":"https://github.com/eventuate-local/eventuate-local/issues/10#issuecomment-310871149","issue_url":"https://api.github.com/repos/eventuate-local/eventuate-local/issues/10","id":310871149,"user":{"login":"cer","id":246234,"avatar_url":"https://avatars1.githubusercontent.com/u/246234?v=3","gravatar_id":"","url":"https://api.github.com/users/cer","html_url":"https://github.com/cer","followers_url":"https://api.github.com/users/cer/followers","following_url":"https://api.github.com/users/cer/following{/other_user}","gists_url":"https://api.github.com/users/cer/gists{/gist_id}","starred_url":"https://api.github.com/users/cer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cer/subscriptions","organizations_url":"https://api.github.com/users/cer/orgs","repos_url":"https://api.github.com/users/cer/repos","events_url":"https://api.github.com/users/cer/events{/privacy}","received_events_url":"https://api.github.com/users/cer/received_events","type":"User","site_admin":false},"created_at":"2017-06-24T23:09:28Z","updated_at":"2017-06-24T23:09:28Z","body":"This [commit](https://github.com/eventuate-local/eventuate-local/commit/fda7dd1ff10e7d33dd31d855f4657912cc8efa16) should address that problem.\r\n\r\nIt adds a HealthIndicator so GET /health will report on the status but more importantly it loops attempting to reconnect to MySQL (and Kafka).\r\n\r\nSee the [test scenario](https://github.com/eventuate-local/eventuate-local/blob/master/scripts/build-and-test-all-cdc.sh).\r\n\r\nI've released the 0.12.6 libraries and the Docker images are in the build queue.\r\n"}}
{"actor":{"display_login":"cer"}}