[ 
https://issues.apache.org/jira/browse/HBASE-16438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15943144#comment-15943144
 ] 

ramkrishna.s.vasudevan commented on HBASE-16438:
------------------------------------------------

bq.<Long, SoftRef(Chunk)> and <Long, HardRef(Chunk)>.
Yes this type will work. 
bq.All the remaining chunks seems of no use and can be immediate removed from 
the map.
Yes this will work provided we hit the limit to convert to CellChunkMap. In the 
case that was presented here we may not actually grow to that size? Then in 
that case we will have the chunks getting referenced?
So if we have this Soft reference way then may it is much easier so when we 
reallly convert from CSLM to CellChunkMap that time we can convert the soft ref 
to hard ref by having another map in the ChunkCreator. Any soft ref will 
automatically get removed when the GC tries to clear them for a GC cycle. 
One doubt - the Soft ref will get cleared only when the OOME is hit?

> Create a cell type so that chunk id is embedded in it
> -----------------------------------------------------
>
>                 Key: HBASE-16438
>                 URL: https://issues.apache.org/jira/browse/HBASE-16438
>             Project: HBase
>          Issue Type: Sub-task
>    Affects Versions: 2.0.0
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>         Attachments: HBASE-16438_1.patch, 
> HBASE-16438_3_ChunkCreatorwrappingChunkPool.patch, 
> HBASE-16438_4_ChunkCreatorwrappingChunkPool.patch, HBASE-16438.patch, 
> MemstoreChunkCell_memstoreChunkCreator_oldversion.patch, 
> MemstoreChunkCell_trunk.patch
>
>
> For CellChunkMap we may need a cell such that the chunk out of which it was 
> created, the id of the chunk be embedded in it so that when doing flattening 
> we can use the chunk id as a meta data. More details will follow once the 
> initial tasks are completed. 
> Why we need to embed the chunkid in the Cell is described by [~anastas] in 
> this remark over in parent issue 
> https://issues.apache.org/jira/browse/HBASE-14921?focusedCommentId=15244119&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15244119



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to