You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Pradeep Agrawal (Jira)" <ji...@apache.org> on 2021/12/28 05:10:00 UTC

[jira] [Resolved] (RANGER-3290) ArrayIndexOutOfBoundsException if solr is down

     [ https://issues.apache.org/jira/browse/RANGER-3290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pradeep Agrawal resolved RANGER-3290.
-------------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

> ArrayIndexOutOfBoundsException if solr is down
> ----------------------------------------------
>
>                 Key: RANGER-3290
>                 URL: https://issues.apache.org/jira/browse/RANGER-3290
>             Project: Ranger
>          Issue Type: Improvement
>          Components: audit
>            Reporter: Andras Salamon
>            Priority: Minor
>             Fix For: 3.0.0
>
>         Attachments: RANGER-3290-01.patch, RANGER-3290-02.patch
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> [SolrCollectionBootstrapper|https://github.com/apache/ranger/blob/master/embeddedwebserver/src/main/java/org/apache/ranger/server/tomcat/SolrCollectionBootstrapper.java] 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):
> {noformat}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{noformat}
> On the other hand, if solr is down during the config upload phase the error message is not too useful:
> {noformat}May 20, 2021 8:07:59 AM org.apache.ranger.server.tomcat.SolrCollectionBootstrapper uploadConfiguration
> SEVERE: Error while uploading configs : java.lang.ArrayIndexOutOfBoundsException: 0{noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)