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

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

                Author: ASF GitHub Bot
            Created on: 24/Mar/22 14:29
            Start Date: 24/Mar/22 14:29
    Worklog Time Spent: 10m 
      Work Description: deniskuzZ commented on a change in pull request #3128:
URL: https://github.com/apache/hive/pull/3128#discussion_r834372124



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java
##########
@@ -3243,6 +3244,21 @@ public static AcidDirectory 
getAcidStateFromCache(Supplier<FileSystem> fileSyste
     return value.getDirInfo();
   }
 
+  public static void 
tryInvalidateDirCache(org.apache.hadoop.hive.metastore.api.Table table) {
+    if (dirCacheInited.get()) {
+      TableName tableName = new TableName(table.getCatName(), 
table.getDbName(), table.getTableName());
+      String key = tableName.getNotEmptyDbTable() + "_" + 
table.getSd().getLocation();

Review comment:
       I think you can use here AcidUtils.getFullTableName(table.getDbName(), 
table.getTableName())




-- 
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: 747255)
    Time Spent: 0.5h  (was: 20m)

> Invalidate acid table directory cache on drop table
> ---------------------------------------------------
>
>                 Key: HIVE-26060
>                 URL: https://issues.apache.org/jira/browse/HIVE-26060
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 4.0.0-alpha-1
>            Reporter: Antal Sinkovits
>            Assignee: Antal Sinkovits
>            Priority: Minor
>              Labels: ACID, pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




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

Reply via email to