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
..
2021-01-26 12:09:37 -08:00
2020-04-27 19:55:13 -04:00
2020-11-13 10:26:58 -08:00
2016-04-01 16:02:18 -04:00
2020-04-27 19:55:13 -04:00
2020-05-29 13:36:59 -04:00
2021-01-25 17:37:01 -05:00
2019-04-12 17:54:35 -04:00
2017-10-24 09:30:47 -04:00
2017-10-24 09:30:47 -04:00
2020-12-16 16:00:32 -06:00
2017-10-24 09:30:47 -04:00
2017-10-24 09:28:06 -04:00
2019-06-04 10:36:34 -07:00
2019-03-25 10:56:04 -07:00
2018-03-28 10:34:37 -04:00
2017-10-24 09:30:47 -04:00
2019-08-26 09:55:08 -07:00
2019-11-07 08:54:34 -08:00
2018-03-28 10:34:37 -04:00
2018-03-01 10:55:24 -05:00
2017-10-24 09:28:06 -04:00
2019-10-17 10:33:00 -07:00
2019-02-14 11:54:47 -08:00
2018-07-12 11:15:50 -04:00
2019-03-14 13:57:28 -07:00
2019-02-14 11:54:47 -08:00
2020-08-26 14:40:23 -05:00
2020-08-26 14:40:23 -05:00
2020-05-23 11:09:55 -04:00
2020-11-23 12:38:14 -07:00
2021-01-07 09:30:24 -08:00
2020-02-09 19:38:39 +01:00
2019-12-18 11:22:15 +01:00
2020-05-21 13:07:50 -07:00
2019-03-15 10:12:48 -07:00
2019-03-15 10:12:48 -07:00
2021-01-12 15:26:07 -08:00
2018-04-05 20:43:29 -04:00
2018-06-12 12:38:08 -04:00
2020-12-22 15:15:24 -05:00
2020-12-22 15:15:24 -05:00
2019-07-18 10:42:36 -07:00
2019-07-18 10:42:36 -07:00
2020-12-11 16:50:19 -08:00
2020-12-11 16:50:19 -08:00
2018-06-08 13:45:47 -04:00
2018-06-08 13:45:47 -04:00
2020-10-23 12:46:20 -07:00
2019-10-07 10:18:04 -04:00
2019-05-03 09:10:41 -07:00
2020-11-23 12:38:14 -07:00
2018-06-08 13:45:47 -04:00
2018-06-08 13:45:47 -04:00
2020-07-20 16:35:26 -04:00
2020-03-30 16:19:44 -07:00
2019-06-27 14:17:46 -04:00
2019-07-03 09:03:35 -04:00
2019-06-27 14:17:46 -04:00
2019-06-27 14:17:46 -04:00
2020-09-02 10:53:36 -05:00
2019-06-27 14:17:46 -04:00
2018-03-21 15:02:41 -07:00
2018-02-12 18:12:16 -05:00
2018-08-24 12:16:37 -04:00
2018-07-12 10:18:50 -04:00
2018-07-11 15:45:35 -04:00
2017-10-24 09:30:47 -04:00
2020-11-23 12:38:14 -07:00
2020-11-23 12:38:14 -07:00
2019-09-25 10:59:42 -07:00
2019-09-26 08:46:41 -04:00
2019-07-05 13:36:44 -07:00
2020-05-21 13:07:50 -07:00
2020-05-21 13:07:50 -07:00
2020-02-09 19:38:39 +01:00
2020-02-09 19:38:39 +01:00
2020-02-09 19:38:39 +01:00
2020-02-09 19:38:39 +01:00
2018-08-22 14:37:40 -04:00
2019-10-18 14:46:00 -04:00
2020-02-14 18:26:49 -08:00
2019-10-18 14:46:00 -04:00
2020-12-23 13:12:44 -07:00
2018-03-28 10:34:37 -04:00
2018-02-12 18:12:16 -05:00
2019-04-15 14:10:07 -04:00
2020-06-23 12:04:13 -07:00
2020-10-23 16:13:09 -04:00
2021-01-22 11:50:59 -05:00
2020-10-01 15:15:20 -04:00
2019-07-16 09:31:00 +02:00
2020-09-14 12:22:45 -05:00
2020-03-17 09:46:44 -04:00
2020-03-17 09:46:44 -04:00
2018-02-08 13:34:45 -05:00
2019-06-11 10:05:44 +02:00
2017-10-24 09:30:48 -04:00
2018-06-06 21:11:21 -07:00
2017-10-24 09:30:48 -04:00
2017-10-24 09:30:48 -04:00
2019-02-15 09:06:37 -08:00
2019-04-12 18:12:13 -04:00
2020-11-23 14:57:35 -06:00
2017-10-24 09:30:48 -04:00
2017-10-24 09:39:34 -04:00
2019-06-27 12:56:31 -04:00
2019-04-12 17:54:35 -04:00
2017-10-24 09:28:06 -04:00
2019-04-12 17:54:35 -04:00
2019-04-12 17:54:35 -04:00
2019-04-12 17:54:35 -04:00
2019-04-12 17:54:35 -04:00
2018-11-06 17:21:24 -08:00
2019-04-12 17:54:35 -04:00
2019-04-12 17:54:35 -04:00
2019-04-12 17:54:35 -04:00
2020-06-30 16:26:38 -05:00
2020-06-30 10:26:52 -05:00
2020-06-30 10:26:52 -05:00
2019-04-12 17:54:35 -04:00
2018-11-06 17:21:24 -08:00
2018-03-28 10:34:37 -04:00
2017-10-24 09:30:48 -04:00
2018-04-05 20:43:29 -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:29:37 -04:00
2017-10-24 09:30:48 -04:00
2018-03-22 09:29:59 -04:00
2020-12-03 10:59:09 -07:00
2019-02-11 11:19:08 -08:00
2018-08-14 14:20:49 -04:00
2018-08-13 22:00:26 -04:00
2018-03-28 10:34:37 -04:00
2018-06-06 21:11:21 -07:00
2017-10-24 09:30:48 -04:00
2017-10-24 09:30:48 -04:00
2020-04-07 11:26:51 -07:00
2019-10-17 10:33:00 -07:00
2017-10-24 09:30:48 -04:00
2019-10-17 10:33:00 -07:00
2018-03-28 10:34:37 -04:00
2018-11-07 11:07:19 -05:00
2018-11-19 14:23:25 -08:00
2019-03-14 13:57:28 -07:00
2017-10-24 09:30:48 -04:00
2018-10-31 11:11:45 -07:00
2018-10-31 11:11:45 -07:00
2020-10-30 16:44:06 -04:00
2020-06-11 15:07:59 -04:00
2020-12-08 13:55:34 -05:00
2019-03-19 09:32:45 -04:00
2019-03-19 09:32:45 -04:00
2017-10-24 09:39:34 -04:00
2021-01-25 11:25:54 -06:00
2018-05-11 11:58:12 -04:00
2018-09-13 08:23:36 -07: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
2019-11-08 11:32:01 -05:00
2019-11-08 11:32:01 -05:00
2018-03-28 10:34:37 -04: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
2020-04-09 14:09:23 -04:00
2018-07-11 15:09:04 -04:00
2019-04-12 17:54:35 -04:00
2019-04-12 17:54:35 -04:00
2017-10-24 09:30:48 -04:00
2018-04-04 04:41:46 -04:00