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

blob deduping for odsp driver #639

Merged
merged 7 commits into from Nov 23, 2019
Merged

blob deduping for odsp driver #639

merged 7 commits into from Nov 23, 2019

Conversation

jatgarg
Copy link
Contributor

@jatgarg jatgarg commented Nov 21, 2019

1.) Use id+path method for specifying the path of the blob in previous summary so as to reuse it.
2.) id is the unacked handle of the previous summary.
3.) So lets say we posted a summary and got back handle x. While specifying path next time for a given blob we will use X/path1/path2 and lets say we get handle Y back. So then next time we will use Y/path1/path2 for the same blob.
4.) Populate the cache on blob reading in get latest.
5.) Update id to path map to get latest so that we does not depend on getTree as we are not sure there that the requested tree is latest or not.

@jatgarg jatgarg requested a review from vladsud November 21, 2019 19:34
@jatgarg jatgarg self-assigned this Nov 21, 2019
@jatgarg jatgarg merged commit 5f68a0e into microsoft:master Nov 23, 2019
@jatgarg jatgarg deleted the blobdedup branch November 23, 2019 00:53
jatgarg added a commit that referenced this pull request Nov 23, 2019
* Stop writing duplicated blobs to storage for routerlicious driver. (#592)

* stop writing duplicated blobs to storage

* change hashing logic

* add assert

* populate cache with the summary blobs (#626)

* populate cache with the summary blobs

* add in cache while reading tree

* rename

* blob deduping for odsp driver (#639)

* blob deduping for odsp driver

* pr suggestions

* update map in get latest

* have 2 caches with latest and prev caching

* populate cache in blob read

* change comment

* make map local

* make local

* local
curtisman pushed a commit that referenced this pull request Nov 27, 2019
)

* Stop writing duplicated blobs to storage for routerlicious driver. (#592)

* stop writing duplicated blobs to storage

* change hashing logic

* add assert

* populate cache with the summary blobs (#626)

* populate cache with the summary blobs

* add in cache while reading tree

* rename

* blob deduping for odsp driver (#639)

* blob deduping for odsp driver

* pr suggestions

* update map in get latest

* have 2 caches with latest and prev caching

* populate cache in blob read

* change comment

* make map local

* make local

* local
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.

None yet

3 participants