I Guess these folders are there as part of Replication process,
>”rbw” sub directory to DataNode to persist RBW (ReplicaBeingWritten), RWR(ReplicaWaitingToBeRecovered), and RUR(ReplicaUnderRecovery) replicas.
The directory “current” has two subdirs:
“finalized” has all finalized replicas and
“rbw” has all replicas being written to.
> when datanode restarts, it reads replicas under “finalized” and add them to the replicasMap as FinalizedReplica.
> It also reads replicas under “rbw” and adds them to the replicasMap as ReplicaWaitingToBeRecovered with its length set to be the number of bytes that match its crc.
More we should ask the champion : SHREY…. Where are you man????