okumin opened a new pull request, #685:
URL: https://github.com/apache/ranger/pull/685

   ## What changes were proposed in this pull request?
   
   This PR would add more contexts to error logs when failing to load a 
configuration file, such as ranger-admin-site.xml.
   
   https://issues.apache.org/jira/browse/RANGER-5338
   
   ## How was this patch tested?
   
   I executed [this test 
case](https://github.com/apache/ranger/blob/c1528cd526a7c8dfcb8390b78dcaa25e43f4efbe/security-admin/src/test/java/org/apache/ranger/common/TestRangerProperties.java#L58-L63)
 and confirmed that the following error message showed up.
   
   ```
   ERROR org.apache.ranger.plugin.util.XMLUtils -- Error loading : 
non-existent-file.xml
   java.io.FileNotFoundException: non-existent-file.xml is not found
        at 
org.apache.ranger.plugin.util.XMLUtils.getFileInputStream(XMLUtils.java:139)
        at org.apache.ranger.plugin.util.XMLUtils.loadConfig(XMLUtils.java:51)
        at 
org.apache.ranger.common.TestRangerProperties.testXMLUtilsLoadConfigNoFileGraceful(TestRangerProperties.java:61)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to