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

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

                Author: ASF GitHub Bot
            Created on: 07/Dec/21 06:37
            Start Date: 07/Dec/21 06:37
    Worklog Time Spent: 10m 
      Work Description: maheshk114 opened a new pull request #2846:
URL: https://github.com/apache/hive/pull/2846


   
   ### What changes were proposed in this pull request?
   <!--
   
   Removes the check to prevent user from creating a database with existing 
managed location.Now with this fix, user will nbe able to create a database 
even if the managed location specified is already exist.
   -->
   
   
   ### Why are the changes needed?
   <!--
   TO maintain the backward compatibility.
   -->
   
   
   ### Does this PR introduce _any_ user-facing change?
   <!--
   Yes, now user will be bale to create the database even if the managed 
location specified is already exist.
   -->
   
   
   ### How was this patch tested?
   <!--
   Unit test is added to confirm the behaviour.
   -->
   


-- 
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: gitbox-unsubscr...@hive.apache.org

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


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

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

> Hive DB creation is failing when MANAGEDLOCATION is specified with existing 
> location
> ------------------------------------------------------------------------------------
>
>                 Key: HIVE-25778
>                 URL: https://issues.apache.org/jira/browse/HIVE-25778
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2, Metastore
>            Reporter: mahesh kumar behera
>            Assignee: mahesh kumar behera
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> As part of HIVE-23387 check is added to restrict user from creating database 
> with managed table location, if the location is already present. This was not 
> the case. As this is causing backward compatibility issue, the check needs to 
> be removed.
>  
> {code:java}
> if (madeManagedDir) {
>   LOG.info("Created database path in managed directory " + dbMgdPath);
> } else {
>   throw new MetaException(
>       "Unable to create database managed directory " + dbMgdPath + ", failed 
> to create database " + db.getName());
> }  {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to