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

cilium / cilium / 11051 / 1
39%
master: 39%

Build:
DEFAULT BRANCH: master
Ran 30 Sep 2019 06:25PM UTC
Files 441
Run time 30s
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

30 Sep 2019 06:04PM UTC coverage: 45.139% (-0.02%) from 45.159%
11051.1

push

travis-ci-com

ianvernon
policy: Fix up selectorcache locking issue

When adding a new FQDN selector to the selector cache, the selector
cache lock would be held while registering into the DNS subsystem for
identity updates. This could then trigger allocation of CIDR identities,
leading to a call to UpdateIdentities() to notify all other selectors in
the cache about the new identity. This would then attempt to lock the
selector cache lock which was held at the beginning of this process,
leading to deadlock.

Fix the issue by releasing the selectorcache lock for the duration of
registering (and potentially triggering allocations), then after that
process is done, lock again and see if another goroutine has
successfully created the FQDN. If so, we can unregister from the proxy
again and use the existing selector; otherwise we can go ahead and
configure the selector in the selector cache and return it.

Thanks to Ian Vernon and Thomas Graf for their assistance digging to the
bottom of this issue.

Fixes: #9292

Signed-off-by: Joe Stringer <joe@cilium.io>

25507 of 56508 relevant lines covered (45.14%)

1192.51 hits per line

Source Files on job 11051.1
  • Tree
  • List 0
  • Changed 87
  • Source Changed 1
  • Coverage Changed 87
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6471
  • Travis Job 11051.1
  • da33ac48 on github
  • Prev Job for on master (#11050.1)
  • Next Job for on master (#11059.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc