Open rymsha opened 4 months ago
With a chance of nodes to be created with exactly the same blob (and it does not already exist) - there is a race condition
if (file.exists) -> return false for both threads/instances ----------------> race is here file.write -> both threads/instances want to write.
one of the nodes won't be created
With a chance of nodes to be created with exactly the same blob (and it does not already exist) - there is a race condition
one of the nodes won't be created