SOLR-14114: Add WARN to Solr log that embedded ZK is not supported in production (#1273)

(cherry picked from commit 57c7139ea3e8ed719d79a01a6b0d8aaca6e88cc5)
This commit is contained in:
Jan Høydahl 2020-02-24 09:59:33 +01:00 committed by Jan Høydahl
parent 365728f7f4
commit e49dd55c47
2 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,8 @@ Improvements
* SOLR-14270: export command to have an option to write to a zip file (noble)
* SOLR-14114: Add WARN to Solr log that embedded ZK is not supported in production (janhoy)
Optimizations
---------------------

View File

@ -134,6 +134,8 @@ public class SolrZkServer {
log.info("STARTING EMBEDDED STANDALONE ZOOKEEPER SERVER at port " + zkProps.getClientPortAddress().getPort());
}
log.warn("Embedded Zookeeper is not recommended in production environments. See Reference Guide for details.");
zkThread.setDaemon(true);
zkThread.start();
try {