SOLR-18089: Configure zookeeper.maxCnxns for embeddedZkServer#4173
Open
openworld-maker wants to merge 1 commit intoapache:mainfrom
Open
SOLR-18089: Configure zookeeper.maxCnxns for embeddedZkServer#4173openworld-maker wants to merge 1 commit intoapache:mainfrom
openworld-maker wants to merge 1 commit intoapache:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes SOLR-18089 by explicitly configuring ZooKeeper's
zookeeper.maxCnxnssystem property to0for embedded ZooKeeper startup when it is not already set.Why
Embedded ZK startup emits:
"maxCnxns is not configured, using default value 0."
ZooKeeper uses
zookeeper.maxCnxnswith default0. Setting it explicitly suppresses the warning while preserving behavior.Changes
SolrZkServer:ZK_MAX_CNXNS_PROPERTY = "zookeeper.maxCnxns"ZK_MAX_CNXNS_DEFAULT = "0"ensureZkMaxCnxnsConfigured()and invoked it in:SolrZkServer.start()before ZooKeeper startupZkTestServer.run(...)before server initialization in test frameworkTests
ZkTestServerTest#testEmbeddedZkServerSetsMaxCnxnsDefaultWhenUnset:zookeeper.maxCnxnsZkTestServer"0"finallyVerification
:solr:test-framework:test --tests org.apache.solr.cloud.ZkTestServerTestpassed.tidy checkwas attempted but hit unrelated flaky failures insolrjtests (CloudSolrClientCacheTest).tidy:solr:core:check -x test:solr:test-framework:check -x test