Skip to content

Conversation

@xuang7
Copy link
Contributor

@xuang7 xuang7 commented Jan 24, 2026

What changes were proposed in this PR?

This PR adds centralized error handling for LakeFS API calls in DatasetResource, covering multipart upload and dataset version operations. This improves error visibility by returning meaningful HTTP status codes and error messages to the frontend. Currently, the wrapper is applied to these specific calls only, and has not yet been applied to all LakeFS calls.

Changes

  • Converts LakeFS ApiException to HTTP exception (400, 401, 403, 404, 409, 410, 412, 416, 420, 500)
  • Applied to createDatasetVersion, getDatasetDiff, initMultipartUpload, finishMultipartUpload, abortMultipartUpload

Any related issues, documentation, discussions?

Related to #4176

How was this PR tested?

  • Passed existing automated tests
  • Added test case in DatasetResourceSpec for error message response and 500 internal error handling
  • Manual testing of multipart upload error flows

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude (Anthropic)

@chenlica
Copy link
Contributor

@carloea2 Please review it first before @aicam does it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants