spring-cloud/spring-cloud-app-broker

Service instances race condition

Albertoimpl opened this issue · 0 comments

When creating more than one service instance at the same time, there might be a race condition where both threads will try to create the backing space and it will make one of the two fails.
Instead of failing, we should see if the problem is that the space already exists and continue with the service creation.
If this causes problems, we can always fallback to using concatMap, although this will be a bit less performant.