upload retry and command failed retry
fix upload retry bug
command retry return a ret