adutra commented on code in PR #4646:
URL: https://github.com/apache/polaris/pull/4646#discussion_r3388945253


##########
runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalog.java:
##########
@@ -2494,10 +2495,14 @@ private void renameTableLike(
         case BaseResult.ReturnStatus.ENTITY_NOT_FOUND:
           throw new NotFoundException("Cannot rename %s to %s. %s does not 
exist", from, to, from);
 
-        // this is temporary. Should throw a special error that will be caught 
and retried
+        // Transient concurrency conditions: surface as 503 so clients can 
retry. We avoid 409
+        // here because the rename endpoint reserves 409 for "target already 
exists" (handled by
+        // the ENTITY_ALREADY_EXISTS case above).
         case BaseResult.ReturnStatus.TARGET_ENTITY_CONCURRENTLY_MODIFIED:
         case BaseResult.ReturnStatus.ENTITY_CANNOT_BE_RESOLVED:

Review Comment:
   I ALWAYS get fooled by its name 😅 
   
   Looking at `AtomicOperationMetaStoreManager.renameEntity()` this time: oddly 
enough, it does not raise neither `CATALOG_PATH_CANNOT_BE_RESOLVED` nor 
`ENTITY_CANNOT_BE_RESOLVED`. It actually seems to not care about the validity 
of the entity path before and after 🤷‍♂️ 



-- 
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]

Reply via email to