Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Metadata Vanishing[BUG] #1063

Closed
3 tasks done
Mojo1 opened this issue Jun 24, 2024 · 1 comment
Closed
3 tasks done

Metadata Vanishing[BUG] #1063

Mojo1 opened this issue Jun 24, 2024 · 1 comment
Labels
azure-spring All azure-spring related issues

Comments

@Mojo1
Copy link

Mojo1 commented Jun 24, 2024

Describe the bug

I also opened a issue with Azurite. Don't know what it is

Azure/Azurite#2416

What problem was encountered?
This is a really curious issue with metadata. As soon as I iterate over blob containers in code metadata vanish.
I don't know if it's a problem with Azurite Emulator or if the java lib is buggy. I tracked it down just to this iteration. No other operations done

Steps to reproduce the issue?
Install and run Azurite
Install and open Microsoft Azure Storage explorer
Open "Emulator & Attached" - Storage Accounts - Emulator - Blob containers
Create a container
right click properties
add metadata
use spring boot BlobServiceClient to iterate over paged response blobcontaineritem
After that metadata is gone
Could be any party involved losing it. Thought I try here for investigation

Exception or Stack Trace

To Reproduce

Code Snippet

public Map<String, ConfigType> getConfigTypes() { Map<String, ConfigType> configTypes = new HashMap<>(); PagedIterable<BlobContainerItem> blobContainerItemPages = blobServiceClient.listBlobContainers(); Iterator<PagedResponse<BlobContainerItem>> iterator = blobContainerItemPages.iterableByPage().iterator(); while (iterator.hasNext()) { PagedResponse<BlobContainerItem> blobContainerItems = iterator.next(); processBlobContainerItems(blobContainerItems, configTypes); } return configTypes; } private void processBlobContainerItems(PagedResponse<BlobContainerItem> blobContainerItems, Map<String, ConfigType> configTypes) { for (BlobContainerItem blobContainerItem : blobContainerItems.getValue()) { BlobContainerClient blobContainerClient = blobServiceClient .getBlobContainerClient(blobContainerItem.getName()); List<String> versions = getBlobVersions(blobContainerClient); String latestVersionString = getLatestVersionString(versions); String description = getDescription(blobContainerItem); String title = getTitle(blobContainerItem); ConfigType configType = createConfigType(title, latestVersionString, versions, description); configTypes.put(blobContainerItem.getName(), configType); } }

Expected behavior

Metadata should be fetched and not deleted
Screenshots

Content (please complete the following information if possible):

Additional context

Information Checklist

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added
@Mojo1 Mojo1 added the azure-spring All azure-spring related issues label Jun 24, 2024
@Mojo1 Mojo1 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
@Mojo1
Copy link
Author

Mojo1 commented Jul 15, 2024

fixed here Azure/Azurite#2416

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues
Projects
None yet
Development

No branches or pull requests

1 participant