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

Refactor the way we deal with partitions #291

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

alexsnaps
Copy link
Member

This also makes for more consistent logging of the encountering a partition...
There is a todo that we need to fix, not losing the counters that have not been written out to Redis, when the partition occurs in the middle of flushing the batch.

Copy link
Member

@adam-cattermole adam-cattermole left a comment

Choose a reason for hiding this comment

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

The change makes sense to me, just one nit

limitador/src/storage/redis/redis_cached.rs Outdated Show resolved Hide resolved
@alexsnaps alexsnaps force-pushed the refactor-partition branch from b732c41 to 9d5eed7 Compare April 22, 2024 13:59
@didierofrivia
Copy link
Member

LGTM, including the new changes that makes easier to manage the partition and simplifies within the batch update the check with just boolean instead of the Future

@adam-cattermole
Copy link
Member

Yep, the updates lgtm, makes sense to pass the bool instead of future and check if partitioned on each flushing interval.

@alexsnaps alexsnaps merged commit da53e4e into main Apr 22, 2024
20 checks passed
@alexsnaps alexsnaps deleted the refactor-partition branch April 22, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants