Add Blob Copy & Page Blob support to by SQL based metadata implementation in Blob API and Sync Loki and SQL metadata stores #2225
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Blob Copy & Page Blob support to by SQL based metadata implementation in Blob API. This makes the SQL based metadata implementation in sync with File based one. (issue #2224)
I divided the PR into very small mini commits for better visibility but most of these commits are small either in scope or code.
Changes are as follows:
In code: ([SqlBlobMetadataStore.ts])
copyFromURL
from Loki to SQL blobMeatadataStoreappendBlock
from Loki to SQL blobMeatadataStoreclearRange
from Loki to SQL blobMeatadataStoregetPageRanges
from Loki to SQL blobMeatadataStoreresizePageBlob
from Loki to SQL blobMeatadataStoreupdateSequenceNumber
from Loki to SQL blobMeatadataStoreIn Tests:
generateAccountSASQueryParameters
in sas blob tests as it depend on timezone and fails even then and test another component not AzuriteOthers:
Note: I recommend removing the @loki and @Sql all together and run all test cases without grep for both loki and sql to avoid descync in the future but its your call.