Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-3094

solr component does not wait for solrcloud to stabilize

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 1.2.1
    • None
    • solr
    • None
    • 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

       

    Description

      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,
      {{    }}}

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            wsmith Warren Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: