Files
vault/command
Calvin Leung Huang df51db751d agent: add an inflight cache better concurrent request handling (#10705)
* agent: do not grap idLock writelock until caching entry

* agent: inflight cache using sync.Map

* agent: implement an inflight caching mechanism

* agent/lease: add lock for inflight cache to prevent simultaneous Set calls

* agent/lease: lock on a per-ID basis so unique requests can be processed independently

* agent/lease: add some concurrency tests

* test: use lease_id for uniqueness

* agent: remove env flags, add comments around locks

* agent: clean up test comment

* agent: clean up test comment

* agent: remove commented debug code

* agent/lease: word-smithing

* Update command/agent/cache/lease_cache.go

Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>

* agent/lease: return the context error if the Done ch got closed

* agent/lease: fix data race in concurrency tests

* agent/lease: mockDelayProxier: return ctx.Err() if context got canceled

* agent/lease: remove unused inflightCacheLock

* agent/lease: test: bump context timeout to 3s

Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
2021-01-26 12:09:37 -08:00
..
2017-10-24 09:30:47 -04:00
2017-10-24 09:30:47 -04:00
2017-10-24 09:30:47 -04:00
2017-10-24 09:28:06 -04:00
2019-03-25 10:56:04 -07:00
2017-10-24 09:30:47 -04:00
2019-11-07 08:54:34 -08:00
2017-10-24 09:28:06 -04:00
2019-02-14 11:54:47 -08:00
2021-01-12 15:26:07 -08:00
2018-02-12 18:12:16 -05:00
2018-07-12 10:18:50 -04:00
2017-10-24 09:30:47 -04:00
2019-09-26 08:46:41 -04:00
2019-07-05 13:36:44 -07:00
2018-08-22 14:37:40 -04:00
2020-03-17 09:46:44 -04:00
2019-04-12 18:12:13 -04:00
2017-10-24 09:30:48 -04:00
2017-10-24 09:39:34 -04:00
2018-11-06 17:21:24 -08:00
2017-10-24 09:30:48 -04:00
2018-09-17 23:03:00 -04:00
2017-10-24 09:30:48 -04:00
2018-02-12 18:12:16 -05:00
2017-10-24 09:30:48 -04:00
2018-02-12 18:12:16 -05:00
2017-10-24 09:30:48 -04:00
2018-08-14 14:20:49 -04:00
2017-10-24 09:39:34 -04:00
2018-02-12 18:12:16 -05:00
2020-04-13 10:03:05 -07:00
2018-02-12 18:12:16 -05:00
2018-02-12 18:12:16 -05:00
2017-10-24 09:30:47 -04:00
2017-10-24 09:30:47 -04:00
2018-03-20 14:54:10 -04:00
2017-10-24 09:30:48 -04:00
2018-04-04 04:41:46 -04:00