Does the name-node stay in safe mode till all under-replicated files are fully replicated?
A)No.
The name-node waits until all or majority of data-nodes report their blocks.
But name-node will stay in safe mode until a specific percentage of blocks of
the system is minimally replicated. minimally replicated is not fully
replicated.