Atomic counter manipulation
atomic update last failure