You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
loadTableMetadata treats every catalog failure as a missing table #9635
So when the catalog cannot be read (Lakekeeper restarting, a timeout), it looks to every caller like a missing table:
result-service answers 404 "the result of operator X is no longer stored" for a result that exists. If the catalog fails after the result was opened, it answers 200 with an empty page and rowCount: 0.
In the computing unit, a page request fails with "No storage is found for the given URI", which names the wrong cause, and the agent's synchronous execution returns an empty result.
IcebergDocument.getCount returns 0, and a document's iterator reads as empty, in the JVM and in the Python worker.
Only a table or namespace that does not exist should be reported as missing. Any other failure should reach the caller. This came up in the reviews of #9356 and #9556.
How to reproduce?
In ResultResourceSpec, replace the default catalog with one whose loadTable fails, then read a stored result:
classFailingCatalog(delegate: Catalog, succeeding: Int) extendsCountingCatalog(delegate) {
overridedefloadTable(identifier: TableIdentifier):Table= {
if (loadTableCalls.get() >= succeeding) thrownewRuntimeException("catalog unavailable")
super.loadTable(identifier)
}
}
// succeeding = 0: the catalog is unavailable
get(owner, pagesPath(eid)).getStatus shouldBe 500// 404 on main// succeeding = 1: the result opens, then the catalog fails
get(owner, pagesPath(eid)).getStatus shouldBe 500// 200 with an empty table on main
Activity
fix(storage): report a table as missing only when it does not exist (a…