Commit 2d4ce36
committed
Handle OpenSearch disk-space errors explicitly
Replace fragile string matching with is_disk_space_error helper and OpenSearchDiskSpaceError. The patch imports OpenSearchDiskSpaceError and is_disk_space_error, updates the log message wording, and raises the custom OpenSearchDiskSpaceError instead of a generic Exception to improve error detection and handling when OpenSearch disk watermarks are exceeded.1 parent 854245e commit 2d4ce36
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
201 | 202 | | |
202 | | - | |
| 203 | + | |
203 | 204 | | |
204 | | - | |
205 | | - | |
| 205 | + | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
0 commit comments