-
Notifications
You must be signed in to change notification settings - Fork 333
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
Add Blob Copy & Page Blob support to by SQL based metadata implementation in Blob API and Sync Loki and SQL metadata stores #2225
base: main
Are you sure you want to change the base?
Conversation
…rializing de-serializing of remaining properties as well.
…n SQL blobMetadataStore
…nd on timezone and fails even then and test another component not Azurite
…container test since now it is working
…tests to be flaky
it(`Should work with production style URL when ${productionStyleHostName} is resolvable`, async () => { | ||
// This now doesn't work (Error: Unable to extract accountName with provided information.). | ||
// As the sdk expect an url in the form devstoreaccount1.blob.localhost instead of devstoreaccount1.localhost | ||
it.skip(`Should work with production style URL when ${productionStyleHostName} is resolvable`, async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks already won't run as don't have loki or sql tag, so looks don't need skip it.
@@ -488,8 +488,6 @@ This feature is in preview, when Azurite changes database table schema, you need | |||
|
|||
> Note. Need to manually create database before starting Azurite instance. | |||
|
|||
> Note. Blob Copy & Page Blob are not supported by SQL based metadata implementation. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The support matrix section in ReadMe.md should also be updated.
Line 1011 in 9208664
- Copy Blob From URL (Only supports copy within same Azurite instance, only on Loki) |
contentProperties: { | ||
type: "VARCHAR(1023)" | ||
properties: { | ||
type: "VARCHAR(4095)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this cause the saved blobs in old Azurite version, can't be read out with new Azurite version?
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.