Skip to content

Commit fb78a53

Browse files
committed
adding a check for nonexistent failure store
1 parent e6f118a commit fb78a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ protected ClusterBlockException checkBlock(RolloverRequest request, ClusterState
165165
if (targetData) {
166166
indicesToCheck.add(dataStream.getWriteIndex().getName());
167167
}
168-
if (targetFailureStore) {
168+
if (targetFailureStore && dataStream.getWriteFailureIndex() != null) {
169169
indicesToCheck.add(dataStream.getWriteFailureIndex().getName());
170170
}
171171
return state.blocks().indicesBlockedException(ClusterBlockLevel.METADATA_WRITE, indicesToCheck.toArray(new String[0]));

0 commit comments

Comments
 (0)