Closed wuranxx closed 1 week ago
@KarthikSubbarao Please help review this PR.
@KarthikSubbarao The review comments have been modified and replied. Please review them again.
@KarthikSubbarao
I think another purpose of BF.DUMP
is for migration scenarios. When tools like redisshake
perform data migration between two Redis instances, the valkey-bloom
type keys can be replayed using BF.LOAD
and BF.DUMP
.
If you believe this command is ultimately unnecessary, please let me know, and I will remove it. (About BF.DUMP
review can't reply, so i add a new comment to reply it.)
@KarthikSubbarao The review comments have been modified and replied. Please review them again, thank you.
Quick note: When you get the latest changes your changes will cause the tests in test_bloom_metrics.py
to fail, due to the new size of BloomFilterType, to fix this you can update this file and line to be DEFAULT_BLOOM_FILTER_SIZE = 179961
.
Quick note: When you get the latest changes your changes will cause the tests in
test_bloom_metrics.py
to fail, due to the new size of BloomFilterType, to fix this you can update this file and line to beDEFAULT_BLOOM_FILTER_SIZE = 179961
.
I've removed the version field from BloomFitlerType
.
The PR is almost ready to be merged in. Just have few comments on fixing the validation logic of bloom filters restored from BF.LOAD. We can merge it in after this
Thank you, @wuranxx . Can you update the PR Description? It currently references BF.DUMP. We can update it to reference BF.LOAD and I will merge the PR after that
Thank you, @wuranxx . Can you update the PR Description? It currently references BF.DUMP. We can update it to reference BF.LOAD and I will merge the PR after that
updated.
Thank you for helping with AOF Rewrite support, @wuranxx !
this pr is for #8 https://github.com/valkey-io/valkey-bloom/issues/8.
design proposal
I use serde and bincode to deserialize and deserialize BloomFilterType. add data version in first element.
bf.load not support override old key.