[
https://issues.apache.org/jira/browse/HIVE-24514?focusedWorklogId=523331&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-523331
]
ASF GitHub Bot logged work on HIVE-24514:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 11/Dec/20 22:07
Start Date: 11/Dec/20 22:07
Worklog Time Spent: 10m
Work Description: nrg4878 commented on a change in pull request #1761:
URL: https://github.com/apache/hive/pull/1761#discussion_r541346293
##########
File path:
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java
##########
@@ -8556,6 +8556,9 @@ public UpdateMDatabaseURIRetVal updateMDatabaseURI(URI
oldLoc, URI newLoc, boole
updateLocations.put(locationURI.toString(), dbLoc);
if (!dryRun) {
mDB.setLocationUri(dbLoc);
+ if
(org.apache.commons.lang3.StringUtils.isNotBlank(mDB.getManagedLocationUri())) {
+ mDB.setManagedLocationUri(dbLoc);
Review comment:
Looks like we are setting the value of locationURI for managedLocation.
dbLoc is based on mDB.getLocationURI(). Instead we should have similar logic
where string substitutions are performed on DB's managedlocation as well.
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 523331)
Time Spent: 20m (was: 10m)
> UpdateMDatabaseURI does not update managed location URI
> -------------------------------------------------------
>
> Key: HIVE-24514
> URL: https://issues.apache.org/jira/browse/HIVE-24514
> Project: Hive
> Issue Type: Bug
> Affects Versions: 4.0.0
> Reporter: Prasanth Jayachandran
> Assignee: Prasanth Jayachandran
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When FS Root is updated using metatool, if the DB has managed location
> defined,
> updateMDatabaseURI API should update the managed location as well. Currently
> it only updates location uri.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)