You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/03/08 11:27:00 UTC

[jira] [Work logged] (HIVE-24843) Remove unnecessary throw-catch in Deadline

     [ https://issues.apache.org/jira/browse/HIVE-24843?focusedWorklogId=562308&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-562308 ]

ASF GitHub Bot logged work on HIVE-24843:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Mar/21 11:26
            Start Date: 08/Mar/21 11:26
    Worklog Time Spent: 10m 
      Work Description: mszurap opened a new pull request #2047:
URL: https://github.com/apache/hive/pull/2047


   Remove an unnecessary throw-catch in the Deadline.java
   
   ### What changes were proposed in this pull request?
   - Removing the unnecessary throw-catch -> throw the MetaException directly
   
   ### Why are the changes needed?
   - Thowing and catching - then re-throwing is an additional overhead
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Tested in a local cluster
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 562308)
    Remaining Estimate: 0h
            Time Spent: 10m

> Remove unnecessary throw-catch in Deadline
> ------------------------------------------
>
>                 Key: HIVE-24843
>                 URL: https://issues.apache.org/jira/browse/HIVE-24843
>             Project: Hive
>          Issue Type: Bug
>          Components: Standalone Metastore
>            Reporter: Miklos Szurap
>            Priority: Minor
>         Attachments: HIVE-24843.1.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The [Deadline|https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/Deadline.java] has a throw-catch which is unnecessary. Previusly HIVE-16450 has refactored most of the exceptions, but missed it at the check() method.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)