From 32eebc6f443889ed6951e2b177108612c4c35b15 Mon Sep 17 00:00:00 2001 From: asraa Date: Fri, 28 Aug 2020 17:47:54 -0400 Subject: [PATCH] fix (#12848) There was some shared state when the HCM was creating singletons. This clears the map. Risk Level: Low Testing: Checked bug fix in PR that reproduces #12530 Signed-off-by: Asra Ali Signed-off-by: Clara Andrew-Wani --- test/extensions/filters/network/common/fuzz/uber_readfilter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/extensions/filters/network/common/fuzz/uber_readfilter.cc b/test/extensions/filters/network/common/fuzz/uber_readfilter.cc index a15fbc907716..20f1484c2712 100644 --- a/test/extensions/filters/network/common/fuzz/uber_readfilter.cc +++ b/test/extensions/filters/network/common/fuzz/uber_readfilter.cc @@ -22,6 +22,7 @@ void UberFilterFuzzer::reset() { Event::MockDispatcher& mock_dispatcher = dynamic_cast(read_filter_callbacks_->connection_.dispatcher_); mock_dispatcher.clearDeferredDeleteList(); + factory_context_.admin_.config_tracker_.config_tracker_callbacks_.clear(); read_filter_.reset(); } @@ -94,7 +95,6 @@ void UberFilterFuzzer::fuzz( checkInvalidInputForFuzzer(filter_name, message.get()); ENVOY_LOG_MISC(info, "Config content after decoded: {}", message->DebugString()); cb_ = factory.createFilterFactoryFromProto(*message, factory_context_); - } catch (const EnvoyException& e) { ENVOY_LOG_MISC(debug, "Controlled exception in filter setup {}", e.what()); return;