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

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

                Author: ASF GitHub Bot
            Created on: 07/Jun/22 09:34
            Start Date: 07/Jun/22 09:34
    Worklog Time Spent: 10m 
      Work Description: pvary commented on code in PR #3103:
URL: https://github.com/apache/hive/pull/3103#discussion_r890997382


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/AcidEventListener.java:
##########
@@ -80,22 +82,18 @@ public void onDropTable(DropTableEvent tableEvent) throws 
MetaException {
       txnHandler.cleanupRecords(HiveObjectType.TABLE, null, table, null, 
!tableEvent.getDeleteData());
       
       if (!tableEvent.getDeleteData()) {
-        long currentTxn = 
Optional.ofNullable(tableEvent.getEnvironmentContext())
-          .map(EnvironmentContext::getProperties)
-          .map(prop -> prop.get("txnId"))
-          .map(Long::parseLong)
-          .orElse(0L);
+        long currentTxn = getTxnId(tableEvent.getEnvironmentContext());
         
-        try {
-          if (currentTxn > 0) {
+        if (currentTxn > 0) {

Review Comment:
   nit: Why is this change?





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

    Worklog Id:     (was: 778953)
    Time Spent: 0.5h  (was: 20m)

> Migrate remaining exclusive DDL operations to EXCL_WRITE lock & bug fixes
> -------------------------------------------------------------------------
>
>                 Key: HIVE-26293
>                 URL: https://issues.apache.org/jira/browse/HIVE-26293
>             Project: Hive
>          Issue Type: Task
>            Reporter: Denys Kuzmenko
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to