Skip to content

Commit

Permalink
Merge pull request #5014 from ajfabbri/backport-4955-21-11-x
Browse files Browse the repository at this point in the history
[v21.11.x] cluster: clean up config error logging
  • Loading branch information
Aaron Fabbri committed Jun 3, 2022
2 parents ef7705a + 2b70d9f commit 9c3e63c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/v/cluster/config_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ static void preload_local(
result) {
auto& cfg = config::shard_local_cfg();
if (cfg.contains(key)) {
auto& property = cfg.get(key);
try {
// Cache values are string-ized yaml. In many cases this
// is the same as the underlying value (e.g. integers, bools),
// but for strings it's not (the literal value in the cache is
// "\"foo\"").
auto decoded = YAML::Load(value.as<std::string>());
auto& property = cfg.get(key);
property.set_value(decoded);

// Because we are in preload, it doesn't matter if the property
Expand All @@ -266,7 +266,7 @@ static void preload_local(
clusterlog.info,
"Ignoring invalid property: {}={}",
key,
YAML::Dump(value));
property.format_raw(YAML::Dump(value)));
result.value().get().invalid.push_back(key);
}
}
Expand Down Expand Up @@ -520,11 +520,6 @@ void config_manager::merge_apply_result(
config_status& status,
cluster_config_delta_cmd_data const& data,
apply_result const& r) {
vlog(
clusterlog.trace,
"merge_apply_result: data {} {}",
fmt::ptr(&data),
data.upsert.size());
status.restart |= r.restart;

std::set<ss::sstring> errored_properties;
Expand Down

0 comments on commit 9c3e63c

Please sign in to comment.