sadanand48 commented on code in PR #4583:
URL: https://github.com/apache/ozone/pull/4583#discussion_r1182375339
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java:
##########
@@ -556,11 +557,18 @@ private boolean isContainerFull(Container container) {
boolean isOpen = Optional.ofNullable(container)
.map(cont -> cont.getContainerState() == ContainerDataProto.State.OPEN)
.orElse(Boolean.FALSE);
+ long volumeFreeSpaceToSpare = (long) conf.getStorageSize(
Review Comment:
Done. added a method in VolumeUsage to get this, It now provides both options
1. If percentage is provided via hdds.datanode.volume.min.free.space.percent
, the space will be a percent of the (volume capacity-reserved)
2. Else it will fall back to hdds.datanode.volume.min.free.space which if
not defined will be 5GB.
--
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]