Commit 4c1a3fa
Track segment boundaries for smart retry resumption
Implemented segment boundary tracking in StructuredMessageDecoder:
- Added lastCompleteSegmentStart to track where complete segments end
- Changed messageOffset and segment fields to long for proper offset tracking
- Fixed segment size reading to handle unsigned long values correctly
- Updated DecoderState.getRetryOffset() to use segment boundaries
- Ensures retries resume from complete segment boundaries, not mid-segment
This matches the decryptor pattern where retries align with block boundaries.
Co-authored-by: gunjansingh-msft <[email protected]>1 parent 3af7a7b commit 4c1a3fa
File tree
2 files changed
+46
-15
lines changed- sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common
- implementation/structuredmessage
- policy
2 files changed
+46
-15
lines changedLines changed: 40 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
48 | 71 | | |
49 | 72 | | |
50 | 73 | | |
| |||
90 | 113 | | |
91 | 114 | | |
92 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
93 | 119 | | |
94 | | - | |
95 | 120 | | |
96 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
97 | 126 | | |
98 | 127 | | |
99 | 128 | | |
| |||
126 | 155 | | |
127 | 156 | | |
128 | 157 | | |
129 | | - | |
130 | | - | |
| 158 | + | |
| 159 | + | |
131 | 160 | | |
132 | 161 | | |
133 | 162 | | |
| |||
182 | 211 | | |
183 | 212 | | |
184 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
185 | 218 | | |
186 | 219 | | |
187 | | - | |
188 | | - | |
189 | 220 | | |
190 | 221 | | |
191 | 222 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
| 300 | + | |
| 301 | + | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
307 | | - | |
308 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| |||
0 commit comments