-
Notifications
You must be signed in to change notification settings - Fork 14
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
client: Stats of failed object GET/RANGE/SEARCH
are submitted only on Close
#656
Comments
That was a deliberate choice because previously this statistics was "collected" for each |
@roman-khimov i meant this in terms of stats. We can submit real stats when stream is done and overall, i agree that closer is nice thing todo. For reading ops, it should be performed |
We can do a lot of things, the question is should we? To me it works fine already wrt statistics. Users must |
the imposition is excessive, the stream works differently. UX improvement is desirable imo. Being a user, i'd be grateful for the stats that came even if I forgot closer |
I doubt anyone cares much about streams that drive all of this. But people know https://pkg.go.dev/os#File, they know https://pkg.go.dev/io#ReadCloser, not calling |
Body in https://pkg.go.dev/net/http#Response is the same, btw. It is an error not to |
interface itself states no such requirements. 'Specific implementations may document their own behavior' and that's it op stats and resource release in different planes to me. Exactly like successful reading 1GB data from file and forgotten descriptor |
currently, server-streamed ops call stat handler only when user calls
Close
. But for such opsClose
is only used when user is no longer interested in the stream. Unlike PUT when user signals that data is finished via Close. For example, following code looks completely OK:Current Behavior
-stats
Expected Behavior
+stats
Possible Solution
do not require calling
Close
. Submit stats whenever stream is finished (io.EOF==OK!). Update docsSteps to Reproduce
exec statistics
cases from Test coverage forClient
ops #641Regression
quite possible, but i havent checked
Your Environment
The text was updated successfully, but these errors were encountered: