Hi All,
I am using telegraf to monitor NTP clock but in One of my environment I am getting below below error : fatal error: concurrent map writes
Below is my stack track. can anyone please help.
fatal error: concurrent map writes
goroutine 13493 [running]:
runtime.throw(0x15ce8e0, 0x15)
/usr/local/go/src/runtime/panic.go:547 +0x90 fp=0xc820f93818 sp=0xc820f93800
runtime.mapassign1(0x10559e0, 0xc82022c690, 0xc820f93cf0, 0xc820f93978)
/usr/local/go/src/runtime/hashmap.go:445 +0xb1 fp=0xc820f938c0 sp=0xc820f93818
github.com/influxdata/telegraf/plugins/inputs/ntpq.(*NTPQ).Gather(0xc8202cf950, 0x7f6b8057c788, 0xc8210d2300, 0x0, 0x0)
/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/ntpq/ntpq.go:93 +0x572 fp=0xc820f93f20 sp=0xc820f938c0
github.com/influxdata/telegraf/agent.gatherWithTimeout.func1(0xc820e9d8c0, 0xc8203901b0, 0xc8210d2300)
goroutine 13260 [select]:
net/http.(*persistConn).writeLoop(0xc8214620d0)
/usr/local/go/src/net/http/transport.go:1277 +0x472
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:858 +0x10cb