hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (HDDS-1802) Add Eviction policy for table cache
Date Wed, 17 Jul 2019 23:00:02 GMT

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

ASF GitHub Bot logged work on HDDS-1802:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Jul/19 22:59
            Start Date: 17/Jul/19 22:59
    Worklog Time Spent: 10m 
      Work Description: arp7 commented on pull request #1100: HDDS-1802. Add Eviction policy
for table cache.
URL: https://github.com/apache/hadoop/pull/1100#discussion_r304676219
 
 

 ##########
 File path: hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/db/cache/TableCache.java
 ##########
 @@ -69,4 +73,25 @@
    * @return iterator of the underlying cache for the table.
    */
   Iterator<Map.Entry<CACHEKEY, CACHEVALUE>> iterator();
+
+  /**
+   * Check key exist in cache or not.
+   *
+   * If it exists return CacheResult with value and status as
+   * {@link CacheStatus#EXISTS}
+   *
+   * If it does not exist:
+   *  If cache clean up policy is
+   *  {@link TableCacheImpl.CacheCleanupPolicy#NEVER} it means table cache is
+   *  full cache. It return's {@link CacheResult} with null
+   *  and status as {@link CacheStatus#NOT_EXIST}.
+   *
+   *  If cache clean up policy is {@link CacheCleanupPolicy#MANUAL} it means
+   *  table cache is partial cache. It return's {@link CacheResult} with
+   *  null and status as CHECK_IN_TABLE.
+   *
+   * @param cachekey
+   */
+  CacheResult<CACHEVALUE> isExist(CACHEKEY cachekey);
 
 Review comment:
   And let's call this `lookup`.
 
----------------------------------------------------------------
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:
users@infra.apache.org


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

    Worklog Id:     (was: 278569)
    Time Spent: 3h 20m  (was: 3h 10m)

> Add Eviction policy for table cache
> -----------------------------------
>
>                 Key: HDDS-1802
>                 URL: https://issues.apache.org/jira/browse/HDDS-1802
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Bharat Viswanadham
>            Assignee: Bharat Viswanadham
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> In this Jira we will add eviction policy for table cache.
> In this Jira, we will add 2 eviction policies for the cache.
> NEVER, // Cache will not be cleaned up. This mean's the table maintains full cache.
> AFTERFLUSH // Cache will be cleaned up, once after flushing to DB.
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message