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

Kristopher Kane updated KNOX-1413:
----------------------------------
    Description: 
WebHdfsHaDispatch checks return status for 403 for StandbyException and 
SafeModeException and raises context accurate exceptions.  

FileAlreadyExistsException is also surfaced from WebHDFS as a 403 but is not 
captured explicitly and the error handling falls through to catching 
IOException which then conducts failoverRequest as if it is a StandbyException. 

The strange thing is 403 with the FileAlreadyExistsException does return 
sometimes.  I think this has to do with where the rounds of NN HA failover end 
up lying.  With a default of three, it can fall on a standby namenode and 500 
is returned.  Other times the correct 403 are returned after the default of 
three failover attempts.  

 

This was seen on 0.12.0 but master branch code hasn't change enough to alter 
this behavior. 

 

  was:
WebHdfsHaDispatch checks return status for 403 for StandbyException and 
SafeModeException and raises context accurate exceptions.  


 FileAlreadyExistsException is also surfaced from WebHDFS as a 403 but is not 
captured explicitly and the error handling falls through to catching 
IOException which then conducts failoverRequest as if it is a StandbyException. 

The strange thing is 403 with the FileAlreadyExistsException does return some 
times.  I think this has to do with where the rounds of NN HA failover end up 
lying.  With a default of three, it can fall on a standby namenode and 500 is 
returned.  Other times the correct 403 are returned after the default of three 
failover attempts.  

 

This was seen on 0.12.0 but master branch code hasn't change enough to alter 
this behavior. 

 


> Knox masks WebHDFS 403 errors which are not NameNode HA or safe mode related
> ----------------------------------------------------------------------------
>
>                 Key: KNOX-1413
>                 URL: https://issues.apache.org/jira/browse/KNOX-1413
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.12.0
>            Reporter: Kristopher Kane
>            Assignee: Kristopher Kane
>            Priority: Minor
>
> WebHdfsHaDispatch checks return status for 403 for StandbyException and 
> SafeModeException and raises context accurate exceptions.  
> FileAlreadyExistsException is also surfaced from WebHDFS as a 403 but is not 
> captured explicitly and the error handling falls through to catching 
> IOException which then conducts failoverRequest as if it is a 
> StandbyException. 
> The strange thing is 403 with the FileAlreadyExistsException does return 
> sometimes.  I think this has to do with where the rounds of NN HA failover 
> end up lying.  With a default of three, it can fall on a standby namenode and 
> 500 is returned.  Other times the correct 403 are returned after the default 
> of three failover attempts.  
>  
> This was seen on 0.12.0 but master branch code hasn't change enough to alter 
> this behavior. 
>  



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

Reply via email to