Skip to content

Commit

Permalink
Catch OpenSearchException as well during the batch flow
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Arora <[email protected]>
  • Loading branch information
shiv0408 committed Feb 27, 2024
1 parent fc3ab43 commit 57960f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private Map<ShardId, NodeStoreFilesMetadata> listStoreMetadata(NodeRequest reque
clusterService
);
shardStoreMetadataMap.put(shardId, new NodeStoreFilesMetadata(storeFilesMetadata, null));
} catch (IOException e) {
} catch (IOException | OpenSearchException e) {
shardStoreMetadataMap.put(
shardId,
new NodeStoreFilesMetadata(new StoreFilesMetadata(shardId, Store.MetadataSnapshot.EMPTY, Collections.emptyList()), e)
Expand Down

0 comments on commit 57960f9

Please sign in to comment.