-
Notifications
You must be signed in to change notification settings - Fork 173
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
Update blob file format and enabling dual write #1549
Conversation
|
src/Microsoft.Health.Dicom.Core/Features/Common/DicomFileNameWithPrefix.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Features/Common/HashingHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Features/Common/HashingHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Features/Common/HashingHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Features/Common/HashingHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Features/Common/HashingHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Features/Common/HashingHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Features/Common/HashingHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Blob/Features/Storage/BlobFileStore.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Features/Common/DicomFileNameWithUID.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Configs/FeatureConfiguration.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core.UnitTests/Features/Common/DicomFileNameWithPrefixTests.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Features/Common/DicomFileNameWithPrefix.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Blob/Features/Storage/BlobMetadataStore.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Configs/FeatureConfiguration.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Features/Common/HashingHelper.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Blob/Features/Storage/BlobFileStore.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Health.Dicom.Core/Features/Common/DicomFileNameWithPrefix.cs
Outdated
Show resolved
Hide resolved
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.
I think we're missing some messaging/documentation on this change. Also, what is the thought on what type of version change this is going to be?
src/Microsoft.Health.Dicom.Blob/Features/Storage/BlobMetadataStore.cs
Outdated
Show resolved
Hide resolved
We could start with discussions and let them know that dont enable the flag for existing deployments. Is that sounds reasonable to you? |
It will be a major version. And Josiah will start a discussions |
@@ -74,6 +74,7 @@ | |||
"DicomFunctions__ConnectionName": "AzureWebJobsStorage", | |||
"DicomServer__Security__Enabled": "true", | |||
"DicomServer__Security__Authorization__Enabled": "true", | |||
"DicomServer__Services__BlobMigration__FormatType": "2", |
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.
Is it possible to have the configuration be the string representation of the enum New
? I don't recall for sure off hand, but I believe that would work.
@@ -202,6 +202,7 @@ | |||
"DicomFunctions__DurableTask__ConnectionName": "AzureWebJobsStorage", | |||
"DicomServer__Features__EnableOhifViewer": "[parameters('deployOhifViewer')]", | |||
"DicomServer__Features__EnableExtendedQueryTags": "true", | |||
"DicomServer__Services__BlobMigration__FormatType": "2", |
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.
Again, if someone has it setup to pull our CI and use this template to for their deployment, won't this put them in a broken scenario?
@@ -67,7 +82,7 @@ public class BlobMetadataStore : IMetadataStore | |||
// Creates a copy of the dataset with bulk data removed. | |||
DicomDataset dicomDatasetWithoutBulkData = dicomDataset.CopyWithoutBulkDataItems(); | |||
|
|||
BlockBlobClient blob = GetInstanceBlockBlob(dicomDatasetWithoutBulkData.ToVersionedInstanceIdentifier(version)); | |||
BlockBlobClient[] blobs = GetInstanceBlockBlobClients(dicomDatasetWithoutBulkData.ToVersionedInstanceIdentifier(version)); |
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.
nit: blobs -> blobClients
}, | ||
"Services": { | ||
"BlobMigration": { | ||
"FormatType": 0 |
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.
I think we can use a string enum here.
@@ -75,6 +75,9 @@ | |||
}, | |||
"ExtendedQueryTag": { | |||
"MaxAllowedCount": 128 | |||
}, | |||
"BlobMigration": { | |||
"FormatType": 0 |
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.
same
Description
As part of blob file name migration, this is the first step to add support dual write if enabled by a flag. It also adds a new flag for new blob format for newly added service.
Added reference to new Hash function
Related issues
Addresses AB#90330.
Testing
New unit tests are added and update the existing config to include the new flag