Duo Zhang commented on HBASE-19977:

An AtomicInteger is enough?

> FileMmapEngine allocation of byte buffers should be synchronized
> ----------------------------------------------------------------
>                 Key: HBASE-19977
>                 URL: https://issues.apache.org/jira/browse/HBASE-19977
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.0.0-alpha-4
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>            Priority: Major
>             Fix For: 2.0.0-beta-2
> Recently we have been testing bucket cache with mmap mode. We found that 
> after the multi threading way of allocating the byte buffers for offheap 
> bucket cache, the creation of the mmapped byte buffers needs to be 
> synchronized for allocating the right sized mmapped buffers.

This message was sent by Atlassian JIRA

Reply via email to