octachoron commented on code in PR #9611:
URL: https://github.com/apache/ozone/pull/9611#discussion_r2684383575
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/scm/protocolPB/StorageContainerLocationProtocolClientSideTranslatorPB.java:
##########
@@ -870,6 +874,50 @@ public boolean forceExitSafeMode() throws IOException {
}
+ @Override
+ public boolean inSafeModeForNode(String nodeId) throws IOException {
+ InSafeModeRequestProto request =
InSafeModeRequestProto.getDefaultInstance();
+
+ try {
+ StorageContainerLocationProtocolPB proxy = fpp.getProxyForNode(nodeId);
+ ScmContainerLocationRequest wrapper =
ScmContainerLocationRequest.newBuilder()
+ .setCmdType(Type.InSafeMode)
+ .setVersion(ClientVersion.CURRENT_VERSION)
+ .setTraceID(TracingUtil.exportCurrentSpan())
+ .setInSafeModeRequest(request)
+ .build();
+ ScmContainerLocationResponse response =
proxy.submitRequest(NULL_RPC_CONTROLLER, wrapper);
Review Comment:
Looks like it did improve things. :slightly_smiling_face: Thank you for the
change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]