Skip to content

PropagateUpload: Model of remote quota, avoid some uploads #5537 - #5892

Merged
ckamm merged 3 commits into
masterfrom
insufficient-storage-quota-model
Sep 15, 2017
Merged

ckamm merged 3 commits into
masterfrom
insufficient-storage-quota-model

Conversation

@ckamm

@ckamm ckamm commented Jul 12, 2017

Copy link
Copy Markdown
Contributor

When we see a 507 error, assume that quota is < uploaded size.

@ckamm

ckamm commented Jul 12, 2017

Copy link
Copy Markdown
Contributor Author

@ogoffart I'll add a test if you think doing this makes sense -- writing the test will probably take as long as writing the feature.

@ogoffart ogoffart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 but a test would indeed be nice

Comment thread src/libsync/propagateupload.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else  {
propagator()->_folderQuota[QFileInfo(_item->_file).path()] -= _item->_size;
}

(you probably want to use an iterator to avoid multiple lookups, and only do it if there is a value there)

@ckamm
ckamm force-pushed the insufficient-storage-quota-model branch from c2ea40e to d08ed7d Compare July 12, 2017 11:24
@ogoffart

Copy link
Copy Markdown
Contributor

the last commit conflicts with the HTTP/2 change. I'm afraid we can't put the logic to compute the max number of job there with HTTP/2 as we con't have a pointer to the account.
Maybe what should be configured is anyway not these two number, but only a boolean telling if we should do parallel or not.

@ckamm

ckamm commented Jul 17, 2017

Copy link
Copy Markdown
Contributor Author

@ogoffart Is the HTTP/2 change already merged? I think the suggestion to configure only parallelism-or-not makes sense and I'd adapt it accordingly.

@ogoffart

Copy link
Copy Markdown
Contributor

Yes, HTTP/2 is merged now.

ckamm added 3 commits July 17, 2017 14:00
It's quite different in regard to blacklist handling and overall
sync failure changes.
Very useful for changing it on a per-test basis.
When we see a 507 error, assume that quota is < uploaded size.
@ckamm
ckamm force-pushed the insufficient-storage-quota-model branch from d08ed7d to 6754836 Compare July 17, 2017 12:17
@ckamm

ckamm commented Jul 17, 2017

Copy link
Copy Markdown
Contributor Author

@ogoffart I updated the PR accordingly, please rereview!

@ogoffart ogoffart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ckamm
ckamm merged commit 3a55ff2 into master Sep 15, 2017
@ogoffart
ogoffart deleted the insufficient-storage-quota-model branch January 25, 2018 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants