Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Last Access Time Tracking for Blobs #2527

Open
maikschulze opened this issue Jan 23, 2025 · 3 comments
Open

Last Access Time Tracking for Blobs #2527

maikschulze opened this issue Jan 23, 2025 · 3 comments
Assignees
Labels
blob-storage featureparity Tracking issues for catching up feature parity

Comments

@maikschulze
Copy link

Dear Azurite developers,

Would it be feasible to add support for last access time tracking for blobs in Azurite?

On Azure, this can be enabled as following:
https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-policy-configure?tabs=azure-portal#optionally-enable-access-time-tracking
and results in operations such as List Blobs to return the attribute properties:lastaccesstime for every blob.

This would be helpful in Azurite, for example, to draft solutions for cleanup mechanisms that go beyond the abilities of lifecycle management policies, or for synchronization mechanisms based on data usage.

There appears to be a sole mention for lastaccesstime in the code

but I suppose, it's not implement, is it?

Thank You
Maik

@blueww blueww added blob-storage featureparity Tracking issues for catching up feature parity labels Jan 27, 2025
@blueww
Copy link
Member

blueww commented Jan 27, 2025

Blob Last access time is still not implemented in Azurite. Azurite Readme.md file include the info: https://github.com/Azure/Azurite#:~:text=Blob%20Last%20Access%20Time

We might don't have enough bandwidth for this feature in the recent future.

Azurite welcome contribution!
It would be great if you could raise a PR to implement it!

@maikschulze
Copy link
Author

Hi @blueww , thank you for your reply.

I can't make any promises, but I might take a look. Would you prefer having this feature always-on, or controllable somehow? In Azure, last access time tracking (and versionid) would be defined (and changeable) for each storage account.

Does Azurite already have a similar concept to build on?

@blueww
Copy link
Member

blueww commented Jan 27, 2025

@maikschulze

Thanks for the detail question!
Yes, Azurite is a storage data plane rest API emulator, not support control plane rest API which can enable last access time tracking (and versionid)...
There are 2 ways to add the support:

  1. Add a new parameter to enable LAT
  2. Add a configure file for all storage control plane setting.

Option 2 might will be better, as other new feature with control plane setting can also utilize it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
blob-storage featureparity Tracking issues for catching up feature parity
Projects
None yet
Development

No branches or pull requests

3 participants