You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Warren Smith (JIRA)" <ji...@apache.org> on 2018/10/09 19:33:00 UTC

[jira] [Created] (BIGTOP-3094) solr component does not wait for solrcloud to stabilize

Warren Smith created BIGTOP-3094:
------------------------------------

             Summary: solr component does not wait for solrcloud to stabilize
                 Key: BIGTOP-3094
                 URL: https://issues.apache.org/jira/browse/BIGTOP-3094
             Project: Bigtop
          Issue Type: Bug
          Components: solr
    Affects Versions: 1.2.1
         Environment: puppet version: 3.8.7

bigtop version: 1.2.1

vagrant version 2.0.3

host os: centos 7.5.1804

client box: bento/centos-7.4

 
            Reporter: Warren Smith


Received the following message during 'vagrant provision':


{{ ==> host: Error: /bin/bash -c '/usr/bin/solrctl debug-dump | grep -q solr.xml || /usr/bin/solrctl init' returned 1 instead of one of [0]}}
{{ ==> host: Error: /Stage[main]/Solr::Server/Exec[solr init]/returns: change from notrun to 0 failed: /bin/bash -c '/usr/bin/solrctl debug-dump | grep -q solr.xml || /usr/bin/solrctl init' returned 1 instead of one of [0]}}

Immediately running 'vagrant provision' right after this error caused the puppet provisioning to succeed.

 

Worked around by adding in a 'wait_for' resource (requires the heini/wait_for plugin) to the solr puppet module a la:

{{}}{{    *wait_for { 'solr installed':*}}
{{      *query => "/bin/bash -c '/usr/bin/solrctl debug-dump | grep -q solr.xml",*}}
{{      *exit_code => 0,*}}
{{      *polling_frequency => 5,*}}
{{      *max_retries => 30,*}}
{{    *} -> # and then*}}
{{    exec { "solr init":}}
{{      command => "/usr/bin/solrctl init'",}}
{{      require => [ Package["solr-server"], File["/etc/default/solr"] ],}}
{{      logoutput => true,}}
{{    }}}

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)