Commit f2d2ca2
authored
If a shard gets closed we properly abort its snapshot
before closing it. We should in thise case make sure to
not throw a confusing exception about trying to increment
the reference on an already closed shard in the async tasks
if the snapshot is already aborted.
Also, added an assertion to make sure that aborts are in
fact the only situation in which we run into a concurrently
closed store.
1 parent e47bdf7 commit f2d2ca2
File tree
1 file changed
+12
-4
lines changed- server/src/main/java/org/elasticsearch/repositories/blobstore
1 file changed
+12
-4
lines changedLines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1159 | 1159 | | |
1160 | 1160 | | |
1161 | 1161 | | |
1162 | | - | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1163 | 1174 | | |
1164 | 1175 | | |
1165 | 1176 | | |
| |||
1360 | 1371 | | |
1361 | 1372 | | |
1362 | 1373 | | |
1363 | | - | |
1364 | 1374 | | |
1365 | 1375 | | |
1366 | 1376 | | |
| |||
1400 | 1410 | | |
1401 | 1411 | | |
1402 | 1412 | | |
1403 | | - | |
1404 | | - | |
1405 | 1413 | | |
1406 | 1414 | | |
1407 | 1415 | | |
| |||
0 commit comments