Skip to content

[HistoryServer] Propagate error on storage APIs#4858

Open
dentiny wants to merge 3 commits into
ray-project:masterfrom
dentiny:hjiang/propagate-error-on-read
Open

[HistoryServer] Propagate error on storage APIs#4858
dentiny wants to merge 3 commits into
ray-project:masterfrom
dentiny:hjiang/propagate-error-on-read

Conversation

@dentiny
Copy link
Copy Markdown
Contributor

@dentiny dentiny commented May 22, 2026

Why are these changes needed?

Error should be propagated up unless we have reason not to do so.

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

Comment thread historyserver/pkg/historyserver/router.go
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 11bc08e. Configure here.

Comment thread historyserver/pkg/historyserver/router.go
// for metadata, fileName is generated by historyserver, which will obey the same rule as collector to make sure the historyserver can ready the right file.
//
GetContent(clusterId string, fileName string) io.Reader
GetContent(clusterId string, fileName string) (io.Reader, error)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @dentiny!

We will discuss the interface change in the next meeting.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure - - PoAn is working on opendal-based storage interface, while reviewing his PR I surprising found quite a few APIs don't propagate error, not sure why 🤷

@dentiny dentiny changed the title [HistoryServer] Propagate error on read [HistoryServer] Propagate error on storage APIs May 22, 2026
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.

2 participants