elphastori commented on issue #13388: URL: https://github.com/apache/iceberg/issues/13388#issuecomment-3042190882
> Im curious to see what the actual HTTP request made is. Thanks for taking a look, it's actually quite interesting. The create table command results in a `LOAD_TABLE` request followed by a `CREATE_TABLE` request for the happy path. In our case, with the metaspace table name "entries", the malformed request is made while attempting to load a table without a namespace: `GET http://localhost:8181/v1/namespaces//tables/nyc` I added request logging to the server, here's the full sequence of requests: ``` 172.18.0.5 - - [06/Jul/2025:16:21:23 +0000] "GET /v1/namespaces/nyc/tables/entries?snapshots=all HTTP/1.1" 404 3900 "-" "Apache-HttpClient/5.4.1 (Java/17.0.14)" 172.18.0.5 - - [06/Jul/2025:16:21:23 +0000] "GET /v1/namespaces//tables/nyc?snapshots=all HTTP/1.1" 400 70 "-" "Apache-HttpClient/5.4.1 (Java/17.0.14)" ``` On the other hand, this is what the requests look like for the happy path, with the table name "taxis": ``` 172.18.0.5 - - [06/Jul/2025:16:25:59 +0000] "GET /v1/namespaces/nyc/tables/taxis?snapshots=all HTTP/1.1" 404 3816 "-" "Apache-HttpClient/5.4.1 (Java/17.0.14)" 172.18.0.5 - - [06/Jul/2025:16:25:59 +0000] "POST /v1/namespaces/nyc/tables HTTP/1.1" 200 456 "-" "Apache-HttpClient/5.4.1 (Java/17.0.14)" ``` Note that there is only one `LOAD_TABLE` request. The `POST` request is for the `CREATE_TABLE` route. > This sounds like an issue with the client's request serialization than the server itself. Yes, as you can see, the client attempts to load the table `nyc.entries`, when it doesn't find it, it tries to load `nyc` which has no namespace. This "recursive" check is redundant here because the server already checks for both `nyc.entries` and `nyc` in the first call. -- 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]
