From ee9bdd38a155e52576773caed91dc03e0209530a Mon Sep 17 00:00:00 2001 From: sdong Date: Tue, 7 Apr 2015 16:54:39 -0700 Subject: [PATCH] Script to check whether RocksDB can read DB generated by previous releases and vice versa Summary: Add a script, which checks out changes from a list of tags, build them and load the same data into it. In the last, checkout the target build and make sure it can successfully open DB and read all the data. It is implemented through ldb tool, because ldb tool is available from all previous builds so that we don't have to cross build anything. Test Plan: Run the script. Reviewers: yhchiang, rven, anthony, kradhakrishnan, igor Reviewed By: igor Subscribers: leveldb, dhruba Differential Revision: https://reviews.facebook.net/D36639 --- tools/check_format_compatible.sh | 115 +++++++++++++++++++++++++++++++ tools/generate_random_db.sh | 30 ++++++++ tools/verify_random_db.sh | 27 ++++++++ 3 files changed, 172 insertions(+) create mode 100755 tools/check_format_compatible.sh create mode 100755 tools/generate_random_db.sh create mode 100755 tools/verify_random_db.sh diff --git a/tools/check_format_compatible.sh b/tools/check_format_compatible.sh new file mode 100755 index 000000000..65bbe0b90 --- /dev/null +++ b/tools/check_format_compatible.sh @@ -0,0 +1,115 @@ +#!/bin/bash +# +# A shell script to load some pre generated data file to a DB using ldb tool +# ./ldb needs to be avaible to be executed. +# +# Usage: