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

fix(lambda): refactor and fix handle and ondemand caching for lambda #5437

Merged
merged 12 commits into from
Jul 28, 2021

Conversation

zachsmith1
Copy link
Contributor

@zachsmith1 zachsmith1 commented Jul 20, 2021

The lambda caching agent wasn't handling evictions correctly so this adds the implementation. It's doing a very simple comparison of the keys in the db vs the new keys and adding eviction keys to the DefaultCacheResult.

We also added a fix for loadData so that it properly stores data and reconciles ondemand data.

We also added a fix for onDemand caching because it wasn't fully implemented. It now stores data correctly in the onDemand table and the regular interval will process it like most caching agents today.

We also implemented pendingOnDemandRequests so that a caller can see if their ondemand data has been processed.

@zachsmith1 zachsmith1 changed the title fix(lambda): add evictions to the lambda cache interval fix(lambda): refactor and fix handle and ondemand caching for lambda Jul 23, 2021
Copy link
Contributor

@rvazquezglez rvazquezglez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zachsmith1 zachsmith1 added the ready to merge Approved and ready for a merge label Jul 28, 2021
@mergify mergify bot added the auto merged Merged automatically by a bot label Jul 28, 2021
@mergify mergify bot merged commit a616975 into master Jul 28, 2021
@mergify mergify bot deleted the fix/evictionslambda branch July 28, 2021 19:58
@zachsmith1 zachsmith1 added the backport-candidate Add to PRs to designate release branch patch candidates. label Jul 28, 2021
@zachsmith1
Copy link
Contributor Author

@Mergifyio backport release-1.26.x release-1.25.x release-1.24.x

mergify bot pushed a commit that referenced this pull request Jul 28, 2021
…5437)

* fix(lambda): initialize evictions map with a mutable map

* fix(lambda): add evictions to the lambda cache interval

* fix(lambda): add evictions to the lambda cache interval

* fix(lambda): add evictions to the lambda cache interval

* fix(lambda): refactor and fix handle and ondemand caching for lambda

* fix(lambda): implement applicationNameable for app authz

* fix(lambda): implement applicationNameable for app authz

* fix(lambda): fix failed test by moving appName to abstract class

* fix(lambda): fix failed test by moving appName to abstract class

* fix(lambda): fix failed test by moving appName to abstract class

* fix(lambda): return empty list if appName is null/empty

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit a616975)
mergify bot pushed a commit that referenced this pull request Jul 28, 2021
…5437)

* fix(lambda): initialize evictions map with a mutable map

* fix(lambda): add evictions to the lambda cache interval

* fix(lambda): add evictions to the lambda cache interval

* fix(lambda): add evictions to the lambda cache interval

* fix(lambda): refactor and fix handle and ondemand caching for lambda

* fix(lambda): implement applicationNameable for app authz

* fix(lambda): implement applicationNameable for app authz

* fix(lambda): fix failed test by moving appName to abstract class

* fix(lambda): fix failed test by moving appName to abstract class

* fix(lambda): fix failed test by moving appName to abstract class

* fix(lambda): return empty list if appName is null/empty

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit a616975)
mergify bot pushed a commit that referenced this pull request Jul 28, 2021
…5437)

* fix(lambda): initialize evictions map with a mutable map

* fix(lambda): add evictions to the lambda cache interval

* fix(lambda): add evictions to the lambda cache interval

* fix(lambda): add evictions to the lambda cache interval

* fix(lambda): refactor and fix handle and ondemand caching for lambda

* fix(lambda): implement applicationNameable for app authz

* fix(lambda): implement applicationNameable for app authz

* fix(lambda): fix failed test by moving appName to abstract class

* fix(lambda): fix failed test by moving appName to abstract class

* fix(lambda): fix failed test by moving appName to abstract class

* fix(lambda): return empty list if appName is null/empty

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit a616975)
@mergify
Copy link
Contributor

mergify bot commented Jul 28, 2021

Command backport release-1.26.x release-1.25.x release-1.24.x: success

Backports have been created

link108 added a commit that referenced this pull request Jul 29, 2021
…(backport #5437) (#5448)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Zach Smith <33258732+zachsmith1@users.noreply.github.com>
Co-authored-by: Cameron Motevasselani <cmotevasselani@gmail.com>
@link108 link108 removed the backport-candidate Add to PRs to designate release branch patch candidates. label Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for a merge target-release/1.27
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants