thomaschow commented on code in PR #14779:
URL: https://github.com/apache/iceberg/pull/14779#discussion_r2599763014


##########
bigquery/src/main/java/org/apache/iceberg/gcp/bigquery/BigQueryTableOperations.java:
##########
@@ -181,7 +181,10 @@ private void updateTable(
     try {
       client.update(tableReference, table);
     } catch (ValidationException e) {
-      if (e.getMessage().toLowerCase(Locale.ENGLISH).contains("etag 
mismatch")) {
+      String msg = e.getMessage().toLowerCase(Locale.ENGLISH);
+      if (msg.contains("etag mismatch")
+          || msg.contains("did not meet condition if_match")
+          || msg.contains("precondition check failed")) {
         throw new CommitFailedException(
             "Updating table failed due to conflict updates (etag mismatch). 
Retry the update");

Review Comment:
   updated. 



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to