[ 
https://issues.apache.org/jira/browse/SENTRY-1676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15950344#comment-15950344
 ] 

Hadoop QA commented on SENTRY-1676:
-----------------------------------

Here are the results of testing the latest attachment
https://issues.apache.org/jira/secure/attachment/12861375/SENTRY-1676.001-sentry-ha-redesign.patch
 against sentry-ha-redesign.

{color:green}Overall:{color} +1 all checks pass

{color:green}SUCCESS:{color} all tests passed

Console output: 
https://builds.apache.org/job/PreCommit-SENTRY-Build/2461/console

This message is automatically generated.

> FullUpdateInitializer#createInitialUpdate should not throw RuntimeException
> ---------------------------------------------------------------------------
>
>                 Key: SENTRY-1676
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1676
>             Project: Sentry
>          Issue Type: Sub-task
>          Components: Hdfs Plugin
>    Affects Versions: sentry-ha-redesign
>            Reporter: Lei (Eddy) Xu
>            Assignee: Alexander Kolbasov
>             Fix For: sentry-ha-redesign
>
>         Attachments: SENTRY-1676.001-sentry-ha-redesign.patch
>
>
> In {{FullUpdateInitialize#createInitialUpdate}}, it wraps any exception 
> occurred in db tasks using {{RuntimeException}}
> {code:title=FullUpdateInitialize.createInitialUpdate()}
>  // Fail the HMS startup if tasks are not all successful and
>  // fail on partial updates flag is set in the config.
>  if (!callResult.getSuccessStatus() && failOnRetry) {
>     throw new RuntimeException(callResult.getFailure());
>  }
> {code}
> We should not use {{RumtimeException}} here, because it is an unchecked 
> exception, which is easier to miss to catch from the callers.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to