priyeshkaratha commented on code in PR #8566:
URL: https://github.com/apache/ozone/pull/8566#discussion_r2196443947
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/scm/protocolPB/ScmBlockLocationProtocolClientSideTranslatorPB.java:
##########
@@ -232,10 +233,15 @@ public List<DeleteBlockGroupResult> deleteKeyBlocks(
List<DeletedBlockGroup> keyBlocksInfoList) throws IOException {
List<KeyBlocks> keyBlocksProto;
- //TODO handle for old version of SCM
- keyBlocksProto = keyBlocksInfoList.stream()
- .map(DeletedBlockGroup::getProto)
- .collect(Collectors.toList());
+ if (getScmInfo().getMetaDataLayoutVersion() >=
HDDSLayoutFeature.DATA_DISTRIBUTION.layoutVersion()) {
Review Comment:
Handled by reusing scmInfo from ozonemanager class.
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/scm/protocolPB/ScmBlockLocationProtocolClientSideTranslatorPB.java:
##########
@@ -283,7 +289,8 @@ public ScmInfo getScmInfo() throws IOException {
resp = wrappedResponse.getGetScmInfoResponse();
ScmInfo.Builder builder = new ScmInfo.Builder()
.setClusterId(resp.getClusterId())
- .setScmId(resp.getScmId());
+ .setScmId(resp.getScmId())
+ .setMetaDataLayoutVersion(resp.getMetaDataLayoutVersion());
Review Comment:
Handled
--
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]