Make #increment_failed_attempts
concurrency safe
#4996
Merged
#increment_failed_attempts
concurrency safe
#4996