Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't extend TTL for AddWatch #60

Merged
merged 1 commit into from
Apr 16, 2020
Merged

Conversation

LisaLudique
Copy link
Contributor

Fixes #58

The expiration time should only be delayed in SetResponse, since the intent of the TTL was to avoid stale responses in the cache. Adding/removing watches should not affect the expiration time of a key. This change removes that extension from AddWatch, and #59 already omits the expiry time extension.

Signed-off-by: Lisa Lu <lisalu@lyft.com>
@jessicayuen jessicayuen merged commit 309b674 into envoyproxy:master Apr 16, 2020
jessicayuen pushed a commit to jessicayuen/xds-relay that referenced this pull request Apr 21, 2020
* Don't extend TTL for AddWatch (envoyproxy#60)

Fixes envoyproxy#58 

The expiration time should only be delayed in SetResponse, since the intent of the TTL was to avoid stale responses in the cache. Adding/removing watches should not affect the expiration time of a key. This change removes that extension from AddWatch, and envoyproxy#59 already omits the expiry time extension.

Signed-off-by: Lisa Lu <lisalu@lyft.com>

* xds client implementation (envoyproxy#46)

Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>

* add With

Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>

Co-authored-by: Lisa Lu <lisalu@lyft.com>
jessicayuen pushed a commit to jessicayuen/xds-relay that referenced this pull request Apr 24, 2020
* Don't extend TTL for AddWatch (envoyproxy#60)

Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
jessicayuen pushed a commit to jessicayuen/xds-relay that referenced this pull request Apr 24, 2020
* Don't extend TTL for AddWatch (envoyproxy#60)

Signed-off-by: Jyoti Mahapatra <jmahapatra@lyft.com>
Signed-off-by: Jess Yuen <jyuen@lyft.com>
@LisaLudique LisaLudique deleted the ttl branch June 17, 2020 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend cache TTL only on changes to Response
2 participants