• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TykTechnologies / tyk / 2543

Build:
DEFAULT BRANCH: master
Ran 06 Jul 2017 03:59PM UTC
Jobs 1
Files 84
Run time 7s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2543

push

travis-ci

buger
all: protect global policies map with a rwmutex

Since reloads will change the map at any point, while other goroutines
may be reading.

And add a test too, to prove that this was an issue and help avoid a
regression.

Race report from the new test, before the fix:

	WARNING: DATA RACE
	Write at 0x0000018a9f78 by goroutine 186:
	  github.com/TykTechnologies/tyk.getPolicies()
	      /home/mvdan/go/src/github.com/TykTechnologies/tyk/main.go:286 +0x437
	  github.com/TykTechnologies/tyk.doReload()
	      /home/mvdan/go/src/github.com/TykTechnologies/tyk/main.go:622 +0x44
	  github.com/TykTechnologies/tyk.TestReloadGlobalRaces()
	      /home/mvdan/go/src/github.com/TykTechnologies/tyk/gateway_test.go:960 +0xe3
	  testing.tRunner()
	      /home/mvdan/tip/src/testing/testing.go:754 +0x16c

	Previous read at 0x0000018a9f78 by goroutine 190:
	  github.com/TykTechnologies/tyk.TestReloadGlobalRaces.func2()
	      /home/mvdan/go/src/github.com/TykTechnologies/tyk/gateway_test.go:957 +0x4f

5773 of 13585 relevant lines covered (42.5%)

0.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2543.1 (LATEST_GO=true) 06 Jul 2017 03:59PM UTC 0
42.5
Travis Job 2543.1
Source Files on build 2543
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2543
  • 3d436009 on github
  • Prev Build on master (#2538)
  • Next Build on master (#2546)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc