sonatype-nexus-community / nexus-blobstore-google-cloud

Nexus Repository Manager Blobstore backed by Google Cloud Storage
https://help.sonatype.com/en/configuring-blob-stores.html#google-cloud-blob-store
Eclipse Public License 1.0
39 stars 16 forks source link

fix: increase limit to DeletedBlobIndex#getContents, allow config #108

Closed nblair closed 2 years ago

nblair commented 2 years ago

DeletedBlobIndex#getContents supplies a limit to the datastore query. In the previous version, this limit was 1000. This method is called by the compact blobstore task. If the blobstore targeted by the compaction task is significant in size, a limit of 1000 soft-deleted blobs is far too low.

In this change, a new default of 100,000 is supplied as the limit. This was chosen after testing confirmed successful reasonable performance to return. This behavior is now also configurable by providing an alternate value in nexus.properties under the 'nexus.gcs.deletedBlobIndex.contentQueryLimit' property.

Fixes #107.