[
https://issues.apache.org/jira/browse/HBASE-16438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15926497#comment-15926497
]
Anastasia Braginsky commented on HBASE-16438:
---------------------------------------------
The CAS can work similarly to how it works today in MemStoreLABImpl. One thread
wins the race buy being able to swap (CAS) the null pointer to the pointer to
chunk (not yet initialized). While the chunk is being initialized the other
threads may be busy-waiting.
But I have a different suggestion. Initially, I actually thought about
implementing myself the MemStoreAllocator (that you are calling ChunkCreator).
So may be you can drop the ChunkCreator from this patch and just commit all the
Cell related refactoring? I'll continue with the Allocator/Creator and all the
rest... What do you think?
> 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.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)