Skip to content

[Backport 3.x] Make ApacheHttpClient5Transport#setNodes public - #2300

Merged
reta merged 1 commit into
opensearch-project:3.xfrom
opensearch-ci-bot:backport/backport-2299-to-3.x
Nov 17, 2026
Merged

reta merged 1 commit into
opensearch-project:3.xfrom
opensearch-ci-bot:backport/backport-2299-to-3.x

Conversation

@opensearch-ci-bot

Copy link
Copy Markdown
Contributor

Backport 1f6b171 from #2299.

)

* Make ApacheHttpClient5Transport#setNodes public

ApacheHttpClient5Transport already supports replacing its nodes: setNodes
builds a new immutable node list and auth cache, publishes them through a
volatile field, and clears the denylist. Requests already in flight keep
the snapshot they started with. The method was private, so the only way to
follow a change in cluster topology (endpoint rotation, service discovery)
was to build and swap in a whole new transport, HTTP client and connection
pool.

Make setNodes public, document its semantics, and add tests. This is
consistent with the low-level RestClient, whose setNodes is public.
Behavior is unchanged.

Signed-off-by: Puneeth C <puneethchoppanati@gmail.com>

* Reference PR opensearch-project#2299 in CHANGELOG

Signed-off-by: Puneeth C <puneethchoppanati@gmail.com>

---------

Signed-off-by: Puneeth C <puneethchoppanati@gmail.com>
(cherry picked from commit 1f6b171)
Signed-off-by: opensearch-ci-bot <opensearch-infra@amazon.com>
@reta reta added the v3.11.1 Issues and PRs related to version v3.11.1 label Nov 17, 2026
@reta
reta merged commit 9fcb6ec into opensearch-project:3.x Nov 17, 2026
59 checks passed
@opensearch-ci-bot
opensearch-ci-bot deleted the backport/backport-2299-to-3.x branch November 17, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v3.11.1 Issues and PRs related to version v3.11.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants