Hi, I have a question about GC: If I only call `ge...
# help
u
Hi, I have a question about GC: If I only call
getPhysicalAddress
and am writing a file through the S3 interface, and GC is triggered before
linkPhysicalAddress
is called, the S3 object will be collected but not marked as active. Will this cause a false GC?
a
Hi Yuhao, Physical addresses are valid for many minutes, but not for days. You should not keep a physical address for as long as the GC period. If you have an explicit need for such a long period of object creation - let's discuss!
To be clear: we do verify the link is still valid (see the aptly-named VerifyLinkAddress), so you will receive an error message when you try to do this.
u
@Ariel Shaqed (Scolnicov) Oh, that makes sense. So within six hours after
getPhysicalAddress
is called, the PhysicalAddress will be marked as active, so it will not be cleaned up by GC.
👍🏼 1
n
To clarify on @Ariel Shaqed (Scolnicov) point. We have a 6 hour grace in GC which correlates to the getPhysicalAddresses expiry. Which means GC will not delete objects that were uploaded less than 6 hours ago
gratitude thank you 1
👍 1