[
https://issues.apache.org/jira/browse/HIVE-24259?focusedWorklogId=517128&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-517128
]
ASF GitHub Bot logged work on HIVE-24259:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 26/Nov/20 17:20
Start Date: 26/Nov/20 17:20
Worklog Time Spent: 10m
Work Description: ashish-kumar-sharma commented on a change in pull
request #1610:
URL: https://github.com/apache/hive/pull/1610#discussion_r531158744
##########
File path:
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java
##########
@@ -2844,15 +2814,10 @@ public SQLAllTableConstraints
getAllTableConstraints(String catName, String dbNa
return rawStore.getAllTableConstraints(catName, dbName, tblName);
}
- Table tbl = sharedCache.getTableFromCache(catName, dbName, tblName);
- if (tbl == null) {
- // The table containing the constraints is not yet loaded in cache
- return rawStore.getAllTableConstraints(catName, dbName, tblName);
- }
SQLAllTableConstraints constraints =
sharedCache.listCachedAllTableConstraints(catName, dbName, tblName);
- // if any of the constraint value is missing then there might be the case
of partial constraints are stored in cached.
- // So fall back to raw store for correct values
+ /* If constraint value is missing then there might be the case that table
is not stored in cached or
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 517128)
Time Spent: 1h 40m (was: 1.5h)
> [CachedStore] Optimise get constraints call by removing redundant table check
> ------------------------------------------------------------------------------
>
> Key: HIVE-24259
> URL: https://issues.apache.org/jira/browse/HIVE-24259
> Project: Hive
> Issue Type: Sub-task
> Reporter: Ashish Sharma
> Assignee: Ashish Sharma
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> Description -
> Problem -
> 1. Redundant check if table is present or not
> 2. Currently in order to get all constraint form the cachedstore. 6 different
> call is made with in the cached store. Which led to 6 different call to raw
> store
>
> DOD
> 1. Check only once if table exit in cached store.
> 2. Instead of calling individual constraint in cached store. Add a method
> which return all constraint at once and if data is not consistent then fall
> back to rawstore.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)