Commit c20e72d
authored
[Extensions] Increasing AD Extension Request timeout to 20 and fixes exception handling for Delete/Profile (#916)
* Replacing hardcoded timeout values with AnomalyDetectorSettings.REQUEST_TIMEOUT setting, increased request timeout setting to 20, fixed affected tests
Signed-off-by: Joshua Palis <[email protected]>
* Addressing PR comments, adding TODO to opendistro legacy settings
Signed-off-by: Joshua Palis <[email protected]>
* Fixes Delete/ProfileDetector exception handling to check message rather than type
Signed-off-by: Joshua Palis <[email protected]>
* Addressing PR comments, added new constructors to IndexUtils/CheckpointDao to assume an empty settings object if not passed directly
Signed-off-by: Joshua Palis <[email protected]>
---------
Signed-off-by: Joshua Palis <[email protected]>1 parent 4e97313 commit c20e72d
File tree
10 files changed
+160
-29
lines changed- src/main/java/org/opensearch/ad
- indices
- ml
- rest
- settings
- task
- transport
- util
10 files changed
+160
-29
lines changedLines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
253 | 260 | | |
254 | 261 | | |
255 | 262 | | |
| |||
358 | 365 | | |
359 | 366 | | |
360 | 367 | | |
361 | | - | |
| 368 | + | |
| 369 | + | |
362 | 370 | | |
363 | 371 | | |
364 | 372 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
655 | | - | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
656 | 658 | | |
657 | 659 | | |
658 | 660 | | |
| |||
685 | 687 | | |
686 | 688 | | |
687 | 689 | | |
688 | | - | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
689 | 693 | | |
690 | 694 | | |
691 | 695 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| 193 | + | |
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
| |||
1098 | 1101 | | |
1099 | 1102 | | |
1100 | 1103 | | |
1101 | | - | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
1102 | 1107 | | |
1103 | 1108 | | |
1104 | 1109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
| |||
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
145 | | - | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| |||
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
179 | 240 | | |
180 | 241 | | |
181 | 242 | | |
| 243 | + | |
182 | 244 | | |
183 | 245 | | |
184 | 246 | | |
| |||
192 | 254 | | |
193 | 255 | | |
194 | 256 | | |
| 257 | + | |
195 | 258 | | |
196 | 259 | | |
197 | 260 | | |
| |||
452 | 515 | | |
453 | 516 | | |
454 | 517 | | |
455 | | - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
456 | 521 | | |
457 | 522 | | |
458 | 523 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| 216 | + | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
| |||
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
| 244 | + | |
241 | 245 | | |
242 | 246 | | |
243 | 247 | | |
| |||
1377 | 1381 | | |
1378 | 1382 | | |
1379 | 1383 | | |
1380 | | - | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
1381 | 1387 | | |
1382 | 1388 | | |
1383 | 1389 | | |
| |||
1573 | 1579 | | |
1574 | 1580 | | |
1575 | 1581 | | |
1576 | | - | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
1577 | 1585 | | |
1578 | 1586 | | |
1579 | 1587 | | |
| |||
1776 | 1784 | | |
1777 | 1785 | | |
1778 | 1786 | | |
1779 | | - | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
1780 | 1790 | | |
1781 | 1791 | | |
1782 | 1792 | | |
| |||
1833 | 1843 | | |
1834 | 1844 | | |
1835 | 1845 | | |
1836 | | - | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
1837 | 1849 | | |
1838 | 1850 | | |
1839 | 1851 | | |
| |||
1845 | 1857 | | |
1846 | 1858 | | |
1847 | 1859 | | |
1848 | | - | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
1849 | 1863 | | |
1850 | 1864 | | |
1851 | 1865 | | |
| |||
2014 | 2028 | | |
2015 | 2029 | | |
2016 | 2030 | | |
2017 | | - | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
2018 | 2034 | | |
2019 | 2035 | | |
2020 | 2036 | | |
| |||
2023 | 2039 | | |
2024 | 2040 | | |
2025 | 2041 | | |
2026 | | - | |
2027 | | - | |
2028 | | - | |
2029 | 2042 | | |
2030 | | - | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
2031 | 2049 | | |
2032 | 2050 | | |
2033 | 2051 | | |
| |||
2045 | 2063 | | |
2046 | 2064 | | |
2047 | 2065 | | |
2048 | | - | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
2049 | 2069 | | |
2050 | 2070 | | |
2051 | 2071 | | |
| |||
3037 | 3057 | | |
3038 | 3058 | | |
3039 | 3059 | | |
3040 | | - | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
3041 | 3063 | | |
3042 | 3064 | | |
3043 | 3065 | | |
| |||
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | | - | |
| 149 | + | |
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
| |||
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
166 | | - | |
| 165 | + | |
167 | 166 | | |
168 | 167 | | |
169 | 168 | | |
| |||
0 commit comments