From 578f36e431a1e7453ef3a84cde48864a0cf4c288 Mon Sep 17 00:00:00 2001 From: Sagar Vemuri Date: Mon, 20 Nov 2017 21:06:30 -0800 Subject: [PATCH] Blob DB: Remove some redundant log lines Summary: Saw some redundant log lines when trying to benchmark blob db. So, removed the lines from blob_file.cc, and let the lines in blob_db_impl.cc take the lead. Closes https://github.com/facebook/rocksdb/pull/3189 Differential Revision: D6381726 Pulled By: sagar0 fbshipit-source-id: 5f0b1e56fe4bc3b715d89ea9b5749bd935cd0606 --- utilities/blob_db/blob_db_impl.cc | 5 +++-- utilities/blob_db/blob_file.cc | 7 ------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/utilities/blob_db/blob_db_impl.cc b/utilities/blob_db/blob_db_impl.cc index 02ffd0d1c..7cdf5c31a 100644 --- a/utilities/blob_db/blob_db_impl.cc +++ b/utilities/blob_db/blob_db_impl.cc @@ -1295,8 +1295,9 @@ std::pair BlobDBImpl::SanityCheck(bool aborted) { Status BlobDBImpl::CloseBlobFile(std::shared_ptr bfile) { assert(bfile != nullptr); Status s; - ROCKS_LOG_INFO(db_options_.info_log, "Close blob file %" PRIu64, - bfile->BlobFileNumber()); + ROCKS_LOG_INFO(db_options_.info_log, + "Closing blob file %" PRIu64 ". Path: %s", + bfile->BlobFileNumber(), bfile->PathName().c_str()); { WriteLock wl(&mutex_); diff --git a/utilities/blob_db/blob_file.cc b/utilities/blob_db/blob_file.cc index 162f364a2..0b2aa8d3d 100644 --- a/utilities/blob_db/blob_file.cc +++ b/utilities/blob_db/blob_file.cc @@ -134,9 +134,6 @@ bool BlobFile::NeedsFsync(bool hard, uint64_t bytes_per_sync) const { } Status BlobFile::WriteFooterAndCloseLocked() { - ROCKS_LOG_INFO(parent_->db_options_.info_log, - "File is being closed after footer %s", PathName().c_str()); - BlobLogFooter footer; footer.blob_count = blob_count_; if (HasTTL()) { @@ -150,10 +147,6 @@ Status BlobFile::WriteFooterAndCloseLocked() { if (s.ok()) { closed_ = true; file_size_ += BlobLogFooter::kSize; - } else { - ROCKS_LOG_ERROR(parent_->db_options_.info_log, - "Failure to read Header for blob-file %s", - PathName().c_str()); } // delete the sequential writer log_writer_.reset();