Elasticsearch logs show Did you forget to close a response body

Solution Unverified - Updated -

Issue

The logging-elasticsearch pods have a lot of this message:

WARNING: A connection to https://10.101.16.1/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);
Jul 22, 2021 7:37:15 PM okhttp3.internal.platform.Platform log

Environment

  • Red Hat OpenShift Container Platform
    • 3.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content