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
A rundown of my changes:
- added new redis key to track whether the upload was already reported
as too large to slack, to not spam our slack
- Do no longer fail due to too large upload compared to what was
reserved. Instead log info and send info to slack
- Additionally upon finish upload send another slack message in case
size execeeded reserved size to get a feeling of by how far the
difference between reserved and actual bytes is.
- Fix `assertWithinRequestedFileSizeAndCleanUpOtherwise` (took sadly
most of the time). The fox nesting structure was wrong swallowing the
internal fox failure and thus always returning a succesful fox.
moreover, now the cleanup is awaited by the function.
### URL of deployed dev instance (used for testing):
- https://___.webknossos.xyz
### Steps to test:
- I tested enough I think but if you want to:
- In the FE `dataset_upload_view.tsx` change line 342 to
`totalFileSizeInBytes: 100,` to deliberately cause a mismatch between
the upload and the metadata during reserving
- Upload a dataset
- Should work
- Look in the console for logging details about warnings that the upload
you just did exceeded the reserved limit
### Issues:
- fixes
https://scm.slack.com/archives/CMBMU5684/p1760680640686649?thread_ts=1760618944.492589&cid=CMBMU5684
------
(Please delete unneeded items, merge only when none are left open)
- [x] Needs datastore update after deployment
s"Finished upload for $datasetId that exceeded reserved upload size. $reservedBytes bytes were reserved but $actualBytes were uploaded according to redis store.")
s"Finished upload for $datasetId that exceeded reserved upload size. $reservedBytes bytes were reserved but $actualBytes were uploaded according to redis store.")
382
+
}
383
+
}))
369
384
_ <- cleanUpUploadedDataset(uploadDir, uploadId, reason ="Upload complete, data unpacked.")
370
385
_ <- cleanUpOnFailure(unpackResult,
371
386
datasetId,
@@ -819,13 +834,6 @@ class UploadService @Inject()(dataSourceService: DataSourceService,
Copy file name to clipboardExpand all lines: webknossos-datastore/app/com/scalableminds/webknossos/datastore/slacknotification/DSSlackNotificationService.scala
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,4 +28,10 @@ class DSSlackNotificationService @Inject()(rpc: RPC, config: DataStoreConfig) ex
0 commit comments