Open
Description
I was trying to track down a bug where infrequently connections to the PIP endpoint would return EOF
in my HTTP Client, so I booted the server up with -race
to see if this might be a server error. I don't think it is, but I did spot this in the logs as the server boots.
[spatial] app.go:179: Register /data/ handler
[spatial] app.go:204: Register /api/point-in-polygon handler
==================
WARNING: DATA RACE
Write at 0x00c0001946d0 by goroutine 8:
github.com/whosonfirst/go-whosonfirst-spatial-www/server.(*HTTPServerApplication).RunWithFlagSet.func1()
/Users/tom/projects/wof/go-whosonfirst-spatial-www/server/app.go:124 +0x84
Previous write at 0x00c0001946d0 by main goroutine:
github.com/whosonfirst/go-whosonfirst-spatial-www/server.(*HTTPServerApplication).RunWithFlagSet()
/Users/tom/projects/wof/go-whosonfirst-spatial-www/server/app.go:161 +0xd74
github.com/whosonfirst/go-whosonfirst-spatial-www/server.(*HTTPServerApplication).Run()
/Users/tom/projects/wof/go-whosonfirst-spatial-www/server/app.go:69 +0x1d0
main.main()
/Users/tom/projects/wof/go-whosonfirst-spatial-www/cmd/server/main.go:24 +0x4c
Goroutine 8 (running) created at:
github.com/whosonfirst/go-whosonfirst-spatial-www/server.(*HTTPServerApplication).RunWithFlagSet()
/Users/tom/projects/wof/go-whosonfirst-spatial-www/server/app.go:122 +0x9bc
github.com/whosonfirst/go-whosonfirst-spatial-www/server.(*HTTPServerApplication).Run()
/Users/tom/projects/wof/go-whosonfirst-spatial-www/server/app.go:69 +0x1d0
main.main()
/Users/tom/projects/wof/go-whosonfirst-spatial-www/cmd/server/main.go:24 +0x4c
==================
2022/08/12 08:58:19 index 101874113#:0 [-0.26, -0.15]x[52.88, 52.93]
2022/08/12 08:58:19 index 1175612693#:0 [-2.49, -2.25]x[53.42, 53.54]
2022/08/12 08:58:19 index 101872113#:0 [-1.97, -1.85]x[53.28, 53.36]
2022/08/12 08:58:19 index 101853557#:0 [-0.64, -0.58]x[51.68, 51.73]
2022/08/12 08:58:19 index 101854787#:0 [-0.39, -0.33]x[51.79, 51.84]
[etc]
Metadata
Metadata
Assignees
Labels
No labels