mirror of https://github.com/facebook/rocksdb.git
Remove misspelled tickers used in error handler (#12302)
Summary: As titled, the replacement tickers have been introduced in https://github.com/facebook/rocksdb/issues/11509 and in use since release 8.4. This PR completely removes the misspelled ones. Pull Request resolved: https://github.com/facebook/rocksdb/pull/12302 Test Plan: CI tests Reviewed By: jaykorean Differential Revision: D53196935 Pulled By: jowlyzhang fbshipit-source-id: 9c9d0d321247690db5edfdc52b4fecb2f1218979
This commit is contained in:
parent
b9cb7b9644
commit
17042a3fb7
|
@ -395,11 +395,8 @@ const Status& ErrorHandler::SetBGError(const Status& bg_status,
|
|||
ROCKS_LOG_WARN(db_options_.info_log, "Background IO error %s",
|
||||
bg_io_err.ToString().c_str());
|
||||
|
||||
RecordStats(
|
||||
{ERROR_HANDLER_BG_ERROR_COUNT, ERROR_HANDLER_BG_ERROR_COUNT_MISSPELLED,
|
||||
ERROR_HANDLER_BG_IO_ERROR_COUNT,
|
||||
ERROR_HANDLER_BG_IO_ERROR_COUNT_MISSPELLED},
|
||||
{} /* int_histograms */);
|
||||
RecordStats({ERROR_HANDLER_BG_ERROR_COUNT, ERROR_HANDLER_BG_IO_ERROR_COUNT},
|
||||
{} /* int_histograms */);
|
||||
|
||||
Status new_bg_io_err = bg_io_err;
|
||||
DBRecoverContext context;
|
||||
|
@ -434,8 +431,7 @@ const Status& ErrorHandler::SetBGError(const Status& bg_status,
|
|||
&new_bg_io_err, db_mutex_,
|
||||
&auto_recovery);
|
||||
|
||||
RecordStats({ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT,
|
||||
ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT_MISSPELLED},
|
||||
RecordStats({ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT},
|
||||
{} /* int_histograms */);
|
||||
ROCKS_LOG_INFO(db_options_.info_log,
|
||||
"ErrorHandler: Set background retryable IO error\n");
|
||||
|
|
|
@ -364,14 +364,9 @@ enum Tickers : uint32_t {
|
|||
|
||||
// The counters for error handler, note that, bg_io_error is the subset of
|
||||
// bg_error and bg_retryable_io_error is the subset of bg_io_error.
|
||||
// The misspelled versions are deprecated and only kept for compatibility.
|
||||
// TODO: remove the misspelled tickers in the next major release.
|
||||
ERROR_HANDLER_BG_ERROR_COUNT,
|
||||
ERROR_HANDLER_BG_ERROR_COUNT_MISSPELLED,
|
||||
ERROR_HANDLER_BG_IO_ERROR_COUNT,
|
||||
ERROR_HANDLER_BG_IO_ERROR_COUNT_MISSPELLED,
|
||||
ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT,
|
||||
ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT_MISSPELLED,
|
||||
ERROR_HANDLER_AUTORESUME_COUNT,
|
||||
ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT,
|
||||
ERROR_HANDLER_AUTORESUME_SUCCESS_COUNT,
|
||||
|
|
|
@ -179,16 +179,10 @@ const std::vector<std::pair<Tickers, std::string>> TickersNameMap = {
|
|||
{FILES_DELETED_FROM_TRASH_QUEUE, "rocksdb.files.marked.trash.deleted"},
|
||||
{FILES_DELETED_IMMEDIATELY, "rocksdb.files.deleted.immediately"},
|
||||
{ERROR_HANDLER_BG_ERROR_COUNT, "rocksdb.error.handler.bg.error.count"},
|
||||
{ERROR_HANDLER_BG_ERROR_COUNT_MISSPELLED,
|
||||
"rocksdb.error.handler.bg.errro.count"},
|
||||
{ERROR_HANDLER_BG_IO_ERROR_COUNT,
|
||||
"rocksdb.error.handler.bg.io.error.count"},
|
||||
{ERROR_HANDLER_BG_IO_ERROR_COUNT_MISSPELLED,
|
||||
"rocksdb.error.handler.bg.io.errro.count"},
|
||||
{ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT,
|
||||
"rocksdb.error.handler.bg.retryable.io.error.count"},
|
||||
{ERROR_HANDLER_BG_RETRYABLE_IO_ERROR_COUNT_MISSPELLED,
|
||||
"rocksdb.error.handler.bg.retryable.io.errro.count"},
|
||||
{ERROR_HANDLER_AUTORESUME_COUNT, "rocksdb.error.handler.autoresume.count"},
|
||||
{ERROR_HANDLER_AUTORESUME_RETRY_TOTAL_COUNT,
|
||||
"rocksdb.error.handler.autoresume.retry.total.count"},
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
*Removed tickers with typos "rocksdb.error.handler.bg.errro.count", "rocksdb.error.handler.bg.io.errro.count", "rocksdb.error.handler.bg.retryable.io.errro.count".
|
Loading…
Reference in New Issue