Skip to content

Don't upload if it would exceed remote quota #5537 - #5552

Closed
ckamm wants to merge 1 commit into
owncloud:masterfrom
ckamm:insufficent-storage
Closed

ckamm wants to merge 1 commit into
owncloud:masterfrom
ckamm:insufficent-storage

Conversation

@ckamm

@ckamm ckamm commented Feb 22, 2017

Copy link
Copy Markdown
Contributor

Targetting master since it's uncertain whether this should be in 2.3.1 or 2.4.0! Assigning to 2.3.1 for now - opinions?

  • Run a Propfind to determine the available quota before each sync run.
  • Keep the available quota up to date with each upload and delete job.
  • Don't start upload jobs if there's not enough available space.
  • If we (unexpectedly) receive a 507 Insufficent Storage error, adjust
    the expectation of available remote space downwards.

@ckamm ckamm added this to the 2.3.1 milestone Feb 22, 2017
@ckamm ckamm self-assigned this Feb 22, 2017
@ckamm
ckamm requested a review from jturcotte February 22, 2017 10:20
@mention-bot

Copy link
Copy Markdown

@ckamm, thanks for your PR! By analyzing the history of the files in this pull request, we identified @danimo, @ogoffart and @jturcotte to be potential reviewers.

* Run a Propfind to determine the available quota before each sync run.
* Keep the available quota up to date with each upload and delete job.
* Don't start upload jobs if there's not enough available space.
* If we (unexpectedly) receive a 507 Insufficent Storage error, adjust
  the expectation of available remote space downwards.
@ckamm
ckamm force-pushed the insufficent-storage branch from b06b1e5 to 9f8d9c1 Compare February 22, 2017 12:49

@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.

I'm just wondering weather this quota value is reliable enough.
I mean, we might then block the sync without reason.
It might be that the user directory has a small quota, but the shared directory has a huge quota.

}
}

void PropagateUploadFileCommon::checkInsufficentStorageError()

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.

On the other hand, maybe the folder is on a different storage or with different quota requirement that the main quota. So we might mess the quota up.

@ckamm

ckamm commented Feb 28, 2017

Copy link
Copy Markdown
Contributor Author

@ogoffart Hm, you're right about quotas potentially differing per folder - I didn't think about shared folders. So we actually need to track quota-available per-folder for good behavior. I'll think about it. Definitely not for 2.3.1 then.

@ckamm

ckamm commented Mar 22, 2017

Copy link
Copy Markdown
Contributor Author

@ogoffart What if we retrieved quota information of a folder before each upload. Once per folder only, possibly only for larger uploads, or for folders that have seen an insufficent storage error before.

It'd add quite a bit of bookkeeping but is currently the sanest option I see. Thoughts?

The best option would be being able to retrieve the 'mount points' with individual quotas from the server. I doubt something like that exists currently?

@ckamm ckamm removed this from the 2.4.0 milestone Jun 16, 2017
@ckamm

ckamm commented Jun 16, 2017

Copy link
Copy Markdown
Contributor Author

We haven't decided about what to do here. I don't see this in 2.4.0.

@ckamm

ckamm commented Jul 12, 2017 •

Copy link
Copy Markdown
Contributor Author

We'll not do it this way. See #5537 (comment)

@ckamm ckamm closed this Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants