Commit Graph

94 Commits (ca3aca92c4d2b2a94f959655ff0db03f00a49a6a)

Author SHA1 Message Date
Paul Banks 1406671290
cache: Fix bug where connection errors can cause early cache expiry (#9979)
4 years ago
Paul Banks ee04d452be
cache: fix bug where TTLs were ignored leading to leaked memory in client agents (#9978)
4 years ago
Daniel Nephin d9b8d30cad cache: log a warning when Cache.Notify handles an error
4 years ago
Matt Keeler 8dbe342ec9
Stop background refresh of cached data for requests that result in ACL not found errors (#9738)
4 years ago
Daniel Nephin b9e60c0775 testing: skip slow tests with -short
4 years ago
Hans Hasselberg 57701695c3 add missing descriptions for metrics
4 years ago
Kit Patella 5da2f1efa8 finish adding static server metrics
4 years ago
Daniel Nephin 0d4fa882b3 lib/ttlcache: unexport key and additional godoc
4 years ago
Daniel Nephin c17baadbf8 lib/ttlcache: add a constant for NotIndexed
4 years ago
Daniel Nephin 6c09ab3dd8 cache: fix a bug with Prepopulate
4 years ago
Daniel Nephin bbb816aa8a lib/ttlcache: extract package from agent/cache
4 years ago
Daniel Nephin c4122edd22 cache: export ExpiryHeap
4 years ago
Daniel Nephin 343d133183 cache: Refactor heap.notify to make it more explicit.
4 years ago
Daniel Nephin 499f2822cf cache: Move more of the expiryLoop into the Heap
4 years ago
Daniel Nephin 2cdc90e01b cache: extract cache eviction heap
4 years ago
Daniel Nephin 3fa08beecf submatview: add a test for handling of NewSnapshotToFollow
4 years ago
Daniel Nephin b576a2d3c7 cache-types: Update Streaming health cache-type
4 years ago
Daniel Nephin 132b76acef agent/cache: Add cache-type and materialized view for streaming health
4 years ago
Daniel Nephin 6956477be5
Merge pull request #8548 from edevil/fix_flake
4 years ago
Pierre Souchay d5974b1d17 Added Unit test for cache reloading
4 years ago
Pierre Souchay 879d087f65 Added `options.Equals()` and minor fixes indentation fixes
4 years ago
Pierre Souchay d2be9d38da Ensure that Cache options are reloaded when `consul reload` is performed.
4 years ago
André Cruz 9a0792139c
Decrease test flakiness
4 years ago
Hans Hasselberg 054595b1f8
agent/cache test for cache throttling. (#8396)
4 years ago
Matt Keeler be01c4241d
Default Cache rate limiting options in New
4 years ago
Pierre Souchay 505de6dc29
Added ratelimit to handle throtling cache (#8226)
4 years ago
Matt Keeler 12acdd7481
Disable background cache refresh for Connect Leaf Certs
4 years ago
Daniel Nephin 2ec3760b70 agent/cache: Use AllowNotModifiedResponse in CatalogListServices
4 years ago
Daniel Nephin dbb8d14728 agent/cache: Update some docstrings
4 years ago
Matt Keeler 8837907de4
Make the Agent Cache more Context aware (#8092)
5 years ago
Daniel Nephin 81755c860a agent/cache: remove error return from fetch
5 years ago
Daniel Nephin 4ef9fc9f27 agent/cache: reduce function arguments by removing duplicates
5 years ago
Daniel Nephin 5fe7043439 agent/cache: Make all cache options RegisterOptions
5 years ago
Daniel Nephin 89f41bddfe Remove TTL from cacheEntryExpiry
5 years ago
Daniel Nephin 7246d8b6cb agent/cache: Reduce differences between notify implementations
5 years ago
Daniel Nephin 66fbb13976 agent/cache: Inline the refresh function to make recursion more obvious
5 years ago
Daniel Nephin faeaed5d0c agent/cache: Make the return values of getEntryLocked more obvious
5 years ago
Daniel Nephin e9e45545dd agent/cache: Small formatting improvements to improve readability
5 years ago
Daniel Nephin 1f25bf88b8
Merge pull request #7596 from hashicorp/dnephin/agent-cache-type-entry
5 years ago
Daniel Nephin c9a87be6ee agent/cache: move typeEntry lookup to the edge
5 years ago
Pierre Souchay 09e638a9c6
tests: more tolerance to latency for unstable test `TestCacheNotifyPolling()`. (#7574)
5 years ago
R.B. Boyer 12876983cf
avoid 'panic: Log in goroutine after TestCacheGet_refreshAge has completed' (#7276)
5 years ago
Anthony Scalisi beb928f8de fix spelling errors (#7135)
5 years ago
R.B. Boyer 9566df524e
agent: cache notifications work after error if the underlying RPC returns index=1 (#6547)
5 years ago
Christian Muehlhaeuser 7753b97cc7 Simplified code in various places (#6176)
5 years ago
Freddy 5873c56a03
Flaky test overhaul (#6100)
5 years ago
Hans Hasselberg 33a7df3330
tls: auto_encrypt enables automatic RPC cert provisioning for consul clients (#5597)
5 years ago
Matt Keeler dbc48ea3f7 Fixes race condition in Agent Cache (#5796)
6 years ago
Kyle Havlovitz 43bfc20dc8 Test an index=0 value in cache.Notify
6 years ago
Kyle Havlovitz c269369760 Make central service config opt-in and rework the initial registration
6 years ago