Convert index blocks to cluster block exceptions (#27050)
This commit is contained in:
parent
506a2c276d
commit
13cd08b1e6
|
@ -62,7 +62,7 @@ public class TransportDeleteIndexTemplateAction extends TransportMasterNodeActio
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ClusterBlockException checkBlock(DeleteIndexTemplateRequest request, ClusterState state) {
|
protected ClusterBlockException checkBlock(DeleteIndexTemplateRequest request, ClusterState state) {
|
||||||
return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_WRITE, "");
|
return state.blocks().globalBlockedException(ClusterBlockLevel.METADATA_WRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -66,7 +66,7 @@ public class TransportPutIndexTemplateAction extends TransportMasterNodeAction<P
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ClusterBlockException checkBlock(PutIndexTemplateRequest request, ClusterState state) {
|
protected ClusterBlockException checkBlock(PutIndexTemplateRequest request, ClusterState state) {
|
||||||
return state.blocks().indexBlockedException(ClusterBlockLevel.METADATA_WRITE, "");
|
return state.blocks().globalBlockedException(ClusterBlockLevel.METADATA_WRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue