Commit 7d5e3b4
committed
Add error handling to GetIndicesPointingToAlias. /wrongname/_aliases used to return an empty array
(e.g. in ES 0.20) for a non-existing alias, but in more recent ES versions (0.90) it returns
{"error":"IndexMissingException[[wrongname] missing]","status":404}
So we need to add explicit error handling here, otherwise GetIndicesPointingToAlias returns two
"indices" called "error" and "status".1 parent 45cbfb1 commit 7d5e3b4
1 file changed
+15
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | | - | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
0 commit comments