Skip to Main Content
Integration


This is an IBM Automation portal for Integration products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.


Status Submitted
Workspace API Connect
Created by Guest
Created on Aug 10, 2026

Implement automatic recovery mechanism for Elasticsearch client I/O Reactor STOPPED state in API Gateway

Hi,

I'd like to submit a feature request on behalf of our webMethods API Gateway customers who have encountered the following operational issue in production environments.

Background

In webMethods API Gateway, the internal Elasticsearch client uses Apache HttpAsyncClient to communicate with the Elasticsearch cluster for analytics data persistence. When the I/O Reactor enters a STOPPED state, the Elasticsearch client becomes permanently unavailable until the entire API Gateway is manually restarted.

This issue was confirmed in a production environment running API Gateway 10.5 (httpasyncclient-4.1.4), where 3 out of 4 cluster nodes were simultaneously affected. IBM Support confirmed through case investigation that this behavior is consistent with a known defect in httpasyncclient-4.1.4, specifically HTTPASYNC-155:

"Runtime exception in AbstractClientExchangeHandler can cause the I/O reactor to shut down."

This defect is documented in the official Apache HttpAsyncClient release notes:
https://downloads.apache.org/httpcomponents/httpasyncclient/RELEASE_NOTES-4.1.x.txt

HTTPASYNC-155 was fixed in httpasyncclient-4.1.5, which ships with API Gateway 11.1. However, IBM Support confirmed that even with 4.1.5, the risk of the I/O Reactor entering the STOPPED state is reduced but not eliminated.

Problem

Once the I/O Reactor enters the STOPPED state, the following operational impact occurs:

  • Analytics data (transactionalEvents) cannot be saved to Elasticsearch and is permanently lost

  • API Gateway Administrator UI becomes inaccessible ("Data store is down")

  • The only recovery option is a full manual restart of API Gateway, which is disruptive in production environments

  • There is no way to recover without human intervention, regardless of API Gateway version

Additionally, in httpasyncclient-4.1.4 (used in API Gateway 10.5 and 10.15), the exception that causes the I/O Reactor to shut down is not always written to the log, making root cause identification extremely difficult.

Why This Matters Even in API Gateway 11.1

API Gateway 11.1 ships with httpasyncclient-4.1.5, in which HTTPASYNC-155 is fixed and exception logging behavior is improved. This means the STOPPED state can now be properly detected through the logged exception. The technical foundation for implementing an automatic recovery mechanism is therefore already in place in API Gateway 11.1. However, no such mechanism has been implemented.

Since the risk is not fully eliminated even in 11.1, a transient network disruption or runtime exception could still cause the I/O Reactor to enter the STOPPED state, leaving manual restart as the only option.

Proposed Enhancement

We request that API Gateway implement an automatic recovery mechanism that detects when the Elasticsearch client's I/O Reactor enters the STOPPED state and automatically recreates the Elasticsearch client instance without requiring a full API Gateway restart.

The recovery mechanism could work as follows:

  • Monitor the Elasticsearch client's I/O Reactor state

  • Upon detecting the STOPPED state, log an appropriate error message

  • Automatically recreate the HttpAsyncClient instance and re-establish the Elasticsearch connection

  • Resume normal analytics data persistence without requiring a restart

Impact

Without this enhancement, even after upgrading to API Gateway 11.1, a rare but possible condition can still cause permanent loss of Elasticsearch connectivity that requires manual intervention. This is a fundamental operational stability concern for production environments running API Gateway.

This issue affects API Gateway 10.5, 10.15, and potentially 11.1.

Thanks and regards,

Sunjin Yim

Idea priority Low