supratimdeka commented on a change in pull request #628: HDDS-1008. Invalidate
closed container replicas on a failed volume.
URL: https://github.com/apache/hadoop-ozone/pull/628#discussion_r387666132
##########
File path:
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/ContainerSet.java
##########
@@ -122,6 +122,18 @@ public int containerCount() {
return containerMap.size();
}
+ public void handleVolumeFailures() {
+ containerMap.values().forEach(c -> {
+ if (c.getContainerData().getVolume().isFailed()) {
+ try {
+ c.markContainerUnhealthy();
+ } catch (StorageContainerException e) {
+ LOG.error("Failed to move container to UNHEALTHY state", e);
Review comment:
might make sense to add the container id and the volume in this error log.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]