Fix the concurrent issue for the failure retry