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

Not throwing FileNotFoundException if BlobContainer has been deleted (#75991) #76086

Merged
merged 1 commit into from
Aug 4, 2021

Conversation

masseyke
Copy link
Member

@masseyke masseyke commented Aug 4, 2021

If the underlying directory for an HdfsBlobContainer has been deleted (such as by calling HdfsBlobContainer.delete()) then
listBlobsByPrefix() was throwing a FileNotFoundException. This change makes listBlobsByPrefix() return an empty array
instead, which is inline with the behavior of FsBlobContainer. It also adds HdfsSnapshotRepoTestKitIT, which runs the repo
analyzer against the HDFS repo.
Relates to #73708

…lastic#75991)

If the underlying directory for an HdfsBlobContainer has been deleted (such as by calling HdfsBlobContainer.delete()) then listBlobsByPrefix() was throwing a FileNotFoundException. This change makes listBlobsByPrefix() return an empty array instead, which is inline with the behavior of FsBlobContainer. It also adds HdfsSnapshotRepoTestKitIT, which runs the repo analyzer against the HDFS repo.
Closes elastic#73708
@masseyke masseyke added the Team:Data Management Meta label for data/management team label Aug 4, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@masseyke masseyke linked an issue Aug 4, 2021 that may be closed by this pull request
@masseyke masseyke merged commit e24536c into elastic:7.x Aug 4, 2021
@masseyke masseyke deleted the fix/73708-backport branch August 4, 2021 14:26
@joegallo joegallo added backport and removed Team:Data Management Meta label for data/management team labels Sep 22, 2021
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.

Hdfs repository analysis check failed
4 participants