hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bharath Ravi <bharathra...@gmail.com>
Subject LruBlockCache synchronization in HBase
Date Wed, 27 Feb 2013 18:57:17 GMT
Hi all,

I'm working on a research project in improving caching in HBase and similar
stores.

Going over the HFileReader and LruBlockCache code, I couldn't figure out if
updates to the Block cache are synchronized.

If I gather correctly, there is no locking at work, and concurrent
"cacheBlock" calls simply throw an "already cached" exception which (I
assume) is safely ignored.

Is my understanding correct?

Thanks for the help!
--
Bharath Ravi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message