[jira] [Work logged] (HIVE-23960) Partition with no column statistics leads to unbalanced calls to openTransaction/commitTransaction error during get_partitions_by_names
[ https://issues.apache.org/jira/browse/HIVE-23960?focusedWorklogId=501715=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-501715 ] ASF GitHub Bot logged work on HIVE-23960: - Author: ASF GitHub Bot Created on: 17/Oct/20 00:56 Start Date: 17/Oct/20 00:56 Worklog Time Spent: 10m Work Description: github-actions[bot] closed pull request #1343: URL: https://github.com/apache/hive/pull/1343 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: 501715) Time Spent: 1h (was: 50m) > Partition with no column statistics leads to unbalanced calls to > openTransaction/commitTransaction error during get_partitions_by_names > --- > > Key: HIVE-23960 > URL: https://issues.apache.org/jira/browse/HIVE-23960 > Project: Hive > Issue Type: Task >Reporter: Pravin Sinha >Assignee: Pravin Sinha >Priority: Major > Labels: pull-request-available > Attachments: HIVE-23960.01.patch, HIVE-23960.02.patch, > HIVE-23960.03.patch > > Time Spent: 1h > Remaining Estimate: 0h > > {color:#172b4d}Creating a partition with data and adding another partition is > leading to unbalanced calls to open/commit transaction during > get_partitions_by_names call.{color} > {color:#172b4d}Issue was discovered during REPL DUMP operation which uses > this HMS call to get the metadata of partition. This error occurs when there > is a partition with no column statistics.{color} > {color:#172b4d}To reproduce:{color} > {code:java} > CREATE TABLE student_part_acid(name string, age int, gpa double) PARTITIONED > BY (ds string) STORED AS orc; > LOAD DATA INPATH ‘/user/hive/partDir/student_part_acid/ds=20110924’ INTO > TABLE student_part_acid partition(ds=20110924); > ALTER TABLE student_part_acid ADD PARTITION (ds=20110925); > Now if we try to preform REPL DUMP it fails with this the error "Unbalanced > calls to open/commit transaction" on the HS2 side. > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Work logged] (HIVE-23960) Partition with no column statistics leads to unbalanced calls to openTransaction/commitTransaction error during get_partitions_by_names
[ https://issues.apache.org/jira/browse/HIVE-23960?focusedWorklogId=498815=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-498815 ] ASF GitHub Bot logged work on HIVE-23960: - Author: ASF GitHub Bot Created on: 10/Oct/20 00:53 Start Date: 10/Oct/20 00:53 Worklog Time Spent: 10m Work Description: github-actions[bot] commented on pull request #1343: URL: https://github.com/apache/hive/pull/1343#issuecomment-706458147 This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reach out on the d...@hive.apache.org list if the patch is in need of reviews. 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: 498815) Time Spent: 50m (was: 40m) > Partition with no column statistics leads to unbalanced calls to > openTransaction/commitTransaction error during get_partitions_by_names > --- > > Key: HIVE-23960 > URL: https://issues.apache.org/jira/browse/HIVE-23960 > Project: Hive > Issue Type: Task >Reporter: Pravin Sinha >Assignee: Pravin Sinha >Priority: Major > Labels: pull-request-available > Attachments: HIVE-23960.01.patch, HIVE-23960.02.patch, > HIVE-23960.03.patch > > Time Spent: 50m > Remaining Estimate: 0h > > {color:#172b4d}Creating a partition with data and adding another partition is > leading to unbalanced calls to open/commit transaction during > get_partitions_by_names call.{color} > {color:#172b4d}Issue was discovered during REPL DUMP operation which uses > this HMS call to get the metadata of partition. This error occurs when there > is a partition with no column statistics.{color} > {color:#172b4d}To reproduce:{color} > {code:java} > CREATE TABLE student_part_acid(name string, age int, gpa double) PARTITIONED > BY (ds string) STORED AS orc; > LOAD DATA INPATH ‘/user/hive/partDir/student_part_acid/ds=20110924’ INTO > TABLE student_part_acid partition(ds=20110924); > ALTER TABLE student_part_acid ADD PARTITION (ds=20110925); > Now if we try to preform REPL DUMP it fails with this the error "Unbalanced > calls to open/commit transaction" on the HS2 side. > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Work logged] (HIVE-23960) Partition with no column statistics leads to unbalanced calls to openTransaction/commitTransaction error during get_partitions_by_names
[ https://issues.apache.org/jira/browse/HIVE-23960?focusedWorklogId=468390=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-468390 ] ASF GitHub Bot logged work on HIVE-23960: - Author: ASF GitHub Bot Created on: 10/Aug/20 04:36 Start Date: 10/Aug/20 04:36 Worklog Time Spent: 10m Work Description: pkumarsinha commented on pull request #1343: URL: https://github.com/apache/hive/pull/1343#issuecomment-671158062 > Could you please add a test case too, which would be failing before the fix, and running now? > Thanks, > Peter 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: 468390) Time Spent: 40m (was: 0.5h) > Partition with no column statistics leads to unbalanced calls to > openTransaction/commitTransaction error during get_partitions_by_names > --- > > Key: HIVE-23960 > URL: https://issues.apache.org/jira/browse/HIVE-23960 > Project: Hive > Issue Type: Task >Reporter: Pravin Sinha >Assignee: Pravin Sinha >Priority: Major > Labels: pull-request-available > Attachments: HIVE-23960.01.patch, HIVE-23960.02.patch, > HIVE-23960.03.patch > > Time Spent: 40m > Remaining Estimate: 0h > > {color:#172b4d}Creating a partition with data and adding another partition is > leading to unbalanced calls to open/commit transaction during > get_partitions_by_names call.{color} > {color:#172b4d}Issue was discovered during REPL DUMP operation which uses > this HMS call to get the metadata of partition. This error occurs when there > is a partition with no column statistics.{color} > {color:#172b4d}To reproduce:{color} > {code:java} > CREATE TABLE student_part_acid(name string, age int, gpa double) PARTITIONED > BY (ds string) STORED AS orc; > LOAD DATA INPATH ‘/user/hive/partDir/student_part_acid/ds=20110924’ INTO > TABLE student_part_acid partition(ds=20110924); > ALTER TABLE student_part_acid ADD PARTITION (ds=20110925); > Now if we try to preform REPL DUMP it fails with this the error "Unbalanced > calls to open/commit transaction" on the HS2 side. > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Work logged] (HIVE-23960) Partition with no column statistics leads to unbalanced calls to openTransaction/commitTransaction error during get_partitions_by_names
[ https://issues.apache.org/jira/browse/HIVE-23960?focusedWorklogId=465021=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-465021 ] ASF GitHub Bot logged work on HIVE-23960: - Author: ASF GitHub Bot Created on: 31/Jul/20 13:17 Start Date: 31/Jul/20 13:17 Worklog Time Spent: 10m Work Description: pkumarsinha commented on a change in pull request #1343: URL: https://github.com/apache/hive/pull/1343#discussion_r463604772 ## File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java ## @@ -6993,11 +6993,16 @@ public GetPartitionsByNamesResult get_partitions_by_names_req(GetPartitionsByNam // request them separately. for (Partition part: ret) { String partName = Warehouse.makePartName(table.getPartitionKeys(), part.getValues()); -List partColStatsList = -getMS().getPartitionColumnStatistics(parsedCatName, parsedDbName, tblName, -Collections.singletonList(partName), - StatsSetupConst.getColumnsHavingStats(part.getParameters()), -engine); +List partColStatsList = null; +List colNames = StatsSetupConst.getColumnsHavingStats(part.getParameters()); Review comment: Agree, I will make the change 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: 465021) Time Spent: 0.5h (was: 20m) > Partition with no column statistics leads to unbalanced calls to > openTransaction/commitTransaction error during get_partitions_by_names > --- > > Key: HIVE-23960 > URL: https://issues.apache.org/jira/browse/HIVE-23960 > Project: Hive > Issue Type: Task >Reporter: Pravin Sinha >Assignee: Pravin Sinha >Priority: Major > Labels: pull-request-available > Attachments: HIVE-23960.01.patch > > Time Spent: 0.5h > Remaining Estimate: 0h > > {color:#172b4d}Creating a partition with data and adding another partition is > leading to unbalanced calls to open/commit transaction during > get_partitions_by_names call.{color} > {color:#172b4d}Issue was discovered during REPL DUMP operation which uses > this HMS call to get the metadata of partition. This error occurs when there > is a partition with no column statistics.{color} > {color:#172b4d}To reproduce:{color} > {code:java} > CREATE TABLE student_part_acid(name string, age int, gpa double) PARTITIONED > BY (ds string) STORED AS orc; > LOAD DATA INPATH ‘/user/hive/partDir/student_part_acid/ds=20110924’ INTO > TABLE student_part_acid partition(ds=20110924); > ALTER TABLE student_part_acid ADD PARTITION (ds=20110925); > Now if we try to preform REPL DUMP it fails with this the error "Unbalanced > calls to open/commit transaction" on the HS2 side. > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Work logged] (HIVE-23960) Partition with no column statistics leads to unbalanced calls to openTransaction/commitTransaction error during get_partitions_by_names
[ https://issues.apache.org/jira/browse/HIVE-23960?focusedWorklogId=465013=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-465013 ] ASF GitHub Bot logged work on HIVE-23960: - Author: ASF GitHub Bot Created on: 31/Jul/20 12:51 Start Date: 31/Jul/20 12:51 Worklog Time Spent: 10m Work Description: pvary commented on a change in pull request #1343: URL: https://github.com/apache/hive/pull/1343#discussion_r463591370 ## File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java ## @@ -6993,11 +6993,16 @@ public GetPartitionsByNamesResult get_partitions_by_names_req(GetPartitionsByNam // request them separately. for (Partition part: ret) { String partName = Warehouse.makePartName(table.getPartitionKeys(), part.getValues()); -List partColStatsList = -getMS().getPartitionColumnStatistics(parsedCatName, parsedDbName, tblName, -Collections.singletonList(partName), - StatsSetupConst.getColumnsHavingStats(part.getParameters()), -engine); +List partColStatsList = null; +List colNames = StatsSetupConst.getColumnsHavingStats(part.getParameters()); Review comment: Might be a good idea to push this check inside the getPartitionColumnStatistics 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: 465013) Time Spent: 20m (was: 10m) > Partition with no column statistics leads to unbalanced calls to > openTransaction/commitTransaction error during get_partitions_by_names > --- > > Key: HIVE-23960 > URL: https://issues.apache.org/jira/browse/HIVE-23960 > Project: Hive > Issue Type: Task >Reporter: Pravin Sinha >Assignee: Pravin Sinha >Priority: Major > Labels: pull-request-available > Attachments: HIVE-23960.01.patch > > Time Spent: 20m > Remaining Estimate: 0h > > {color:#172b4d}Creating a partition with data and adding another partition is > leading to unbalanced calls to open/commit transaction during > get_partitions_by_names call.{color} > {color:#172b4d}Issue was discovered during REPL DUMP operation which uses > this HMS call to get the metadata of partition. This error occurs when there > is a partition with no column statistics.{color} > {color:#172b4d}To reproduce:{color} > {code:java} > CREATE TABLE student_part_acid(name string, age int, gpa double) PARTITIONED > BY (ds string) STORED AS orc; > LOAD DATA INPATH ‘/user/hive/partDir/student_part_acid/ds=20110924’ INTO > TABLE student_part_acid partition(ds=20110924); > ALTER TABLE student_part_acid ADD PARTITION (ds=20110925); > Now if we try to preform REPL DUMP it fails with this the error "Unbalanced > calls to open/commit transaction" on the HS2 side. > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Work logged] (HIVE-23960) Partition with no column statistics leads to unbalanced calls to openTransaction/commitTransaction error during get_partitions_by_names
[ https://issues.apache.org/jira/browse/HIVE-23960?focusedWorklogId=464812=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-464812 ] ASF GitHub Bot logged work on HIVE-23960: - Author: ASF GitHub Bot Created on: 31/Jul/20 00:29 Start Date: 31/Jul/20 00:29 Worklog Time Spent: 10m Work Description: pkumarsinha opened a new pull request #1343: URL: https://github.com/apache/hive/pull/1343 …calls to openTransaction/commitTransaction error during get_partitions_by_names ### What changes were proposed in this pull request? ### Why are the changes needed? ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? 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: 464812) Remaining Estimate: 0h Time Spent: 10m > Partition with no column statistics leads to unbalanced calls to > openTransaction/commitTransaction error during get_partitions_by_names > --- > > Key: HIVE-23960 > URL: https://issues.apache.org/jira/browse/HIVE-23960 > Project: Hive > Issue Type: Task >Reporter: Pravin Sinha >Assignee: Pravin Sinha >Priority: Major > Attachments: HIVE-23960.01.patch > > Time Spent: 10m > Remaining Estimate: 0h > > {color:#172b4d}Creating a partition with data and adding another partition is > leading to unbalanced calls to open/commit transaction during > get_partitions_by_names call.{color} > {color:#172b4d}Issue was discovered during REPL DUMP operation which uses > this HMS call to get the metadata of partition. This error occurs when there > is a partition with no column statistics.{color} > {color:#172b4d}To reproduce:{color} > {code:java} > CREATE TABLE student_part_acid(name string, age int, gpa double) PARTITIONED > BY (ds string) STORED AS orc; > LOAD DATA INPATH ‘/user/hive/partDir/student_part_acid/ds=20110924’ INTO > TABLE student_part_acid partition(ds=20110924); > ALTER TABLE student_part_acid ADD PARTITION (ds=20110925); > Now if we try to preform REPL DUMP it fails with this the error "Unbalanced > calls to open/commit transaction" on the HS2 side. > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)