You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2020/02/24 09:00:42 UTC

[lucene-solr] branch branch_8x updated: SOLR-14114: Add WARN to Solr log that embedded ZK is not supported in production (#1273)

This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new e49dd55  SOLR-14114: Add WARN to Solr log that embedded ZK is not supported in production (#1273)
e49dd55 is described below

commit e49dd55c4740d4033eed74df4579533dad1c71ba
Author: Jan Høydahl <ja...@users.noreply.github.com>
AuthorDate: Mon Feb 24 09:59:33 2020 +0100

    SOLR-14114: Add WARN to Solr log that embedded ZK is not supported in production (#1273)
    
    (cherry picked from commit 57c7139ea3e8ed719d79a01a6b0d8aaca6e88cc5)
---
 solr/CHANGES.txt                                           | 2 ++
 solr/core/src/java/org/apache/solr/cloud/SolrZkServer.java | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index f2800c4..6a9ab27 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -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
 ---------------------
 
diff --git a/solr/core/src/java/org/apache/solr/cloud/SolrZkServer.java b/solr/core/src/java/org/apache/solr/cloud/SolrZkServer.java
index 3d098aa..886a3a5 100644
--- a/solr/core/src/java/org/apache/solr/cloud/SolrZkServer.java
+++ b/solr/core/src/java/org/apache/solr/cloud/SolrZkServer.java
@@ -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 {