provider/joyent: data races

Bug #1497801 reported by Dave Cheney
This bug report is a duplicate of:  Bug #1460882: provider/joyent: multiple data races. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Triaged
High
Unassigned

Bug Description

==================
WARNING: DATA RACE
Read by goroutine 261:
  runtime.mapaccess2_faststr()
      /home/dfc/go/src/runtime/hashmap_fast.go:281 +0x0
  github.com/joyent/gomanta/localservices/manta.(*Manta).DeleteObject()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service.go:275 +0x419
  github.com/joyent/gomanta/localservices/manta.(*Manta).handleStorage()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service_http.go:236 +0x1819
  github.com/joyent/gomanta/localservices/manta.(*mantaHandler).ServeHTTP()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service_http.go:98 +0x1bc
  net/http.(*ServeMux).ServeHTTP()
      /home/dfc/go/src/net/http/server.go:1710 +0x212
  net/http.serverHandler.ServeHTTP()
      /home/dfc/go/src/net/http/server.go:1873 +0x206
  net/http.(*conn).serve()
      /home/dfc/go/src/net/http/server.go:1372 +0x117c

Previous write by goroutine 47:
  runtime.mapdelete()
      /home/dfc/go/src/runtime/hashmap.go:513 +0x0
  github.com/joyent/gomanta/localservices/manta.(*Manta).DeleteObject()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service.go:276 +0x485
  github.com/joyent/gomanta/localservices/manta.(*Manta).handleStorage()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service_http.go:236 +0x1819
  github.com/joyent/gomanta/localservices/manta.(*mantaHandler).ServeHTTP()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service_http.go:98 +0x1bc
  net/http.(*ServeMux).ServeHTTP()
      /home/dfc/go/src/net/http/server.go:1710 +0x212
  net/http.serverHandler.ServeHTTP()
      /home/dfc/go/src/net/http/server.go:1873 +0x206
  net/http.(*conn).serve()
      /home/dfc/go/src/net/http/server.go:1372 +0x117c

Goroutine 261 (running) created at:
  net/http.(*Server).Serve()
      /home/dfc/go/src/net/http/server.go:1923 +0x455

Goroutine 47 (running) created at:
  net/http.(*Server).Serve()
      /home/dfc/go/src/net/http/server.go:1923 +0x455
==================
==================
WARNING: DATA RACE
Write by goroutine 261:
  runtime.mapdelete()
      /home/dfc/go/src/runtime/hashmap.go:513 +0x0
  github.com/joyent/gomanta/localservices/manta.(*Manta).DeleteObject()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service.go:277 +0x4e3
  github.com/joyent/gomanta/localservices/manta.(*Manta).handleStorage()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service_http.go:236 +0x1819
  github.com/joyent/gomanta/localservices/manta.(*mantaHandler).ServeHTTP()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service_http.go:98 +0x1bc
  net/http.(*ServeMux).ServeHTTP()
      /home/dfc/go/src/net/http/server.go:1710 +0x212
  net/http.serverHandler.ServeHTTP()
      /home/dfc/go/src/net/http/server.go:1873 +0x206
  net/http.(*conn).serve()
      /home/dfc/go/src/net/http/server.go:1372 +0x117c

Previous write by goroutine 47:
  runtime.mapdelete()
      /home/dfc/go/src/runtime/hashmap.go:513 +0x0
  github.com/joyent/gomanta/localservices/manta.(*Manta).DeleteObject()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service.go:277 +0x4e3
  github.com/joyent/gomanta/localservices/manta.(*Manta).handleStorage()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service_http.go:236 +0x1819
  github.com/joyent/gomanta/localservices/manta.(*mantaHandler).ServeHTTP()
      /home/dfc/src/github.com/joyent/gomanta/localservices/manta/service_http.go:98 +0x1bc
  net/http.(*ServeMux).ServeHTTP()
      /home/dfc/go/src/net/http/server.go:1710 +0x212
  net/http.serverHandler.ServeHTTP()
      /home/dfc/go/src/net/http/server.go:1873 +0x206
  net/http.(*conn).serve()
      /home/dfc/go/src/net/http/server.go:1372 +0x117c

Goroutine 261 (running) created at:
  net/http.(*Server).Serve()
      /home/dfc/go/src/net/http/server.go:1923 +0x455

Goroutine 47 (running) created at:
  net/http.(*Server).Serve()
      /home/dfc/go/src/net/http/server.go:1923 +0x455
==================
OK: 51 passed, 2 skipped
PASS
Found 2 data race(s)
FAIL github.com/juju/juju/provider/joyent 26.773s

Aaron Bentley (abentley)
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.26-alpha1
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.26-alpha1 → 1.26-alpha2
Changed in juju-core:
milestone: 1.26-alpha2 → 1.26-beta1
Changed in juju-core:
milestone: 1.26-beta1 → 2.0-alpha2
Changed in juju-core:
milestone: 2.0-alpha2 → 2.0-alpha3
Changed in juju-core:
milestone: 2.0-alpha3 → 2.0-beta4
Curtis Hovey (sinzui)
tags: added: race-condition
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.