open-consul/agent/consul/multilimiter/testdata/fuzz/FuzzUpdateConfig
Dhia Ayachi b459d58e8d
add multilimiter and tests (#15467)
* add multilimiter and tests

* exporting LimitedEntity

* go mod tidy

* Apply suggestions from code review

Co-authored-by: John Murret <john.murret@hashicorp.com>

* add config update and rename config params

* add doc string and split config

* Apply suggestions from code review

Co-authored-by: Dan Upton <daniel@floppy.co>

* use timer to avoid go routine leak and change the interface

* add comments to tests

* fix failing test

* add prefix with config edge, refactor tests

* Apply suggestions from code review

Co-authored-by: Dan Upton <daniel@floppy.co>

* refactor to apply configs for limiters under a prefix

* add fuzz tests and fix bugs found. Refactor reconcile loop to have a simpler logic

* make KeyType an exported type

* split the config and limiter trees to fix race conditions in config update

* rename variables

* fix race in test and remove dead code

* fix reconcile loop to not create a timer on each loop

* add extra benchmark tests and fix tests

* fix benchmark test to pass value to func

* use a separate go routine to write limiters (#15643)

* use a separate go routine to write limiters

* Add updating limiter when another limiter is created

* fix waiter to be a ticker, so we commit more than once.

* fix tests and add tests for coverage

* unexport members and add tests

* make UpdateConfig thread safe and multi call to Run safe

* replace swith with if

* fix review comments

* replace time.sleep with retries

* fix flaky test and remove unnecessary init

* fix test races

* remove unnecessary negative test case

* remove fixed todo

Co-authored-by: John Murret <john.murret@hashicorp.com>
Co-authored-by: Dan Upton <daniel@floppy.co>
2022-12-08 14:42:07 -05:00
..
5687e874c405cba69baee67a7f98556a9e2b5cd1fc67bc4e542eb1dc1cc1416d add multilimiter and tests (#15467) 2022-12-08 14:42:07 -05:00
582528ddfad69eb57775199a43e0f9fd5c94bba343ce7bb6724d4ebafe311ed4 add multilimiter and tests (#15467) 2022-12-08 14:42:07 -05:00
a6f039e29d925b6f8878408a033bdfa7b7424603c97fcb292400de0b7448eceb add multilimiter and tests (#15467) 2022-12-08 14:42:07 -05:00
caf81e9797b19c76c1fc4dbf537d4d81f389524539f402d13aa01f93a65ac7e9 add multilimiter and tests (#15467) 2022-12-08 14:42:07 -05:00
cd142c626eda3d60244864b8611ce9264f78e40758def1c0a4b23e2192556537 add multilimiter and tests (#15467) 2022-12-08 14:42:07 -05:00