juju / charmstore

The charm store server.
http://gopkg.in/juju/charmstore.v5
GNU Affero General Public License v3.0
15 stars 37 forks source link

v5/list returning errors for users with a large number of charms. #899

Closed mhilton closed 4 years ago

mhilton commented 4 years ago

The /v5/list endpoint seems to have trouble listing charms for users with a large number of uploaded charms.

{"Message":"error listing charms and bundles: Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting. Aborting operation. Pass allowDiskUse:true to opt in.","Code":""}

Note: that is 100MiB of charm metadata mongodb is refusing to sort in memory. We need to refine this query so that we are not trying to do this (or possibly allowDiskUse).

mhilton commented 4 years ago

This is now deployed, so closing.