lakekeeper: chore(docs): Improve documentation on replication lag / Failed read immediately after Write
Describe the bug When running lakekeeper w/o authz and no oauth, Trino and Iceberg Java clients throw this on table commits:
Table action can_get_metadata forbidden for Anonymous
Lakekeeper log:
{"timestamp":"2025-03-20T20:05:48.398107Z","level":"INFO","message":"Error response","error_id":"0195b529-76ee-7d50-85c2-1d31f9e3dd03","stack_s":"Table action can_get_metadata forbidden for Anonymous","details":"[]","message":"Table action can_get_metadata forbidden for Anonymous","r#type":"TableActionForbidden","code":"404","target":"iceberg_ext::catalog::rest::error","filename":"crates/iceberg-ext/src/catalog/rest/error.rs","line_number":252,"span":{"method":"GET","request_id":"df906578-72f1-4f62-a1ea-c6c46a1e2667","uri":"/catalog/v1/a9d3658e-0506-11f0-87ed-8bd82032a550/namespaces/d365_eap/tables/staging_dirpartylocation__2025_03_20_20_05_48_da750c4d_590d_4870_86c1_ecdd0bcee90f","version":"HTTP/1.1","name":"request"},"spans":[{"method":"GET","request_id":"df906578-72f1-4f62-a1ea-c6c46a1e2667","uri":"/catalog/v1/a9d3658e-0506-11f0-87ed-8bd82032a550/namespaces/d365_eap/tables/staging_dirpartylocation__2025_03_20_20_05_48_da750c4d_590d_4870_86c1_ecdd0bcee90f","version":"HTTP/1.1","name":"request"}]}
To Reproduce
- Lakekeeper installed via Helm, with auth disabled, no OPA (dev install). Postgres backend.
- Fire any query that creates a table or merges data into it.
- Observe the log
Fun part, data is merged and table seems to be updated.
Expected behavior No authz-related errors returned to the client when auth is disabled.
System Information:
- Deployment Type: Helm
- Lakekeeper Version: 0.7.3
- Authentication Provider: None
- Authorization Provider: None
- OS: container default
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (14 by maintainers)
Let me leave this issue open and assigned to the next release milestone, so we don’t forget the docs update.
Yes, good to close. Adding 1s wait after table create was enough to accommodate for the replication lag. Note in the docs will be great - I can add this myself after Easter break 🙂
To summarize our call:
Most of the errors are from
create or replacequeries which first checks if a table / view exists, if it doesn’t the forbidden is returned.What remains is that some requests fail to GET a table while another request finished the commit previously. Tables are created using ZIO + iceberg
where 2. fails to start table transaction from scala / java, the error also was only observed in multi-replica deployment, will continue to investigate.