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

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

                Author: ASF GitHub Bot
            Created on: 18/Mar/19 16:18
            Start Date: 18/Mar/19 16:18
    Worklog Time Spent: 10m 
      Work Description: ashutosh-bapat commented on pull request #572: 
HIVE-21430 : INSERT into a dynamically partitioned table with autogather stats 
disabled throws a MetaException
URL: https://github.com/apache/hive/pull/572#discussion_r266524121
 
 

 ##########
 File path: ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
 ##########
 @@ -2377,9 +2382,15 @@ private void setStatsPropAndAlterPartitions(boolean 
resetStatistics, Table tbl,
       LOG.debug(sb.toString());
     }
 
+    String validWriteIdList = null;
+    Long writeId = 0L;
 
 Review comment:
   Done.
 
----------------------------------------------------------------
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:
us...@infra.apache.org


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

            Worklog Id:     (was: 214856)
            Time Spent: 50m  (was: 40m)
    Remaining Estimate: 47h 10m  (was: 47h 20m)

> INSERT into a dynamically partitioned table with hive.stats.autogather = 
> false throws a MetaException
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-21430
>                 URL: https://issues.apache.org/jira/browse/HIVE-21430
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ashutosh Bapat
>            Assignee: Ashutosh Bapat
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>         Attachments: HIVE-21430.01.patch, metaexception_repro.patch, 
> org.apache.hadoop.hive.ql.stats.TestStatsUpdaterThread-output.txt
>
>   Original Estimate: 48h
>          Time Spent: 50m
>  Remaining Estimate: 47h 10m
>
> When the test TestStatsUpdaterThread#testTxnDynamicPartitions added in the 
> attached patch is run it throws exception (full logs attached.)
> org.apache.hadoop.hive.metastore.api.MetaException: Cannot change stats state 
> for a transactional table default.simple_stats without providing the 
> transactional write state for verification (new write ID 5, valid write IDs 
> null; current state \{"BASIC_STATS":"true","COLUMN_STATS":{"s":"true"}}; new 
> state null
>  at 
> org.apache.hadoop.hive.metastore.ObjectStore.alterPartitionNoTxn(ObjectStore.java:4328)
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to