adoroszlai opened a new pull request, #3636:
URL: https://github.com/apache/ozone/pull/3636
## What changes were proposed in this pull request?
Added new log messages:
* If `VolumeChoosingPolicy` finds no volumes which have enough available
space for a new container, it logs an info level message, showing space for all
volumes.
* Otherwise, any volumes with not enough available space are logged at
debug level.
Both messages include actual free space and committed space (reserved for
existing open containers).
https://issues.apache.org/jira/browse/HDDS-7033
## How was this patch tested?
Verified log messages in updated unit test.
Also tested on docker-compose cluster, by creating empty containers (size
set to 10GB in config) until it failed. Checked datanode log:
```
2022-07-28 10:23:35,663 [ChunkReader-5] INFO
volume.RoundRobinVolumeChoosingPolicy: No volumes have enough space for a new
container. Most available space: 5682657280 bytes; required space:
10737418240, volumes: {/data/hdds/hdds=free: 113056829440, committed:
107374172160}
```
https://github.com/adoroszlai/hadoop-ozone/actions/runs/2752890891
--
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]