Skip to content

Commit

Permalink
Fixed the SnapshotsInProgress error during index deletion
Browse files Browse the repository at this point in the history
Signed-off-by: Xue Zhou <[email protected]>
  • Loading branch information
xuezhou25 committed Sep 22, 2022
1 parent fdd692f commit bc5ed07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Fixed the ignore_malformed setting to also ignore objects ([#4494](https://github.com/opensearch-project/OpenSearch/pull/4494))
- [Segment Replication] Ignore lock file when testing cleanupAndPreserveLatestCommitPoint ([#4544](https://github.com/opensearch-project/OpenSearch/pull/4544))
- Updated jackson to 2.13.4 and snakeyml to 1.32 ([#4556](https://github.com/opensearch-project/OpenSearch/pull/4556))
- Fixed the snapshotsInProgress error during index deletion ([#4570](https://github.com/opensearch-project/OpenSearch/pull/4570))
- Fixed the SnapshotsInProgress error during index deletion ([#4570](https://github.com/opensearch-project/OpenSearch/pull/4570))

### Security
- CVE-2022-25857 org.yaml:snakeyaml DOS vulnerability ([#4341](https://github.com/opensearch-project/OpenSearch/pull/4341))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2968,8 +2968,8 @@ private SnapshotsInProgress updatedSnapshotsInProgress(ClusterState currentState
final SnapshotsInProgress.Entry updatedEntry = entry.withShardStates(updatedAssignmentsBuilder.build());
snapshotEntries.add(updatedEntry);
changed = true;
// Finalize the completed snapshot when all the required shards are missing during in-progress snapshots update
// after a snapshot deletion is completed.
// When all the required shards for a snapshot are missing, the snapshot state will be "completed"
// need to finalize it.
if (updatedEntry.state().completed()) {
newFinalizations.add(entry);
}
Expand Down

0 comments on commit bc5ed07

Please sign in to comment.