Skip to content

Commit 8aea5e4

Browse files
committed
HDDS-1433. Rename GetScmInfoRespsonseProto to GetScmInfoResponseProto due to typos. Contributed by Wanqiang Ji.
1 parent aa4c744 commit 8aea5e4

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/protocolPB/ScmBlockLocationProtocolClientSideTranslatorPB.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private String useFirstLine(String message) {
190190
public ScmInfo getScmInfo() throws IOException {
191191
HddsProtos.GetScmInfoRequestProto request =
192192
HddsProtos.GetScmInfoRequestProto.getDefaultInstance();
193-
HddsProtos.GetScmInfoRespsonseProto resp;
193+
HddsProtos.GetScmInfoResponseProto resp;
194194
try {
195195
resp = rpcProxy.getScmInfo(NULL_RPC_CONTROLLER, request);
196196
} catch (ServiceException e) {

hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/protocolPB/StorageContainerLocationProtocolClientSideTranslatorPB.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public ScmInfo getScmInfo() throws IOException {
357357
.setTraceID(TracingUtil.exportCurrentSpan())
358358
.build();
359359
try {
360-
HddsProtos.GetScmInfoRespsonseProto resp = rpcProxy.getScmInfo(
360+
HddsProtos.GetScmInfoResponseProto resp = rpcProxy.getScmInfo(
361361
NULL_RPC_CONTROLLER, request);
362362
ScmInfo.Builder builder = new ScmInfo.Builder()
363363
.setClusterId(resp.getClusterId())

hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/protocolPB/ScmBlockLocationProtocolServerSideTranslatorPB.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public DeleteScmKeyBlocksResponseProto deleteScmKeyBlocks(
133133
}
134134

135135
@Override
136-
public HddsProtos.GetScmInfoRespsonseProto getScmInfo(
136+
public HddsProtos.GetScmInfoResponseProto getScmInfo(
137137
RpcController controller, HddsProtos.GetScmInfoRequestProto req)
138138
throws ServiceException {
139139
ScmInfo scmInfo;
@@ -142,7 +142,7 @@ public HddsProtos.GetScmInfoRespsonseProto getScmInfo(
142142
} catch (IOException ex) {
143143
throw new ServiceException(ex);
144144
}
145-
return HddsProtos.GetScmInfoRespsonseProto.newBuilder()
145+
return HddsProtos.GetScmInfoResponseProto.newBuilder()
146146
.setClusterId(scmInfo.getClusterId())
147147
.setScmId(scmInfo.getScmId())
148148
.build();

hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/protocolPB/StorageContainerLocationProtocolServerSideTranslatorPB.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,13 @@ public ClosePipelineResponseProto closePipeline(
265265
}
266266

267267
@Override
268-
public HddsProtos.GetScmInfoRespsonseProto getScmInfo(
268+
public HddsProtos.GetScmInfoResponseProto getScmInfo(
269269
RpcController controller, HddsProtos.GetScmInfoRequestProto req)
270270
throws ServiceException {
271271
try (Scope scope = TracingUtil
272272
.importAndCreateScope("getScmInfo", req.getTraceID())) {
273273
ScmInfo scmInfo = impl.getScmInfo();
274-
return HddsProtos.GetScmInfoRespsonseProto.newBuilder()
274+
return HddsProtos.GetScmInfoResponseProto.newBuilder()
275275
.setClusterId(scmInfo.getClusterId())
276276
.setScmId(scmInfo.getScmId())
277277
.build();

hadoop-hdds/common/src/main/proto/ScmBlockLocationProtocol.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,5 @@ service ScmBlockLocationProtocolService {
138138
* Gets the scmInfo from SCM.
139139
*/
140140
rpc getScmInfo(hadoop.hdds.GetScmInfoRequestProto)
141-
returns (hadoop.hdds.GetScmInfoRespsonseProto);
141+
returns (hadoop.hdds.GetScmInfoResponseProto);
142142
}

hadoop-hdds/common/src/main/proto/StorageContainerLocationProtocol.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ service StorageContainerLocationProtocolService {
262262
* Returns information about SCM.
263263
*/
264264
rpc getScmInfo(GetScmInfoRequestProto)
265-
returns (GetScmInfoRespsonseProto);
265+
returns (GetScmInfoResponseProto);
266266

267267
/**
268268
* Checks if SCM is in SafeMode.

hadoop-hdds/common/src/main/proto/hdds.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ message GetScmInfoRequestProto {
169169
optional string traceID = 1;
170170
}
171171

172-
message GetScmInfoRespsonseProto {
172+
message GetScmInfoResponseProto {
173173
required string clusterId = 1;
174174
required string scmId = 2;
175175
}
@@ -222,8 +222,8 @@ message ContainerBlockID {
222222
*/
223223
message BlockTokenSecretProto {
224224
/**
225-
* File access permissions mode.
226-
*/
225+
* File access permissions mode.
226+
*/
227227
enum AccessModeProto {
228228
READ = 1;
229229
WRITE = 2;

0 commit comments

Comments
 (0)