{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/1211","repository_url":"https://api.github.com/repos/influxdata/telegraf","labels_url":"https://api.github.com/repos/influxdata/telegraf/issues/1211/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/1211/comments","events_url":"https://api.github.com/repos/influxdata/telegraf/issues/1211/events","html_url":"https://github.com/influxdata/telegraf/pull/1211","id":155230640,"number":1211,"title":"fix mongodb input concurrent map read/write","user":{"login":"kols","id":450732,"avatar_url":"https://avatars.githubusercontent.com/u/450732?v=3","gravatar_id":"","url":"https://api.github.com/users/kols","html_url":"https://github.com/kols","followers_url":"https://api.github.com/users/kols/followers","following_url":"https://api.github.com/users/kols/following{/other_user}","gists_url":"https://api.github.com/users/kols/gists{/gist_id}","starred_url":"https://api.github.com/users/kols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kols/subscriptions","organizations_url":"https://api.github.com/users/kols/orgs","repos_url":"https://api.github.com/users/kols/repos","events_url":"https://api.github.com/users/kols/events{/privacy}","received_events_url":"https://api.github.com/users/kols/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-17T10:51:38Z","updated_at":"2016-05-18T18:46:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/influxdata/telegraf/pulls/1211","html_url":"https://github.com/influxdata/telegraf/pull/1211","diff_url":"https://github.com/influxdata/telegraf/pull/1211.diff","patch_url":"https://github.com/influxdata/telegraf/pull/1211.patch"},"body":"fix a crash caused by concurrent map read/write\r\n\r\n```\r\n2016/05/17 17:22:59 Agent Config: Interval:10s, Debug:false, Quiet:false, Hostname:\"redeye01\", Flush Interval:10s \r\nfatal error: concurrent map read and map write\r\nfatal error: concurrent map read and map write\r\n\r\ngoroutine 98 [running]:\r\nruntime.throw(0x136a720, 0x21)\r\n        /usr/local/go/src/runtime/panic.go:547 +0x90 fp=0xc8205d3ec8 sp=0xc8205d3eb0\r\nruntime.mapaccess2_faststr(0xe74ec0, 0xc8201fe6c0, 0xc8200f83e1, 0x10, 0x0, 0x0)\r\n        /usr/local/go/src/runtime/hashmap_fast.go:307 +0x5b fp=0xc8205d3f28 sp=0xc8205d3ec8\r\ngithub.com/influxdata/telegraf/plugins/inputs/mongodb.(*MongoDB).Gather.func1(0xc8200e3620, 0xc8200e3630, 0xc82021ec80, 0xc820208880, 0x7fd0b2c55878, 0xc82021f2c0)\r\n        /root/go/src/github.com/influxdata/telegraf/plugins/inputs/mongodb/mongodb.go:74 +0x93 fp=0xc8205d3f90 sp=0xc8205d3f28\r\nruntime.goexit()\r\n        /usr/local/go/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc8205d3f98 sp=0xc8205d3f90\r\ncreated by github.com/influxdata/telegraf/plugins/inputs/mongodb.(*MongoDB).Gather\r\n        /root/go/src/github.com/influxdata/telegraf/plugins/inputs/mongodb/mongodb.go:75 +0x5c1\r\n```"},"comment":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/comments/220121474","html_url":"https://github.com/influxdata/telegraf/pull/1211#issuecomment-220121474","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/1211","id":220121474,"user":{"login":"sparrc","id":7155926,"avatar_url":"https://avatars.githubusercontent.com/u/7155926?v=3","gravatar_id":"","url":"https://api.github.com/users/sparrc","html_url":"https://github.com/sparrc","followers_url":"https://api.github.com/users/sparrc/followers","following_url":"https://api.github.com/users/sparrc/following{/other_user}","gists_url":"https://api.github.com/users/sparrc/gists{/gist_id}","starred_url":"https://api.github.com/users/sparrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparrc/subscriptions","organizations_url":"https://api.github.com/users/sparrc/orgs","repos_url":"https://api.github.com/users/sparrc/repos","events_url":"https://api.github.com/users/sparrc/events{/privacy}","received_events_url":"https://api.github.com/users/sparrc/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T18:46:18Z","updated_at":"2016-05-18T18:46:18Z","body":"thx @kols "}}