Commit 67b25ec
Fix structured message decoder to properly handle partial headers across chunks
- Rewrote StructuredMessageDecoder with proper pending buffer management
- Added decodeChunk() API that returns DecodeResult with status codes
- Never read partial headers - wait for complete bytes
- Track lastCompleteSegmentStart correctly for smart retry
- Simplified StorageContentValidationDecoderPolicy to use new decoder API
- Added comprehensive unit tests for split header scenarios
Co-authored-by: gunjansingh-msft <[email protected]>1 parent db7b800 commit 67b25ec
File tree
3 files changed
+743
-361
lines changed- sdk/storage/azure-storage-common/src
- main/java/com/azure/storage/common
- implementation/structuredmessage
- policy
- test/java/com/azure/storage/common/implementation/structuredmessage
3 files changed
+743
-361
lines changed
0 commit comments