Skip to content

[server] Set table_id on prepareLakeTableSnapshot error response#3550

Merged
luoyuxia merged 1 commit into
apache:mainfrom
fresh-borzoni:fix-prepare-lake-snapshot-error-response
Jul 1, 2026
Merged

[server] Set table_id on prepareLakeTableSnapshot error response#3550
luoyuxia merged 1 commit into
apache:mainfrom
fresh-borzoni:fix-prepare-lake-snapshot-error-response

Conversation

@fresh-borzoni

@fresh-borzoni fresh-borzoni commented Jun 30, 2026

Copy link
Copy Markdown
Member

closes #3551

When anything in the per-table loop of CoordinatorService.prepareLakeTableSnapshot fails, the catch set error_code/error_message but not table_id, and didn't log the exception.
The tiering committer reads table_id before checking the error, so it crashed with Field 'table_id' is not set` and
masks the real failure and no trace in logs

This sets table_id on the error response and logs the exception, so the real error surfaces
both to the client and in the coordinator logs.

@luoyuxia luoyuxia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fresh-borzoni Thanks. LGTM

@luoyuxia luoyuxia merged commit 16a5b32 into apache:main Jul 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[server] prepareLakeTableSnapshot masks the real error on failure

2 participants