HDDS-1433. Rename GetScmInfoRespsonseProto to GetScmInfoResponseProto due to typos. Contributed by Wanqiang Ji.
This commit is contained in:
parent
aa4c744aef
commit
8aea5e4cb6
@ -190,7 +190,7 @@ private String useFirstLine(String message) {
|
||||
public ScmInfo getScmInfo() throws IOException {
|
||||
HddsProtos.GetScmInfoRequestProto request =
|
||||
HddsProtos.GetScmInfoRequestProto.getDefaultInstance();
|
||||
HddsProtos.GetScmInfoRespsonseProto resp;
|
||||
HddsProtos.GetScmInfoResponseProto resp;
|
||||
try {
|
||||
resp = rpcProxy.getScmInfo(NULL_RPC_CONTROLLER, request);
|
||||
} catch (ServiceException e) {
|
||||
|
@ -357,7 +357,7 @@ public ScmInfo getScmInfo() throws IOException {
|
||||
.setTraceID(TracingUtil.exportCurrentSpan())
|
||||
.build();
|
||||
try {
|
||||
HddsProtos.GetScmInfoRespsonseProto resp = rpcProxy.getScmInfo(
|
||||
HddsProtos.GetScmInfoResponseProto resp = rpcProxy.getScmInfo(
|
||||
NULL_RPC_CONTROLLER, request);
|
||||
ScmInfo.Builder builder = new ScmInfo.Builder()
|
||||
.setClusterId(resp.getClusterId())
|
||||
|
@ -133,7 +133,7 @@ public DeleteScmKeyBlocksResponseProto deleteScmKeyBlocks(
|
||||
}
|
||||
|
||||
@Override
|
||||
public HddsProtos.GetScmInfoRespsonseProto getScmInfo(
|
||||
public HddsProtos.GetScmInfoResponseProto getScmInfo(
|
||||
RpcController controller, HddsProtos.GetScmInfoRequestProto req)
|
||||
throws ServiceException {
|
||||
ScmInfo scmInfo;
|
||||
@ -142,7 +142,7 @@ public HddsProtos.GetScmInfoRespsonseProto getScmInfo(
|
||||
} catch (IOException ex) {
|
||||
throw new ServiceException(ex);
|
||||
}
|
||||
return HddsProtos.GetScmInfoRespsonseProto.newBuilder()
|
||||
return HddsProtos.GetScmInfoResponseProto.newBuilder()
|
||||
.setClusterId(scmInfo.getClusterId())
|
||||
.setScmId(scmInfo.getScmId())
|
||||
.build();
|
||||
|
@ -265,13 +265,13 @@ public ClosePipelineResponseProto closePipeline(
|
||||
}
|
||||
|
||||
@Override
|
||||
public HddsProtos.GetScmInfoRespsonseProto getScmInfo(
|
||||
public HddsProtos.GetScmInfoResponseProto getScmInfo(
|
||||
RpcController controller, HddsProtos.GetScmInfoRequestProto req)
|
||||
throws ServiceException {
|
||||
try (Scope scope = TracingUtil
|
||||
.importAndCreateScope("getScmInfo", req.getTraceID())) {
|
||||
ScmInfo scmInfo = impl.getScmInfo();
|
||||
return HddsProtos.GetScmInfoRespsonseProto.newBuilder()
|
||||
return HddsProtos.GetScmInfoResponseProto.newBuilder()
|
||||
.setClusterId(scmInfo.getClusterId())
|
||||
.setScmId(scmInfo.getScmId())
|
||||
.build();
|
||||
|
@ -138,5 +138,5 @@ service ScmBlockLocationProtocolService {
|
||||
* Gets the scmInfo from SCM.
|
||||
*/
|
||||
rpc getScmInfo(hadoop.hdds.GetScmInfoRequestProto)
|
||||
returns (hadoop.hdds.GetScmInfoRespsonseProto);
|
||||
returns (hadoop.hdds.GetScmInfoResponseProto);
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ service StorageContainerLocationProtocolService {
|
||||
* Returns information about SCM.
|
||||
*/
|
||||
rpc getScmInfo(GetScmInfoRequestProto)
|
||||
returns (GetScmInfoRespsonseProto);
|
||||
returns (GetScmInfoResponseProto);
|
||||
|
||||
/**
|
||||
* Checks if SCM is in SafeMode.
|
||||
|
@ -169,7 +169,7 @@ message GetScmInfoRequestProto {
|
||||
optional string traceID = 1;
|
||||
}
|
||||
|
||||
message GetScmInfoRespsonseProto {
|
||||
message GetScmInfoResponseProto {
|
||||
required string clusterId = 1;
|
||||
required string scmId = 2;
|
||||
}
|
||||
@ -222,8 +222,8 @@ message ContainerBlockID {
|
||||
*/
|
||||
message BlockTokenSecretProto {
|
||||
/**
|
||||
* File access permissions mode.
|
||||
*/
|
||||
* File access permissions mode.
|
||||
*/
|
||||
enum AccessModeProto {
|
||||
READ = 1;
|
||||
WRITE = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user