Plugins can close Elasticsearch clients and break other plugins #48963
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:New Platform
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Currently, the clients exposed by the ElasticsearchService in the New Platform are shared instances across all plugins. If one plugin calls the
close()
method, the client will stop working for all other plugins.We should probably not expose this method to plugins at all, except in clients exposed via
createCluster
.There are no known instances of this at this time, so this is probably low priority or could be fixed when we add the new clients in #35508
The text was updated successfully, but these errors were encountered: