From 97eddef2357bf9167fa896c5be6d749a550d0185 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Mon, 3 Mar 2014 17:10:30 -0800 Subject: [PATCH] Reopen DB in crash test Summary: Why don't we automatically reopen DB when running crash test (running in our nightly build)? If I understand correctly, crashtest is manually reopenning the DB, but then the DB does not check its consistency when you kill db_stress process and then re-run it again. Does this make sense? Test Plan: not reall Reviewers: dhruba, haobo, emayanke Reviewed By: emayanke CC: leveldb Differential Revision: https://reviews.facebook.net/D16167 --- tools/db_crashtest.py | 2 +- tools/db_crashtest2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/db_crashtest.py b/tools/db_crashtest.py index 6270d69ca..b3d08f888 100644 --- a/tools/db_crashtest.py +++ b/tools/db_crashtest.py @@ -70,7 +70,7 @@ def main(argv): --threads=%s --write_buffer_size=%s --destroy_db_initially=0 - --reopen=0 + --reopen=20 --readpercent=45 --prefixpercent=5 --writepercent=35 diff --git a/tools/db_crashtest2.py b/tools/db_crashtest2.py index dbb7059fe..8b7ce969d 100644 --- a/tools/db_crashtest2.py +++ b/tools/db_crashtest2.py @@ -84,7 +84,7 @@ def main(argv): --threads=%s --write_buffer_size=%s --destroy_db_initially=0 - --reopen=0 + --reopen=20 --readpercent=45 --prefixpercent=5 --writepercent=35