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

Move singletons out of Faster instance #30

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

sebastianburckhardt
Copy link
Member

Singleton objects clog Faster's object log. Get better perf by storing instance objects separately, and snapshotting them synchronously when creating checkpoing. We store them inside checkpoint commit file.

@sebastianburckhardt
Copy link
Member Author

I am observing issues with uploading large files:

CloudBlockBlob.UploadFromStreamAsync: Microsoft.Azure.Storage.StorageException: The specified blob or block content is invalid.

I think it is caused by a partial upload that fails, and then the next upload uses different blocksizes which just does not work. I may need to use unique names for these blobs.

@sebastianburckhardt sebastianburckhardt added this to the Public Preview milestone Apr 2, 2021
@sebastianburckhardt sebastianburckhardt force-pushed the pr/separate-singleton-storage branch from 4ffb1f0 to 2e118bc Compare April 20, 2021 22:35
@sebastianburckhardt
Copy link
Member Author

I changed the design so that singletons are stored in a separate file inside the cpr-checkpoint folder. This means I do not have to worry about leases, and partial uploads cannot lead to permanently stuck states.

@sebastianburckhardt sebastianburckhardt removed this from the Public Preview milestone Jun 14, 2021
@sebastianburckhardt sebastianburckhardt marked this pull request as draft October 11, 2021 22:00
@sebastianburckhardt sebastianburckhardt force-pushed the pr/separate-singleton-storage branch from 2ab598e to 1eb6c06 Compare December 20, 2021 23:26
@sebastianburckhardt sebastianburckhardt marked this pull request as ready for review December 20, 2021 23:26
@sebastianburckhardt sebastianburckhardt added this to the 0.7.0-beta milestone Dec 21, 2021
@sebastianburckhardt sebastianburckhardt changed the base branch from main to dev December 21, 2021 16:04
@sebastianburckhardt sebastianburckhardt merged commit 822e903 into dev Dec 21, 2021
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.

1 participant