diff --git a/examples/skywalking/Dockerfile-elasticsearch b/examples/skywalking/Dockerfile-elasticsearch index 892c716d6115..38749915f606 100644 --- a/examples/skywalking/Dockerfile-elasticsearch +++ b/examples/skywalking/Dockerfile-elasticsearch @@ -1 +1 @@ -FROM elasticsearch:8.9.2@sha256:38082e945768e8e98fc0d828c810baf0b63d58ddc9059db2a62e4c293e44e817 +FROM elasticsearch:8.10.2@sha256:53efb4ba72e1c71c8223ee8d8de6537e8d992ad6cc8fcdf5dd944be93b6ab814 diff --git a/source/common/upstream/upstream_impl.cc b/source/common/upstream/upstream_impl.cc index a21ae634b57f..3d339bc9363a 100644 --- a/source/common/upstream/upstream_impl.cc +++ b/source/common/upstream/upstream_impl.cc @@ -863,74 +863,6 @@ ClusterInfoImpl::generateTimeoutBudgetStats(Stats::Scope& scope, return {stat_names, scope}; } -// Implements the FactoryContext interface required by network filters. -class FactoryContextImpl : public Server::Configuration::CommonFactoryContext { -public: - // Create from a TransportSocketFactoryContext using parent stats_scope and runtime - // other contexts taken from TransportSocketFactoryContext. - FactoryContextImpl(Stats::Scope& stats_scope, Envoy::Runtime::Loader& runtime, - Server::Configuration::TransportSocketFactoryContext& c) - : admin_(c.serverFactoryContext().admin()), - server_scope_(c.serverFactoryContext().serverScope()), stats_scope_(stats_scope), - cluster_manager_(c.clusterManager()), local_info_(c.serverFactoryContext().localInfo()), - dispatcher_(c.serverFactoryContext().mainThreadDispatcher()), runtime_(runtime), - singleton_manager_(c.serverFactoryContext().singletonManager()), - tls_(c.serverFactoryContext().threadLocal()), api_(c.serverFactoryContext().api()), - options_(c.serverFactoryContext().options()), - message_validation_visitor_(c.messageValidationVisitor()) {} - - Upstream::ClusterManager& clusterManager() override { return cluster_manager_; } - Event::Dispatcher& mainThreadDispatcher() override { return dispatcher_; } - const Server::Options& options() override { return options_; } - const LocalInfo::LocalInfo& localInfo() const override { return local_info_; } - Envoy::Runtime::Loader& runtime() override { return runtime_; } - Stats::Scope& scope() override { return stats_scope_; } - Stats::Scope& serverScope() override { return server_scope_; } - Singleton::Manager& singletonManager() override { return singleton_manager_; } - ThreadLocal::SlotAllocator& threadLocal() override { return tls_; } - OptRef admin() override { return admin_; } - TimeSource& timeSource() override { return api().timeSource(); } - ProtobufMessage::ValidationContext& messageValidationContext() override { - // TODO(davinci26): Needs an implementation for this context. Currently not used. - PANIC("unimplemented"); - } - - AccessLog::AccessLogManager& accessLogManager() override { - // TODO(davinci26): Needs an implementation for this context. Currently not used. - PANIC("unimplemented"); - } - - ProtobufMessage::ValidationVisitor& messageValidationVisitor() override { - return message_validation_visitor_; - } - - Server::ServerLifecycleNotifier& lifecycleNotifier() override { - // TODO(davinci26): Needs an implementation for this context. Currently not used. - PANIC("unimplemented"); - } - - Init::Manager& initManager() override { - // TODO(davinci26): Needs an implementation for this context. Currently not used. - PANIC("unimplemented"); - } - - Api::Api& api() override { return api_; } - -private: - OptRef admin_; - Stats::Scope& server_scope_; - Stats::Scope& stats_scope_; - Upstream::ClusterManager& cluster_manager_; - const LocalInfo::LocalInfo& local_info_; - Event::Dispatcher& dispatcher_; - Envoy::Runtime::Loader& runtime_; - Singleton::Manager& singleton_manager_; - ThreadLocal::SlotAllocator& tls_; - Api::Api& api_; - const Server::Options& options_; - ProtobufMessage::ValidationVisitor& message_validation_visitor_; -}; - std::shared_ptr createOptions(const envoy::config::cluster::v3::Cluster& config, std::shared_ptr&& options, @@ -1066,8 +998,6 @@ ClusterInfoImpl::ClusterInfoImpl( server_context)), network_filter_config_provider_manager_( createSingletonUpstreamNetworkFilterConfigProviderManager(server_context)), - factory_context_( - std::make_unique(*stats_scope_, runtime, factory_context)), upstream_context_(server_context, init_manager, *stats_scope_), per_connection_buffer_limit_bytes_( PROTOBUF_GET_WRAPPED_OR_DEFAULT(config, per_connection_buffer_limit_bytes, 1024 * 1024)), diff --git a/source/common/upstream/upstream_impl.h b/source/common/upstream/upstream_impl.h index 454b08cc3194..7478b9108439 100644 --- a/source/common/upstream/upstream_impl.h +++ b/source/common/upstream/upstream_impl.h @@ -1094,7 +1094,6 @@ class ClusterInfoImpl : public ClusterInfo, std::shared_ptr http_filter_config_provider_manager_; std::shared_ptr network_filter_config_provider_manager_; - const std::unique_ptr factory_context_; Filter::NetworkFilterFactoriesList filter_factories_; Http::FilterChainUtility::FilterFactoriesList http_filter_factories_; mutable Http::Http1::CodecStats::AtomicPtr http1_codec_stats_;