anuragp010 commented on code in PR #12179:
URL: https://github.com/apache/ozone/pull/12179#discussion_r4735509759
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/WritableECContainerProvider.java:
##########
@@ -258,12 +256,15 @@ private ContainerInfo getContainerFromPipeline(Pipeline
pipeline)
// on a stale / dead node event (via close pipeline).
NavigableSet<ContainerID> containers =
pipelineManager.getContainersInPipeline(pipeline.getId());
- // Assume 1 container per pipeline for EC
- if (containers.isEmpty()) {
- return null;
+ // Assume 1 container per pipeline for EC. Only a container of the
requested StorageTier can be used;
+ // a container without a StorageTier (created before StorageTiers) never
matches.
+ for (ContainerID containerID : containers) {
+ ContainerInfo container = containerManager.getContainer(containerID);
+ if (storageTier.equals(container.getStorageTier())) {
Review Comment:
Thanks @devmadhuu for the review ! Have added this.
--
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]