-
Notifications
You must be signed in to change notification settings - Fork 536
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
[BREAKING IN 2.20] Added assert for compression ON grouping OFF #23608
[BREAKING IN 2.20] Added assert for compression ON grouping OFF #23608
Conversation
Some places tried to use undefined to disable. This does not work, it gets replaced with default values.
minimumBatchSizeInBytes: 614400, | ||
compressionAlgorithm: CompressionAlgorithms.lz4, | ||
}, | ||
compressionOptions: disabledCompressionConfig, |
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.
expand down to see enableGroupedBatching: false
@@ -231,7 +231,7 @@ describeCompat("blobs", "FullCompat", (getTestObjectProvider, apis) => { | |||
]); | |||
}); | |||
|
|||
[false, true].forEach((enableGroupedBatching) => { | |||
[true].forEach((enableGroupedBatching) => { |
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.
We should revisit the test matrix here after this merges - may want to ensure coverage with grouping and compression both disabled?
@@ -257,7 +255,7 @@ describeCompat("Message size", "NoCompat", (getTestObjectProvider, apis) => { | |||
|
|||
const chunkingBatchesTimeoutMs = 200000; | |||
|
|||
[false, true].forEach((enableGroupedBatching) => { | |||
[true].forEach((enableGroupedBatching) => { |
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 as above, for future - what about both disabled?
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.
Approved for docs!
@@ -120,6 +120,7 @@ describeCompat( | |||
minimumBatchSizeInBytes: compression ? 1000 : Infinity, | |||
compressionAlgorithm: CompressionAlgorithms.lz4, | |||
}, | |||
enableGroupedBatching: compression, // Compression w/o grouping is not supported |
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.
@MarioJGMsoft I think we need to revisit this too - I think there's an existing gap in test coverage where "Grouping Disabled" isn't covered
@MarioJGMsoft / @markfields, since the API change was moved out to 2.30, can you backfill with a replacement breaking change issue under 2.20 list? @anthony-murphy, I think you spotted the Word incompatibility. Are you able to confirm that this doesn't similarly impact Word (as the API change did)? |
I added an issue to the breaking change list, let me know what you think about it. |
Description
We no longer want to make it possible to create a container that has grouping off and compression on, so we will throw an error if we detect that it has been created that way.
Acceptance Criteria
A container throws an error when it is configured with compression on and grouping off.
Execution Plan
Add code to container runtime
Update related tests to make sure that they expect an error to be thrown.
Reviewer Guidance
Please let me know if there's something that I'm missing or that I should know about. Thanks!
Fixes: AB#28625