errose28 commented on code in PR #8904:
URL: https://github.com/apache/ozone/pull/8904#discussion_r2258266077
##########
hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/keyvalue/TestKeyValueHandlerWithUnhealthyContainer.java:
##########
@@ -249,6 +262,64 @@ public void testMarkContainerUnhealthyInFailedVolume()
throws IOException {
verify(mockIcrSender, atMostOnce()).send(any());
}
+ @Test
+ public void testDispatcherTriggersOnDemandScanForUnhealthyContainer() throws
IOException {
Review Comment:
Is there a simpler way to test this with
`TestOnDemandContainerScannerIntegration`? For example:
- Change permissions on the volume of the one DN in the cluster so all
writes fail.
- Issue a write request with `writeDataToOpenContainer`
- Verify the container is marked UNHEALTHY
- Check `OnDemandScannerMetrics` and `ContainerData#getDataScanTimestamp` to
verify an on-demand scan was triggered.
--
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]