Skip to content

ZOOKEEPER-4920: Fix flaky test ZooKeeperServerMaxCnxnsTest#2249

Merged
kezhuw merged 1 commit intoapache:masterfrom
kezhuw:ZOOKEEPER-4920-fix-flaky-ZooKeeperServerMaxCnxnsTest
Apr 25, 2025
Merged

ZOOKEEPER-4920: Fix flaky test ZooKeeperServerMaxCnxnsTest#2249
kezhuw merged 1 commit intoapache:masterfrom
kezhuw:ZOOKEEPER-4920-fix-flaky-ZooKeeperServerMaxCnxnsTest

Conversation

@kezhuw
Copy link
Copy Markdown
Member

@kezhuw kezhuw commented Apr 20, 2025

The restriction of maxCnxns may not be accurate due to concurrent races, say concurrent accepting. This is totally fine and not worth to make it accurate due to possible negative effects.

This commit circumvents this by connecting to each server maxCnxns times.

The restriction of maxCnxns may not be accurate due to concurrent races,
say concurrent accepting. This is totally fine and not worth to make it
accurate due to possible negative effects.

This commit circumvents this by connecting to each server maxCnxns times.
Copy link
Copy Markdown
Contributor

@cnauroth cnauroth left a comment

Choose a reason for hiding this comment

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

+1. Thank you @kezhuw .

@kezhuw kezhuw merged commit 840a666 into apache:master Apr 25, 2025
16 checks passed
@kezhuw kezhuw deleted the ZOOKEEPER-4920-fix-flaky-ZooKeeperServerMaxCnxnsTest branch April 25, 2025 02:45
meszinorbi pushed a commit to meszinorbi/zookeeper-up that referenced this pull request Dec 10, 2025
Reviewers: cnauroth
Author: kezhuw
Closes apache#2249 from kezhuw/ZOOKEEPER-4920-fix-flaky-ZooKeeperServerMaxCnxnsTest
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