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

Support fallback blob store #707

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Support fallback blob store #707

merged 1 commit into from
Sep 6, 2024

Conversation

Andyz26
Copy link
Collaborator

@Andyz26 Andyz26 commented Sep 5, 2024

Context

Add support to a fallback blob store which will be used if the default storage cannot fetch the target file. This is used for blob store migration.

Checklist

  • ./gradlew build compiles code correctly
  • Added new tests where applicable
  • ./gradlew test passes all tests
  • Extended README or added javadocs where applicable

@@ -67,6 +72,23 @@ static BlobStore forHadoopFileSystem(URI clusterStoragePath, File localStoreDir)
.withThreadSafeBlobStore();
}

static BlobStore forHadoopFileSystem(URI clusterStoragePath, URI fallbackStoragePath, File localStoreDir)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: why custom API for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean by custom API? This is overloading the same API above with extra param.

Copy link
Contributor

@sundargates sundargates left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link

github-actions bot commented Sep 5, 2024

Test Results

538 tests  +1   532 ✅ +1   7m 43s ⏱️ +2s
139 suites ±0     6 💤 ±0 
139 files   ±0     0 ❌ ±0 

Results for commit 1379d31. ± Comparison against base commit 46e8c23.

@Andyz26 Andyz26 merged commit fa55cb1 into master Sep 6, 2024
4 of 5 checks passed
@Andyz26 Andyz26 deleted the andyz/fallbackBlobstore branch September 6, 2024 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants