deal with datanode failure, try 10 times and then open a new file