From d43ac783c6be2001eb214d39ec54fa74662889c3 Mon Sep 17 00:00:00 2001 From: Piotr Sarna Date: Thu, 12 Nov 2020 10:07:10 +0100 Subject: [PATCH] db,view: degrade helper message from error to warn When a missing base column happens to be named `idx_token`, an additional helper message is printed in logs. This additional message does not need to have `error` severity, since the previous, generic message is already marked as `error`. This patch simply makes it easier to write tests, because in case this error is expected, only one message needs to be explicitly ignored instead of two. Closes #7597 --- db/view/view.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/view/view.cc b/db/view/view.cc index d44a8b9cd3..2b59b0fc1e 100644 --- a/db/view/view.cc +++ b/db/view/view.cc @@ -193,7 +193,7 @@ db::view::base_info_ptr view_info::make_base_dependent_view_info(const schema& b vlogger.error("Column {} in view {}.{} was not found in the base table {}.{}", to_sstring_view(view_col_name), _schema.ks_name(), _schema.cf_name(), base.ks_name(), base.cf_name()); if (to_sstring_view(view_col_name) == "idx_token") { - vlogger.error("Missing idx_token column is caused by an incorrect upgrade of a secondary index. " + vlogger.warn("Missing idx_token column is caused by an incorrect upgrade of a secondary index. " "Please recreate index {}.{} to avoid future issues.", _schema.ks_name(), _schema.cf_name()); } // If we didn't find the column in the base column then it must have been deleted