Repository navigation
Commit cdb2f2c
MLE-32953 Make StreamingOutputImpl retry decision reflect handle resendability
StreamingOutputImpl previously hardcoded isRetryable()=false / isOneShot()=true
for every wrapped OutputStreamSender, even when the originating write handle
was fully buffered and resendable (e.g. JacksonHandle, StringHandle). This
meant any request body built from such a handle -- including Row Manager plan
execution, document writes, and Data Services parameters -- was needlessly
blocked from being retried by RetryIOExceptionInterceptor after a transient
connection error, even though the content could safely be written again.
Thread each call site's already-known isResendable()/handleBase.isResendable()
value into StreamingOutputImpl instead of assuming non-resendable:
- writeDocumentImpl-style document writes
- putPostValueImpl
- postResource / putResource (used by RowManagerImpl for Optic plan execution)
- postIteratedResourceImpl (multipart-mixed eval/invoke style resources)
- addParts multipart builder
- makeRequestBodyForContent and BaseProxy's makeRequestBody (Data Services
single-node parameters)
Call sites without an existing resendable concept (structured query search,
alert match) keep the prior conservative false/one-shot default via new 3-arg
doPost/doPut overloads, so behavior is unchanged where resendability was
never determined.
Added StreamingOutputImplTest cases covering: a resendable body being retried
after a simulated connection failure, and a non-resendable part inside a
MultipartBody still propagating isOneShot()=true so it is never retried.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3c26e65 commit cdb2f2c
3 files changed
Lines changed: 104 additions & 13 deletions
File tree
- marklogic-client-api/src
- main/java/com/marklogic/client/impl
- test/java/com/marklogic/client/impl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1229 | 1229 | | |
1230 | 1230 | | |
1231 | 1231 | | |
1232 | | - | |
| 1232 | + | |
1233 | 1233 | | |
1234 | 1234 | | |
1235 | 1235 | | |
| |||
2457 | 2457 | | |
2458 | 2458 | | |
2459 | 2459 | | |
2460 | | - | |
| 2460 | + | |
2461 | 2461 | | |
2462 | 2462 | | |
2463 | 2463 | | |
| |||
2831 | 2831 | | |
2832 | 2832 | | |
2833 | 2833 | | |
2834 | | - | |
| 2834 | + | |
2835 | 2835 | | |
2836 | 2836 | | |
2837 | 2837 | | |
| |||
2980 | 2980 | | |
2981 | 2981 | | |
2982 | 2982 | | |
2983 | | - | |
| 2983 | + | |
2984 | 2984 | | |
2985 | 2985 | | |
2986 | 2986 | | |
| |||
3573 | 3573 | | |
3574 | 3574 | | |
3575 | 3575 | | |
3576 | | - | |
| 3576 | + | |
| 3577 | + | |
3577 | 3578 | | |
3578 | 3579 | | |
3579 | 3580 | | |
| |||
3746 | 3747 | | |
3747 | 3748 | | |
3748 | 3749 | | |
| 3750 | + | |
| 3751 | + | |
| 3752 | + | |
| 3753 | + | |
| 3754 | + | |
3749 | 3755 | | |
3750 | 3756 | | |
3751 | 3757 | | |
3752 | 3758 | | |
3753 | 3759 | | |
3754 | 3760 | | |
3755 | | - | |
| 3761 | + | |
3756 | 3762 | | |
3757 | 3763 | | |
3758 | 3764 | | |
| |||
3788 | 3794 | | |
3789 | 3795 | | |
3790 | 3796 | | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
3791 | 3802 | | |
3792 | 3803 | | |
3793 | 3804 | | |
| |||
3799 | 3810 | | |
3800 | 3811 | | |
3801 | 3812 | | |
3802 | | - | |
| 3813 | + | |
3803 | 3814 | | |
3804 | 3815 | | |
3805 | 3816 | | |
| |||
4003 | 4014 | | |
4004 | 4015 | | |
4005 | 4016 | | |
4006 | | - | |
| 4017 | + | |
4007 | 4018 | | |
4008 | 4019 | | |
4009 | 4020 | | |
| |||
5291 | 5302 | | |
5292 | 5303 | | |
5293 | 5304 | | |
5294 | | - | |
| 5305 | + | |
5295 | 5306 | | |
5296 | 5307 | | |
5297 | 5308 | | |
| |||
5513 | 5524 | | |
5514 | 5525 | | |
5515 | 5526 | | |
5516 | | - | |
| 5527 | + | |
5517 | 5528 | | |
5518 | 5529 | | |
5519 | 5530 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
23 | 37 | | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
| 41 | + | |
27 | 42 | | |
28 | 43 | | |
29 | 44 | | |
| |||
50 | 65 | | |
51 | 66 | | |
52 | 67 | | |
53 | | - | |
54 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
55 | 73 | | |
56 | 74 | | |
57 | 75 | | |
| |||
60 | 78 | | |
61 | 79 | | |
62 | 80 | | |
63 | | - | |
| 81 | + | |
64 | 82 | | |
65 | 83 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
84 | 146 | | |
0 commit comments