You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
reva_upload_sessions_bytes_received counts upload sessions, not bytes #930
To reproduce: upload a few files to OpenCloud (default posix driver), e.g. 546 WebDAV PUTs of about 50 bytes each. reva_upload_sessions_bytes_received is then 546, like reva_upload_sessions_initiated and reva_upload_sessions_finalized.
Suggestions:
a name that says what it counts, e.g. reva_upload_sessions_received_total
a counter for the actual volume, e.g. reva_upload_received_bytes_total, incremented by the session's size at the same place
the comment of UploadSessionsFinalized is copied from the one above ("…that have received all bytes"), but it counts completed sessions
none of the counters in this package have the _total suffix
Renaming is a breaking change for anyone who graphs these; nothing in opencloud or opencloud-charts uses reva_upload_sessions_bytes_received today.
Seen on reva main 2f017ae86 and OpenCloud main 5d745311f7.
The event is “All Bytes have been received by the server” which means “all data is safe on the storage but we do not know yet what the postprocessing outcome will be”
That means, this counts the raw number of successful uploads to openCloud before postprocessing.
I'll make the help text explicit instead (sessions whose data was fully received, before postprocessing; sessions, not bytes), and fix the comment copied onto UploadSessionsFinalized and the typo "uploads sessions" in the other help texts while at it.
Activity
micbar commentedon Oct 29, 2026
Naming 🙈
The event is “All Bytes have been received by the server” which means “all data is safe on the storage but we do not know yet what the postprocessing outcome will be”
That means, this counts the raw number of successful uploads to openCloud before postprocessing.
So, works as designed but bad naming.
pbleser-oc commentedon Oct 29, 2026
Thanks for clarifying.
Agreed, renaming isn't worth breaking existing dashboards.
I'll make the help text explicit instead (sessions whose data was fully received, before postprocessing; sessions, not bytes), and fix the comment copied onto
UploadSessionsFinalizedand the typo "uploads sessions" in the other help texts while at it.No metric gets renamed.
fix(metrics): clarify the help texts of the upload session metrics