UNDER_CONSTRUCTION state when the corresponding client’s lease expires, then it will be changed to UNDER_RECOVERY state when block recovery starts
a lease, which is essentially a lock
HBase’s Region Server (RS) writes to its WAL (Write Ahead Log), which is an HDFS file that helps to prevent data loss
In HDFS, files are divided into blocks, and file access follows multi-reader, single-writer semantics
To meet the fault-tolerance requirement, multiple replicas of a block are stored on different DataNodes
This ensures the single-writer semantics
Before lease recovery causes the file to be closed, it’s necessary to ensure that all replicas of the last block have the same length
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.