Skip to content

Conversation

@carlcsaposs-canonical
Copy link
Contributor

Issue

During initial startup (i.e. scale-up), a unit will request a lock via the peer databag until it gets a peer-relation-joined event and learns that other units of OpenSearch are online

Solution

Wait until after the first peer-relation-joined event before trying to acquire lock (so that if [enough] units of opensearch are online, we request the opensearch lock instead of peer databag lock)

Mehdi-Bendriss
Mehdi-Bendriss previously approved these changes Apr 30, 2024
## Issue
During initial startup (i.e. scale-up), a unit will request a lock via the peer databag until it gets a peer-relation-joined event and learns that other units of OpenSearch are online

## Solution
Wait until after the first peer-relation-joined event before trying to acquire lock (so that if [enough] units of opensearch are online, we request the opensearch lock instead of peer databag lock)
@carlcsaposs-canonical carlcsaposs-canonical changed the base branch from main to fix-defer-peer-changed May 2, 2024 10:13
Mehdi-Bendriss
Mehdi-Bendriss previously approved these changes May 2, 2024
Base automatically changed from fix-defer-peer-changed to main May 2, 2024 11:56
@Mehdi-Bendriss Mehdi-Bendriss dismissed their stale review May 2, 2024 11:56

The base branch was changed.

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.

3 participants