pvary commented on code in PR #17464:
URL: https://github.com/apache/iceberg/pull/17464#discussion_r3960128330


##########
hive-metastore/src/test/java/org/apache/iceberg/hive/TestHiveViewCommits.java:
##########
@@ -216,6 +220,68 @@ public void 
testThriftExceptionUnknownStateIfNotInHistoryFailureOnCommit()
         .isEqualTo(2);
   }
 
+  /**
+   * Pretends we throw an unclear error while persisting a create-view commit, 
for a view that was
+   * never stored in the metastore. The commit status check must resolve 
cleanly instead of NPE-ing:
+   * the view-specific {@code doRefresh} treats a missing view as non-fatal 
when no metadata
+   * location is known and refreshes from a null location, so the status-check 
supplier observes
+   * null current metadata and resolves to false (a new metadata location 
cannot be current for a
+   * view that does not exist). The relaxed check then maps that to UNKNOWN.
+   */

Review Comment:
   nit: trim, like:
   ```
   /** Pretends we throw an unclear error while persisting a create-view commit 
for a new view. */
   ```



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