ning/killbill — comment on commit 02b05bfaccf69d4379febe14d7c1aca7b4d6ed62
File: account/src/main/java/com/ning/billing/account/api/user/DefaultAccountUserApi.java line 44
By sbrossie:

It would have been better to check if account exists in the transaction when you create it; that would avoid race condition where :
i) you check -> does not exist
ii) some other thread/IRS creates that account
iii) now when you create it the account already exists (unless of course your create fails if this is the case