Skip to content

Fix persistent search restart with affinity-based load balancing (backport) - #333

Merged
pavelhoral merged 1 commit into
sustaining/15.xfrom
backport/pr-332-sustaining/15.x
Aug 10, 2026
Merged

Fix persistent search restart with affinity-based load balancing (backport)#333
pavelhoral merged 1 commit into
sustaining/15.xfrom
backport/pr-332-sustaining/15.x

Conversation

@wren-security-backport-bot

Copy link
Copy Markdown

This PR is auto-generated as a backport of #332.

Original title: Fix persistent search restart with affinity-based load balancing
Original author: fyrbach


Problem

When using affinity-based request load balancing, persistent search was not restarted after an underlying LDAP connection error.

Cause

The affinity request load balancer provides proxy connections and obtains a real connection for each individual
request. As a result, the connection event listener added in #269 was never notified of underlying connection errors.

Fix

Trigger the restart from the asynchronous search failure handler rather than a connection event listener.

How to verify

Use affinity-based load balancing, terminate the underlying LDAP connection, and verify that persistent search is
restarted.

@pavelhoral pavelhoral left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pavelhoral
pavelhoral merged commit b8d4e8b into sustaining/15.x Aug 10, 2026
4 checks passed
@pavelhoral
pavelhoral deleted the backport/pr-332-sustaining/15.x branch August 10, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants