You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comprehensive diagnostic logging for smart retry debugging
Added detailed logging to track decoder state and buffer positions:
- readAndValidateSegmentLength() with hex dump of buffer contents
- Enhanced resetToLastCompleteSegment() logging with all state details
- Segment completion logging with offset and length details
- Buffer reception logging in decodeStream with pending/new byte counts
- Retry offset calculation logging with before/after decoder state
This will help identify where decoder state and retry offset become misaligned.
Co-authored-by: gunjansingh-msft <[email protected]>
Copy file name to clipboardExpand all lines: sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/structuredmessage/StructuredMessageDecoder.java
+77-11Lines changed: 77 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -75,12 +75,21 @@ public long getMessageOffset() {
75
75
*/
76
76
publicvoidresetToLastCompleteSegment() {
77
77
if (messageOffset != lastCompleteSegmentStart) {
78
-
LOGGER.verbose("Resetting decoder from offset {} to last complete segment boundary {}", messageOffset,
Copy file name to clipboardExpand all lines: sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/policy/StorageContentValidationDecoderPolicy.java
0 commit comments