Joe Hu 68dbc545a6
Fix #19 - RDB compatibility with ReJSON and add compatibility test (#21)
Signed-off-by: Joe Hu <jowhuw@amazon.com>
Signed-off-by: Joe Hu <joehu888@gmail.com>
Co-authored-by: Joe Hu <jowhuw@amazon.com>
2024-12-10 08:10:31 -05:00

25 lines
658 B
Markdown

#### How to create rdb file for a new ReJSON release?
e.g., testing RDB compatibility with rejson 2.2.0.
1. Run docker image redis-stack:
```text
docker run -d -p 6379:6379 --name rejson redislabs/rejson:2.2.0
```
2. Load store.json and create a key named "store":
```text
python3 utils/load_1file_hostport.py tst/integration/data/store.json store
```
3. Save rdb:
```text
valkey-cli save
```
4. Copy out the RDB file:
```text
docker cp $(docker ps -q):/data/dump.rdb tst/integration/rdb_rejson/rejson-<version>.rdb
```
5. run test_json_rdb_import.py:
```text
TEST_PATTERN=test_import_rejson_rdbs make test
```