Commit 6c32443
authored
Remove Redundant Cluster State during Snapshot INIT + Master Failover (#54420)
* Remove Redundant Cluster State during Snapshot INIT + Master Failover
Similar to #54395 we know that a snapshot in INIT state has not
written anything to the repository yet. If we see one from a master
failover, there is no point in moving it to ABORTED before removing it
from the cluster state in a subsequent CS update.
Instead, we can simply remove its job from the CS the first time
we see it on master failover and be done with it.1 parent c7da75a commit 6c32443
File tree
1 file changed
+2
-16
lines changed- server/src/main/java/org/elasticsearch/snapshots
1 file changed
+2
-16
lines changedLines changed: 2 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
| 830 | + | |
| 831 | + | |
846 | 832 | | |
847 | 833 | | |
848 | 834 | | |
| |||
0 commit comments