From 9ae8058d95595da0e5e3cc6e86ea6c7007813a20 Mon Sep 17 00:00:00 2001 From: Cheng Chang Date: Tue, 14 Apr 2020 10:52:37 -0700 Subject: [PATCH] Suppress file deletion error message in FaultInjectionTestEnv (#6696) Summary: The error message is causing problems in the crash tests due to the error parsing logic in db_crashtest.py. This is a follow up PR for https://github.com/facebook/rocksdb/pull/6694. Pull Request resolved: https://github.com/facebook/rocksdb/pull/6696 Test Plan: make check Reviewed By: zhichao-cao Differential Revision: D21021875 Pulled By: cheng-chang fbshipit-source-id: 11e3f536df16941a89949ebcd2147cd8dfa3fbe0 --- test_util/fault_injection_test_env.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test_util/fault_injection_test_env.cc b/test_util/fault_injection_test_env.cc index 8bbd2692e..d9c2167b4 100644 --- a/test_util/fault_injection_test_env.cc +++ b/test_util/fault_injection_test_env.cc @@ -305,10 +305,6 @@ Status FaultInjectionTestEnv::DeleteFile(const std::string& f) { return GetError(); } Status s = EnvWrapper::DeleteFile(f); - if (!s.ok()) { - fprintf(stderr, "Cannot delete file %s: %s\n", f.c_str(), - s.ToString().c_str()); - } if (s.ok()) { UntrackFile(f); }