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

Parallel upload of chunks #11106

Closed
ogoffart opened this issue Sep 16, 2014 · 14 comments
Closed

Parallel upload of chunks #11106

ogoffart opened this issue Sep 16, 2014 · 14 comments
Milestone

Comments

@ogoffart
Copy link

The owncloud client 1.6 and 1.7 do parallel upload of files, but the chunks of the same file are uploaded sequencially.

I was experimenting trying to upload the chunks in parallel, but it seems there is race condition in the server. I am getting error 500 with exception Could not rename part file assembled from chunks

I suspect $chunk_handler->isComplete() returns true in lib/private/connector/sabre/file.php if all the chunks have been started, but some of them might not be finished. (And it is likely that the last chunk ends before the second to last, as it is smaller)

@PVince81

@PVince81
Copy link
Contributor

Sounds like a great idea.
Like you said we need to make sure the server side can handle that.

CC @MTRichards @craigpg

@MTRichards MTRichards added this to the 2014-sprint-04-current milestone Sep 16, 2014
@DeepDiver1975
Copy link
Member

@ogoffart @MTRichards @karlitschek what is the timeframe for 'parallel chunk uploads' in the client? We need some time ahead to 'fix' this in core. THX

@ogoffart
Copy link
Author

It is only optionally enabled, and disabled by default. It's just as an experiment if it would make the transfer faster.
Anyway, the current implementation work around the problem by never sending the last chunk in parallel.

@guruz
Copy link
Contributor

guruz commented Sep 22, 2014

(it will probably be in 1.8.. but this bug is not urgent because of the workaround.. but nice to have)

@DeepDiver1975
Copy link
Member

Well - as soon as you enable this feature it will break with any installation out there.

Keeping in mind that we do server patch releases once a month at most we better fix this now - right?

@craigpg craigpg modified the milestones: 2014-sprint-05-current, 2014-sprint-04 Sep 29, 2014
@craigpg craigpg modified the milestones: 2014-sprint-06-current, 2014-sprint-05 Oct 12, 2014
@craigpg craigpg modified the milestones: 2014-sprint-07-current, 2014-sprint-06 Oct 27, 2014
@craigpg craigpg modified the milestones: 2014-sprint-08-current, 2014-sprint-07 Nov 10, 2014
@DeepDiver1975
Copy link
Member

oc8.1

@DeepDiver1975 DeepDiver1975 modified the milestones: 8.1-next, 8.0-current Jan 6, 2015
@guruz
Copy link
Contributor

guruz commented Jan 22, 2015

Related: owncloud/client#2724 (comment)

@PVince81
Copy link
Contributor

From what I heard this has already got better ? What to do with this ticket ?

@ogoffart
Copy link
Author

The client (1.8) work around the problem by never sending what it thinks is the last chunk in parallel.
But the race condition is still there.

@PVince81
Copy link
Contributor

This should be fixed by this PR already: #14113
Did you guys try it out with the disabled workaround ?

@PVince81
Copy link
Contributor

(fixed in 8.1)

@ogoffart
Copy link
Author

Ah, no, i did not try against newer version yet.

@karlitschek
Copy link
Contributor

So we can close? Right? @ogoffart Can you confirm?

@DeepDiver1975
Copy link
Member

So we can close?

yes I'd say - please reopen if issues continue to exist

@lock lock bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants