Commit 0027df0
authored
Stop waiting if
## Problem
After creating an index, the SDK polls until the index is ready to be
used. But if the index state transitions to `InitializationFailed`, the
client will hang. Sometimes this causes our test suite to get stuck and
run for hours until somebody manually intervenes or a CI timeout is
reached.
## Solution
Raise an exception and stop waiting if an index reaches the
`InitializationFailed` state.
## Type of Change
- [x] Bug fix (non-breaking change which fixes an issue)InitializationFailed state is reached (#495)2 files changed
+37
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | 113 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
126 | 124 | | |
127 | | - | |
128 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
129 | 128 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
147 | 132 | | |
148 | | - | |
| 133 | + | |
| 134 | + | |
149 | 135 | | |
150 | 136 | | |
151 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 148 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
161 | 154 | | |
162 | | - | |
163 | | - | |
| 155 | + | |
| 156 | + | |
164 | 157 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
178 | 161 | | |
179 | | - | |
180 | | - | |
181 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
182 | 169 | | |
183 | | - | |
| 170 | + | |
| 171 | + | |
184 | 172 | | |
185 | 173 | | |
186 | 174 | | |
| |||
0 commit comments