okumin opened a new pull request, #14669:
URL: https://github.com/apache/iceberg/pull/14669

   I want ViewCatalogTests to be executable for practical testing.
   
   The current ViewCatalogTests would work if all processes ran on the same OS.
   
   <img width="441" height="276" alt="image" 
src="https://github.com/user-attachments/assets/bd0af25f-b3af-4a1b-99ab-c9f90fc09537";
 />
   
   Problem 1: However, when we ran ViewCatalogTests and a catalog on different 
hosts, some tests would fail. For example, if I run ViewCatalogTests on my 
macOS and a REST catalog on a Docker container, the following error happens. 
This is because the location of temporary directories is not shared with macOS 
and Linux.
   
   ```
   [ERROR] 
org.apache.iceberg.rest.HiveIcebergRESTViewCatalogTests.completeCreateView -- 
Time elapsed: 1.165 s <<< ERROR!
   org.apache.iceberg.exceptions.ServiceFailureException: Server error: 
RuntimeIOException: Failed to create file: 
file:/var/folders/0n/191xk_2s2_3dbz7t6_jpws100000gn/T/junit-5337781700231275056/ns/view/metadata/00000-9beb56aa-981d-4098-a1fb-9f7e11d3a9d1.gz.metadata.json
        at 
org.apache.iceberg.rest.ErrorHandlers$DefaultErrorHandler.accept(ErrorHandlers.java:241)
        at 
org.apache.iceberg.rest.ErrorHandlers$ViewErrorHandler.accept(ErrorHandlers.java:166)
        at 
org.apache.iceberg.rest.ErrorHandlers$ViewErrorHandler.accept(ErrorHandlers.java:150)
   ```
   
   <img width="436" height="278" alt="image" 
src="https://github.com/user-attachments/assets/07b3bfe3-1baa-45da-8ffc-b056cda813b5";
 />
   
   Problem 2: Additionally, I want to use CatalogTests and ViewCatalogTests 
with a more advanced setup that uses a remote object store instead of a local 
file system. The current implementation hardcodes the location.
   
   <img width="442" height="309" alt="image" 
src="https://github.com/user-attachments/assets/41a776ff-d580-464b-8c48-213f390f515a";
 />
   
   If we could configure the location, we'd be able to solve both problems 
without dirty hacks.


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