HDFS-5592. statechangeLog of completeFile should be logged only in case of success. Contributed by Vinay.