lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Isabelle Giguere (JIRA)" <>
Subject [jira] [Commented] (SOLR-7642) Should launching Solr in cloud mode using a ZooKeeper chroot create the chroot znode if it doesn't exist?
Date Mon, 22 Oct 2018 15:09:00 GMT


Isabelle Giguere commented on SOLR-7642:

Attached proposition (not tested ;) ), blending both [~smolloy] and [~janhoy] 's ideas.

It might be overkill ... what does anyone think ?
First, creating the chroot must be allowed (if createZkRoot=true), then, the ZK root must
match the authorized root (set by solr.zkChroot).
The name 'createZkRoot' could be changed to solr.createZkRoot, for uniformity.

> Should launching Solr in cloud mode using a ZooKeeper chroot create the chroot znode
if it doesn't exist?
> ---------------------------------------------------------------------------------------------------------
>                 Key: SOLR-7642
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Timothy Potter
>            Priority: Minor
>         Attachments: SOLR-7642.patch, SOLR-7642.patch, SOLR-7642_tag_7.5.0.patch, SOLR-7642_tag_7.5.0_proposition.patch
> If you launch Solr for the first time in cloud mode using a ZooKeeper connection string
that includes a chroot leads to the following initialization error:
> {code}
> ERROR - 2015-06-05 17:15:50.410; [   ] org.apache.solr.common.SolrException;
A chroot was specified in ZkHost but the znode doesn't exist. localhost:2181/lan
>         at org.apache.solr.core.ZkContainer.initZooKeeper(
>         at org.apache.solr.core.CoreContainer.load(
>         at org.apache.solr.servlet.SolrDispatchFilter.createCoreContainer(
>         at org.apache.solr.servlet.SolrDispatchFilter.init(
>         at org.eclipse.jetty.servlet.FilterHolder.initialize(
>         at org.eclipse.jetty.servlet.ServletHandler.initialize(
>         at org.eclipse.jetty.servlet.ServletContextHandler.startContext(
>         at org.eclipse.jetty.webapp.WebAppContext.startWebapp(
>         at org.eclipse.jetty.webapp.WebAppContext.startContext(
>         at org.eclipse.jetty.server.handler.ContextHandler.doStart(
>         at org.eclipse.jetty.webapp.WebAppContext.doStart(
> {code}
> The work-around for this is to use the scripts/cloud-scripts/ script to create
the chroot znode (bootstrap action does this).
> I'm wondering if we shouldn't just create the znode if it doesn't exist? Or is that some
violation of using a chroot?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message