[
https://issues.apache.org/jira/browse/HADOOP-19150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17837883#comment-17837883
]
Steve Loughran commented on HADOOP-19150:
-----------------------------------------
actually, it should be
{code}
AbfsRestOperationException e = intercept(AbfsRestOperationException, () ->
fs.getFileStatus(new Path("/")));
+ all the asserts on the exception
{code}
> Test ITestAbfsRestOperationException#testAuthFailException is broken.
> ----------------------------------------------------------------------
>
> Key: HADOOP-19150
> URL: https://issues.apache.org/jira/browse/HADOOP-19150
> Project: Hadoop Common
> Issue Type: Sub-task
> Reporter: Mukund Thakur
> Priority: Major
>
> {code:java}
> intercept(Exception.class,
> () -> {
> fs.getFileStatus(new Path("/"));
> }); {code}
> Intercept shouldn't be used as there are assertions in catch statements.
>
> CC [[email protected]] [~anujmodi2021] [~asrani_anmol]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]