Files
gerrit/java
Jacek Centkowski c99414ab4b Enforce repository size on pack rather than on object
Issue:
Originally max repository size was enforced by the quota plugin.
However, that functionality was a perfect candidate for core quota
implementation and as such was implemented in [1].

As a result, Gerrit core is responsible for making sure that the limit
is enforced and the plugin is responsible for providing the limit.
Unfortunately, Gerrit core implementation developed a fault as it
enforced the limit on the object size instead of the pack size leading
to the situation where multiple smaller objects would fall under the
limit where the pack they belong to should already exhaust it.

Solution:
Enforce available repository size tokens on pack size (as it was
done this way originally in plugin).

[1] https://gerrit-review.googlesource.com/c/gerrit/+/224728

Bug: issue 14118
Change-Id: I37e573971a76abe53a3e6456498940a4bb803d0c
2021-03-03 13:31:05 +01:00
..