BlockScanner scans the block twice, also on restart of datanode scans everything.
1. Write blocks with interval of more than 5 seconds. write new block on completion of scan for written block.
Each time datanode scans new block, it also scans, previous block which is already scanned.
Now after restart, datanode scans all blocks again.