Skip to content
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

Implement new support packet API #24

Merged
merged 4 commits into from
Jun 11, 2024
Merged

Implement new support packet API #24

merged 4 commits into from
Jun 11, 2024

Conversation

isacikgoz
Copy link
Member

Summary

We can now safely use new support packet API.

@isacikgoz isacikgoz added 1: PM Review Requires review by a product manager 2: Dev Review Requires review by a core committer labels Apr 29, 2024
server/support_packet.go Outdated Show resolved Hide resolved
@isacikgoz isacikgoz requested a review from agnivade June 3, 2024 21:00
}
defer fr.Close()

b, err := io.ReadAll(fr)
Copy link
Member

Choose a reason for hiding this comment

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

Are we sure this won't cause OOM issues? Ideally we should stream the file contents downstream right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, there is a small possibility but this was how the API being implemented, we need to change the API to accept something like a io.ReaderCloser. However or in our case; ideally server can directly read from the filestore but still the API needs to be changed.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, wondering if we should file a ticket to track this? For example, k8s pods have a mem limit to them. There could be cases where this might be problematic. I'll approve for now but we should probably have a streaming API.

@isacikgoz isacikgoz removed the 2: Dev Review Requires review by a core committer label Jun 11, 2024
@isacikgoz isacikgoz merged commit 0805a10 into master Jun 11, 2024
4 checks passed
@isacikgoz isacikgoz deleted the support-packet branch June 11, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1: PM Review Requires review by a product manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants