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

Fix invalid detection of hierarchical namespace stub blobs as files #4046

Merged

Conversation

fbdtemme
Copy link
Contributor

Using Azure Batch executor with storage account enabling hierarchical namespaces have problems publishing directories.
The problem is that for each directory azure will create an empty "stub blob" with a metadata field: "hdi_isfolder": "true"

Nextflow currently detects these as files and will create a download request for that stub blob using a directory path which will cause a BlobStorageException (Status code 400: InvalidInput)

This PR adds a simple to check to detect such blobs and mark those as directories.

Fixes: #4016, #2557

@bentsherman
Copy link
Member

@adamrtalbot Can you test this PR with an appropriate storage account?

@adamrtalbot
Copy link
Collaborator

@adamrtalbot Can you test this PR with an appropriate storage account?

yep - I've created a storage account now.

@adamrtalbot
Copy link
Collaborator

Currently I'm unable to reproduce the problem at all. Given this is related to the reports in Tower, can you run a custom Nextflow version in Tower?

@bentsherman
Copy link
Member

I thought the issue is with publishing directories to Gen2 Data Lake? So it should be independent of Tower.

@adamrtalbot
Copy link
Collaborator

adamrtalbot commented Jun 29, 2023

I thought the issue is with publishing directories to Gen2 Data Lake? So it should be independent of Tower.

Correct, I'm mixing up with #4059. #2557 is fixed with this PR, I was able to reproduce the error on 23.04.2-edge and it was gone on dev.

@bentsherman bentsherman self-requested a review June 29, 2023 12:44
@pditommaso pditommaso merged commit ce06c87 into nextflow-io:master Jun 29, 2023
@pditommaso pditommaso added this to the 23.10.0 milestone Jul 19, 2023
abhi18av pushed a commit to abhi18av/nextflow that referenced this pull request Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues with NF and Azure Gen2 storage accounts
4 participants