Skip to content

feat: redis support snapshot check - #643

Merged
caiq1nyu merged 5 commits into
mainfrom
feat/redis_check
Dec 1, 2026
Merged

caiq1nyu merged 5 commits into
mainfrom
feat/redis_check

Conversation

@caiq1nyu

@caiq1nyu caiq1nyu commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

This example checks DB 0 between two standalone Redis instances. The checker reads source keys from the RDB snapshot and compares their existence, type, value, and expiration against the target. Keys present only on the target are outside the scope of this run.

[extractor]
db_type=redis
extract_type=snapshot
url=redis://127.0.0.1:6380

[sinker]
db_type=redis
sink_type=check
url=redis://127.0.0.1:6381
ttl_tolerance_ms=1000

[filter]
do_dbs=0

[parallelizer]
parallel_type=redis

[runtime]
log_dir=./logs

TTL comparison is part of the snapshot check. A persistent key and an expiring key are reported as different. If both keys expire, the checker compares their expiration deadlines. The example allows a difference of up to 1 second. The default is 10 seconds (10000 ms).

@caiq1nyu
caiq1nyu marked this pull request as ready for review November 30, 2026 09:17
@caiq1nyu
caiq1nyu merged commit b6a128a into main Dec 1, 2026
40 checks passed
@caiq1nyu
caiq1nyu deleted the feat/redis_check branch December 1, 2026 02:28
caiq1nyu added a commit that referenced this pull request Dec 1, 2026
* redis support snapshot check

* update md

* remove unexpect target reverse check logic

* update expired key check test

* format redis check diff log

(cherry picked from commit b6a128a)
caiq1nyu added a commit that referenced this pull request Dec 1, 2026
* feat: redis support snapshot check (#643)

* redis support snapshot check

* update md

* remove unexpect target reverse check logic

* update expired key check test

* format redis check diff log

(cherry picked from commit b6a128a)

* upgrade changelog
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.

1 participant