singhpk234 commented on code in PR #13225:
URL: https://github.com/apache/iceberg/pull/13225#discussion_r4728754979


##########
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java:
##########
@@ -716,12 +733,19 @@ private RESTTable restTableForScanPlanning(
     return null;
   }
 
-  private void trackFileIO(RESTTableOperations ops) {
-    if (io != ops.io()) {
+  private void trackFileIO(RESTTableOperations ops, FileIO tableIO) {
+    // The catalog closes its own FileIO. Compare tableIO because ops.io() 
wraps it for encrypted
+    // tables.

Review Comment:
   i think if its better to expose `underlyingIO` from the rest table ops, 
rather using the tableIO ? wdyt
   
   The way i see here is we create a tableIO and pass that to the ops as well 
as feed that to the tracker, better to ask the ops itself whats the 
underlyingIO is and op.io() can still report the encrypted IO wrapper
   
   the check would then be ... 
   
   ``` java
   if (io != ops.underlyingIO()) { 
     fileIOTracker.track(ops) 
   }
   ```



##########
core/src/main/java/org/apache/iceberg/rest/RESTSessionCatalog.java:
##########
@@ -1521,6 +1555,21 @@ private static ConfigResponse fetchConfig(
     return configResponse;
   }
 
+  private static void checkNoAccessDelegation(Map<String, String> headers) {

Review Comment:
   i would rather move this to RESTUtil wdyt ? its just inspecting header atm



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