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

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

                Author: ASF GitHub Bot
            Created on: 15/Apr/22 19:24
            Start Date: 15/Apr/22 19:24
    Worklog Time Spent: 10m 
      Work Description: kovjanos opened a new pull request, #3214:
URL: https://github.com/apache/hive/pull/3214

   ### What changes were proposed in this pull request?
   Missing keys/index is to be added to the HMS backend db schema
   
   ### Why are the changes needed?
   On a high-concurrency test we found that backend database is doing full 
table scans in some cases where the table has missing key/index.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Integration tests for all database types:
   ```
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running org.apache.hadoop.hive.metastore.dbinstall.ITestPostgres
   [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
13.949 s - in org.apache.hadoop.hive.metastore.dbinstall.ITestPostgres
   [INFO] Running org.apache.hadoop.hive.metastore.dbinstall.ITestMssql
   [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
33.711 s - in org.apache.hadoop.hive.metastore.dbinstall.ITestMssql
   [INFO] Running org.apache.hadoop.hive.metastore.dbinstall.ITestMysql
   [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
39.032 s - in org.apache.hadoop.hive.metastore.dbinstall.ITestMysql
   [INFO] Running org.apache.hadoop.hive.metastore.dbinstall.ITestDerby
   [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.101 
s - in org.apache.hadoop.hive.metastore.dbinstall.ITestDerby
   [INFO] Running org.apache.hadoop.hive.metastore.dbinstall.ITestOracle
   [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
94.393 s - in org.apache.hadoop.hive.metastore.dbinstall.ITestOracle
   [INFO]
   [INFO] Results:
   [INFO]
   [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0
   ```
   




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

            Worklog Id:     (was: 757485)
    Remaining Estimate: 0h
            Time Spent: 10m

> Add keys/indexes to support highly concurrent workload
> ------------------------------------------------------
>
>                 Key: HIVE-26144
>                 URL: https://issues.apache.org/jira/browse/HIVE-26144
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Database/Schema
>            Reporter: Janos Kovacs
>            Assignee: Janos Kovacs
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The following indexes are added to avoid full table-scan in backend rdbms: 
> - primary key for COMPLETED_TXN_COMPONENTS
> - primary key for TXN_COMPONENTS
> - index for TXN_WRITE_NOTIFICATION_LOG



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

Reply via email to