flyrain commented on issue #767:
URL: https://github.com/apache/polaris/issues/767#issuecomment-2737519976
There is no race condition here. The transactional operation guarantees the
atomicity, which means either all operations in the transaction are executed
successfully, or none at all. It doesn't matter if the operation is from a
single JVM or multiple JVMs.
The code I share to check the name is wrapped in a transactional block like
this:
```
return ms.runInTransaction(
callCtx, () -> this.createEntityIfNotExists(callCtx, ms,
catalogPath, entity));
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]