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

cilium / cilium / 11051
39%

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

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>

38 of 38 new or added lines in 1 file covered. (100.0%)

25507 of 56508 relevant lines covered (45.14%)

1192.51 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11051.1 30 Sep 2019 06:25PM UTC 0
45.14
Travis Job 11051.1
Source Files on build 11051
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #11051
  • da33ac48 on github
  • Prev Build on master (#11050)
  • Next Build on master (#11059)
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