-
Notifications
You must be signed in to change notification settings - Fork 763
[HistoryServer] Propagate error on storage APIs #4858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ type StorageReader interface { | |
| // for log, pass filename to this func | ||
| // 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) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @dentiny! We will discuss the interface change in the next meeting.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 🤷 |
||
|
|
||
| ListFiles(clusterId string, dir string) []string | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.