Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-4096

Telegraf dcos_statsd input plugin fails go race detector

    Details

    • Sprint:
      Observability Team Sprint 32, Observability Team Sprint 33
    • Story Points:
      3

      Description

      The test-race-dcos makefile target fails with the following error:

      go test -race ./plugins/inputs/dcos_statsd/
      2018/09/12 02:50:34 I! No containers_dir was set; state will not persist
      2018/09/12 02:50:34 I! dcos_statsd API server listening on :39485
      2018/09/12 02:50:34 GET /containers ListContainers 684.628µs
      2018/09/12 02:50:34 I! dcos_statsd API server closed: http: Server closed
      2018/09/12 02:50:34 I! Started the statsd service on :45017
      2018/09/12 02:50:34 I! Added container abc123
      2018/09/12 02:50:34 I! Loaded container abc123 from disk
      2018/09/12 02:50:34 I! dcos_statsd API server listening on :45222
      2018/09/12 02:50:34 I! Statsd UDP listener listening on:  [::]:45017
      2018/09/12 02:50:34 GET /containers ListContainers 149.889µs
      2018/09/12 02:50:34 I! Stopping the statsd service
      2018/09/12 02:50:34 I! dcos_statsd API server closed: http: Server closed
      2018/09/12 02:50:34 I! Stopped Statsd listener service on  :45017
      2018/09/12 02:50:34 I! No containers_dir was set; state will not persist
      2018/09/12 02:50:34 I! dcos_statsd API server listening on :44735
      2018/09/12 02:50:34 I! dcos_statsd API server closed: http: Server closed
      2018/09/12 02:50:34 I! No containers_dir was set; state will not persist
      2018/09/12 02:50:34 I! dcos_statsd API server listening on :39113
      2018/09/12 02:50:34 I! Statsd UDP listener listening on:  [::]:42922
      2018/09/12 02:50:34 I! Started the statsd service on :42922
      2018/09/12 02:50:34 I! Added container abc123
      2018/09/12 02:50:34 POST /container AddContainer 2.662492ms
      2018/09/12 02:50:34 I! Stopping the statsd service
      2018/09/12 02:50:34 I! dcos_statsd API server closed: http: Server closed
      2018/09/12 02:50:34 I! Stopped Statsd listener service on  :42922
      2018/09/12 02:50:34 I! dcos_statsd API server listening on :34889
      2018/09/12 02:50:34 I! Started the statsd service on :0
      2018/09/12 02:50:34 I! Added container abc123
      ==================
      WARNING: DATA RACE
      
      <snip>
      
      --- FAIL: TestGather (0.03s)
      	dcos_statsd_test.go:117: A container on a random port
      	dcos_statsd_test.go:126: A container on a known port
      	dcos_statsd_test.go:136: A container with an ID that already exists
      	dcos_statsd_test.go:145: A container on an occupied port
      	dcos_statsd_test.go:152: Sending statsd to containers
      	dcos_statsd_test.go:172: Containers are persisted to disk
      	dcos_statsd_test.go:177: Removing a container
      	testing.go:730: race detected during execution of test
      FAIL
      FAIL	github.com/influxdata/telegraf/plugins/inputs/dcos_statsd	0.104s
      Makefile:81: recipe for target 'test-race-dcos' failed
      

        Attachments

          Activity

            People

            • Assignee:
              branden Branden Rolston
              Reporter:
              branden Branden Rolston
              Team:
              Observability Team
              Watchers:
              Branden Rolston, Lee Hambley (Inactive), Mergebot, Philip Norman
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: