Commit 9addf0b
authored
Stop Blocking Snapshot Deletes Due to Concurrency Limits (#71050)
Limiting the number of concurrent snapshots is useful in preventing excessive memory use.
For deletes that aren't actively executing memory use is negligible. We also only have
at the most two delete snapshot entries per repository (a currently executing one and a queued
up one that that new delete requests get batched into). Thus there is no good reason to prevent
snapshot deletes via the concurrent operations limit to limit memory use. On the other hand though,
not allowing deletes and specifically aborts to exceed the concurrency limits makes it impossible for
a user that already has the maximum number of snapshot create operations running to abort any of them.1 parent c8415a7 commit 9addf0b
File tree
2 files changed
+26
-17
lines changed- server/src
- internalClusterTest/java/org/elasticsearch/snapshots
- main/java/org/elasticsearch/snapshots
2 files changed
+26
-17
lines changedLines changed: 25 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | | - | |
1116 | 1115 | | |
1117 | 1116 | | |
1118 | 1117 | | |
1119 | | - | |
| 1118 | + | |
1120 | 1119 | | |
1121 | 1120 | | |
1122 | 1121 | | |
1123 | | - | |
1124 | 1122 | | |
1125 | 1123 | | |
1126 | 1124 | | |
1127 | 1125 | | |
1128 | | - | |
| 1126 | + | |
1129 | 1127 | | |
1130 | 1128 | | |
1131 | 1129 | | |
1132 | 1130 | | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
| 1131 | + | |
1136 | 1132 | | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
1142 | 1142 | | |
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
1147 | 1147 | | |
1148 | | - | |
1149 | | - | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
1150 | 1161 | | |
1151 | 1162 | | |
1152 | 1163 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1685 | 1685 | | |
1686 | 1686 | | |
1687 | 1687 | | |
1688 | | - | |
1689 | | - | |
1690 | 1688 | | |
1691 | | - | |
| 1689 | + | |
1692 | 1690 | | |
1693 | 1691 | | |
1694 | 1692 | | |
| |||
0 commit comments