-
Notifications
You must be signed in to change notification settings - Fork 113
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
use tusd datastorages #4148
Closed
Closed
use tusd datastorages #4148
Changes from all commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
1293660
use tusd datastorages
butonic 7d2a741
add comments
butonic 27936aa
test msgpack metadata
butonic 11ebb76
run all tests again
butonic 80cad58
test copy
butonic 21301b4
log error when trying to read upload info
butonic 6d1eb80
log upload info details when copying fails
butonic aa14928
log as error
butonic eaf5632
reinitialze logger
butonic 69b14f5
more logging
butonic fb88329
declare length
butonic 32f5141
use oc mtime as revision mtime
butonic 1afb42a
fix lint
butonic 1aaec6c
Merge branch 'edge' into use-tus-data-storage
butonic 96ece53
declare length only if it is available
butonic b421107
allow overwriting existing revisions
butonic 366dbd4
do not hide current revision
butonic 303440a
Revert "do not hide current revision"
butonic 8fc873a
persist revisions by current time, not oc mtime
butonic 30ab0b6
filter multiple revisions for the same mtime in ocdav
butonic 2204836
use metadata to store and filter current revision
butonic 7e295be
use oc mtime as revision time if given
butonic 1b8c07c
reuse current revision if upload has same mtime
butonic 052b04a
use mtime as revision time if given
butonic 7bf1c79
track uploads in dedicated metadata
butonic 0b7abc5
convert uploads to revisions
butonic 0df306e
restore old revision logic
butonic d75bf9e
fix blobid passing
butonic 0077f19
fix HasUploadMetadata interface
butonic a832581
fix legacy chunking
butonic 84b9b8f
fix chinkung v1
butonic 1ec133d
only create revision on first overwrite
butonic c520b49
restore writing revision before async processing
butonic ba50382
fix oldchunking revisions
butonic 90092e4
refactor revisionkey split and join
butonic 01b80cd
no deet to store the current revision, use mtime
butonic 508780c
fix mtime handling
butonic 53c509b
try to fix versions
butonic b91e7b3
Merge branch 'edge' into use-tus-data-storage
butonic a4b88d2
make test helper always send size
butonic b4cbd8e
fix nc upload mock
butonic ea4d951
more test fixes
butonic d790238
revert dying if dataprovider does not support tus
butonic 26524bf
tus datatx logging cleanup
butonic 88d4cb9
remove unused enable_home config for decomposedfs
butonic aae59e3
cleanup
butonic ad21320
fix linting
butonic 39c6bb4
Merge branch 'edge' into use-tus-data-storage
butonic 12b9979
always send upload length
butonic 7bfc0e7
if index does not exist return empty list of matches
butonic 22f68c1
do not require sending upload length
butonic 25ad42b
Merge branch 'edge' into use-tus-data-storage
butonic b9e0f3e
also send content length to dataprovider
butonic f3b262b
fmt.Println debugging
butonic 98250c7
Add logging around file locks
aduffeck e8155c8
More logging
aduffeck 3538d62
Test if the hang is related to closing the response body
aduffeck cd73b5c
More logging
aduffeck 767df60
Merge branch 'edge' into use-tus-data-storage
butonic 5e8383c
Merge branch 'edge' into use-tus-data-storage
butonic 89f9606
remove debug logging
butonic a5edbe5
more cleanup
butonic d99a424
Apply suggestions from code review
butonic 2d95dcc
use log from context
butonic 87916ac
simplify if conditions
butonic 5053013
fix typo
butonic 1a35958
fix listing and purging upload sessions
butonic ea559e1
drop comment
butonic 829df6d
fix upload progress creation and read offset from tus upload
butonic 747f8f7
read uploads concurrently
butonic b643432
fix loading upload sessions
butonic 5c9beca
Purge both the metadata and the upload info when finalizing
aduffeck 9c2ed70
Use Size when reporting the size
aduffeck 9167e4b
Implement tus datastores which support cleaning up metadata only
aduffeck 086e321
Directly write blob to the right location in s3
aduffeck c11ca05
Clarify naming
aduffeck be393b3
WIP: Get rid of separate tus fileinfo metadata
aduffeck f8264b5
make filestore upload session compatible
butonic 7d3ae90
Do not read the session we just created just to get the ID
aduffeck d41ec1e
Simplify finishing the upload
aduffeck e3ba91d
Retrieve the upload offset from the session instead of reading the parts
aduffeck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Enhancement: Use Tusd data storage implementations | ||
|
||
Decomposedfs now uses the data store implementation for uploads that comes with tusd instead of implementing the interface itself. This allows storing uploads directly in s3. When all bytes are transferred tusd will call `PreFinishResponseCallback` if the storage driver implements it. | ||
|
||
https://github.com/cs3org/reva/pull/4148 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, we already talked about it, but just for the record 😛 I would rather track the FIXME issues and thought-comments on github or drop them entirely. Either they are important and should be tracked and prioritized properly or they aren't, in which case the FIXMEs in the code are just ballast we'll carry on indefinitely.