Commit bed02e2
authored
Change FailedToCommitClusterStateException to NotMasterException (#135008)
Modifies the `Batch.onRejection` method to accept a `NotMasterException`
rather than a `FailedToCommitClusterStateException`. The
`NotMasterException` is thrown because the master node has closed.
However, at this point we haven't even tried to commit the cluster
state so we know for a fact that it's failed, so a
`FailedToCommitClusterStateException`, which implies ambiguity in
whether the cluster state update was committed or not, is wrong here.1 parent 0592415 commit bed02e2
File tree
3 files changed
+14
-11
lines changed- server/src
- main/java/org/elasticsearch/cluster
- service
- test/java/org/elasticsearch/cluster/service
3 files changed
+14
-11
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1283 | 1283 | | |
1284 | 1284 | | |
1285 | 1285 | | |
1286 | | - | |
| 1286 | + | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
| |||
1309 | 1309 | | |
1310 | 1310 | | |
1311 | 1311 | | |
1312 | | - | |
| 1312 | + | |
1313 | 1313 | | |
1314 | 1314 | | |
1315 | 1315 | | |
| |||
1336 | 1336 | | |
1337 | 1337 | | |
1338 | 1338 | | |
1339 | | - | |
| 1339 | + | |
1340 | 1340 | | |
1341 | 1341 | | |
1342 | 1342 | | |
| |||
1353 | 1353 | | |
1354 | 1354 | | |
1355 | 1355 | | |
1356 | | - | |
| 1356 | + | |
1357 | 1357 | | |
1358 | 1358 | | |
1359 | 1359 | | |
| |||
1407 | 1407 | | |
1408 | 1408 | | |
1409 | 1409 | | |
1410 | | - | |
| 1410 | + | |
1411 | 1411 | | |
1412 | 1412 | | |
1413 | 1413 | | |
1414 | | - | |
1415 | | - | |
| 1414 | + | |
1416 | 1415 | | |
1417 | 1416 | | |
1418 | 1417 | | |
| |||
1634 | 1633 | | |
1635 | 1634 | | |
1636 | 1635 | | |
1637 | | - | |
| 1636 | + | |
1638 | 1637 | | |
1639 | 1638 | | |
1640 | 1639 | | |
| |||
1654 | 1653 | | |
1655 | 1654 | | |
1656 | 1655 | | |
1657 | | - | |
| 1656 | + | |
1658 | 1657 | | |
1659 | 1658 | | |
1660 | 1659 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2182 | 2182 | | |
2183 | 2183 | | |
2184 | 2184 | | |
2185 | | - | |
| 2185 | + | |
2186 | 2186 | | |
2187 | 2187 | | |
2188 | 2188 | | |
| |||
2361 | 2361 | | |
2362 | 2362 | | |
2363 | 2363 | | |
2364 | | - | |
| 2364 | + | |
2365 | 2365 | | |
2366 | 2366 | | |
2367 | 2367 | | |
| |||
0 commit comments