I am trying to understand how read and write happens in HBase and how HBase does the caching. From various articles and videos, I found that a read merge happens when a read request is made to HBase. What I understood is:
Whenever read request made, block cache is first checked for the data.
Then memstore is checked. If data found in both block cache or memstore, data is sent to client.
Else fetched from hfiles.
My doubts are
whether both block cache and memstore is always checked for the data? or whether memstore will be ignored if found in block cache.
If memstore not checked (since found in blockcache),how will client get latest value if there was an edit in memstore?
I created a new table. I added one row. I issued get command to fetch the data. I obtained the data but I didn't see any change in cache hits and reads of block cache. Why?
I know there are multiple questions but all these are linked to read merge and HBase caching. I need a clarity on these concepts and I could not find any in documentation.
Thanks for using Cloudera Community. Your queries concerning the Read Path is discussed between a fellow Community User & myself in . Kindly review the same & let us know if the same answer the queries around Read Path. In Summary, Read Path relies on a Merge of BlockCache & MemStore prior to returning the Output to the End-User, thereby avoiding any Inconsistent Read. Refer  for few Diagram around the same to help explain the Read Merge Path.
Concerning Doubt # 3, Our Community User asked a similar Q in . I haven't reviewed this Use-Case internally around Hit/Miss Ratio in the UI to answer the same. Henceforth, I shall let our fellow HBase Engineers to answer , which may answer your Q3 as well.
Barring Q3, Let me know if your first 2 queries are addressed by  & .
@smdas Thank you for responding to the post. I had seen article .Based on , you are saying that for every operation a lookup is done in block cache and memstore.
I had tried to verify the theory and that led to my Question  related to cache miss. If for every read request a merge happens (block cache look up done) , why am I not seeing any change in cache hits?
Also, on the consistency point, if scanner finds new data in memstore as compared to block cache, will hbase update the block cache data that corresponds to latest edit in memstore?