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

TykTechnologies / tyk / 9792 / 1
39%
master: %

Build:
Build:
LAST BUILD BRANCH: v2.9.4.8
DEFAULT BRANCH: master
Ran 28 Aug 2020 06:28PM UTC
Files 86
Run time 5s
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

28 Aug 2020 06:12PM UTC coverage: 17.343% (-43.8%) from 61.099%
TYK_LOGLEVEL=info LATEST_GO=true

push

travis-ci

buger
[TT-128] Fix reload  implementation (#3269)

This change removes  `startReloadChan` and `reloadDoneChan` because
they are reduntant and blocky. Under high concurrecny they result in the
reload loop to block resultinto new policy changes not be reflected on
the gw.

Also, `reloadQueueLoop` is siimplified and do as what the name implies,
only queuing callbacks to be triggered on the next reload tick.

This also make sure both `reloadQueueLoop` and  `reloadLoop` are
cancellable by accepting `context.Context`

<!-- Why is this change required? What problem does it solve? -->

```
$ go test -v -run TestReloadLoop    ./gateway/
time="Aug 13 12:43:12" level=info msg="Rich plugins are disabled" prefix=coprocess
=== RUN   TestReloadLoop_basic
--- PASS: TestReloadLoop_basic (0.01s)
=== RUN   TestReloadLoop_handler
--- PASS: TestReloadLoop_handler (0.01s)
=== RUN   TestReloadLoop_handlerWithBlock
--- PASS: TestReloadLoop_handlerWithBlock (0.01s)
=== RUN   TestReloadLoop_group
--- PASS: TestReloadLoop_group (1.01s)
PASS
ok      github.com/TykTechnologies/tyk/gateway  1.136s
```

Aslo there is this repo https://github.com/TykTechnologies/reproduce-reload-hangs with steps to reproduce the issue and check if this changes fix it.

<!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Refactoring or add test (improvements in base code or adds test coverage to functionality)

<!-- Go over all the following points, and put an `x` in all the boxes that apply -->
<!-- If you're unsure about any of these, don't hesitate to ask; we're here to help! -->
- [ ] Make sure you are requesting to **pull a topic/feature/bugfix branch** (right side). If pulling from your own
      fork, don't request your `master`!
- [ ] Make s... (continued)

3193 of 18411 relevant lines covered (17.34%)

82.23 hits per line

Source Files on job 9792.1 (TYK_LOGLEVEL=info LATEST_GO=true)
  • Tree
  • List 0
  • Changed 70
  • Source Changed 2
  • Coverage Changed 70
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7248
  • Travis Job 9792.1
  • 678e3259 on github
  • Prev Job for TYK_LOGLEVEL=info LATEST_GO=true on release-2.9 (#9790.1)
  • Next Job for TYK_LOGLEVEL=info LATEST_GO=true on release-2.9 (#9824.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