Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3290

ArrayIndexOutOfBoundsException if solr is down

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0, 2.3.0
    • audit
    • None

    Description

      SolrCollectionBootstrapper uploads a config to solr and creates a collection.

      If solr is down (there are no live servers) during the collection creation phase, we got a meaningful error message (from catalina.out):

      May 19, 2021 4:37:44 PM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper getCollections
      SEVERE: getCollections() operation failed : org.apache.solr.client.solrj.SolrServerException: No live SolrServers available to handle this request

      On the other hand, if solr is down during the config upload phase the error message is not too useful:

      May 20, 2021 8:07:59 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper uploadConfiguration
      SEVERE: Error while uploading configs : java.lang.ArrayIndexOutOfBoundsException: 0

      Attachments

        1. RANGER-3290-01.patch
          1 kB
          Andras Salamon
        2. RANGER-3290-02.patch
          1 kB
          Andras Salamon

        Activity

          People

            Unassigned Unassigned
            asalamon74 Andras Salamon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m