You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the prefix implementation for S3 blobstore multitenancy.
Within BlobStoreDAO, when using the prefix mode, derive the object key within S3 adding the prefix as needed.
For example: tenant/abc
Note: This interact with the GC!!! We shall make sure the GC, when listing, only takes the last part of the s3Key IE given prefix/ABC the GC only uses ABC as a blobID.
DoD: Integration tests
The text was updated successfully, but these errors were encountered:
Note: This interact with the GC!!! We shall make sure the GC, when listing, only takes the last part of the s3Key IE given prefix/ABC the GC only uses ABC as a blobID.
If I understand correctly:
During blobStoreDAO.save, when input is Bucket(bucketName = "bucket1", Optional<Tenant> = "tenant1"), BlobId("abc") , the data will be saved in S3 as: bucket = bucket1 and object = "tenant1/abc".
When calling the BloomFilterGCAlgorithm#gc method, the blobStoreDAO.listBlobs("bucket1") will return BlobId("tenant1/abc").
Then extract this as: bucket = Bucket("bucket1", "tenant1") and blobIdWillGc = BlobId("abc").
Finally, use these values in blobStoreDAO.delete(bucket, blobIdWillGc).
During blobStoreDAO.save, when input is Bucket(bucketName = "bucket1", Optional = "tenant1"), BlobId("abc") , the data will be saved in S3 as: bucket = bucket1 and object = "tenant1/abc".
When calling the BloomFilterGCAlgorithm#gc method, the blobStoreDAO.listBlobs("bucket1") will return BlobId("tenant1/abc").
BlobId("abc") and BlobId("tenant1/abc") points to the same blob?
Implement the prefix implementation for S3 blobstore multitenancy.
Within BlobStoreDAO, when using the prefix mode, derive the object key within S3 adding the prefix as needed.
For example:
tenant/abc
Note: This interact with the GC!!! We shall make sure the GC, when listing, only takes the last part of the s3Key IE given prefix/ABC the GC only uses ABC as a blobID.
DoD: Integration tests
The text was updated successfully, but these errors were encountered: