Gargi-jais11 commented on PR #9479: URL: https://github.com/apache/ozone/pull/9479#issuecomment-3649658904
@cchung100m Please add a unit test in `TestContainerUtils` for the following scenario: 1. Setup storage directory structure 2. Create VERSION file with datanode UUID 3. Simulate corrupted/empty datanode.id file. Creates an empty datanode.id file (0 bytes). Verifies the file is empty 4. Calls `ContainerUtils.readDatanodeDetailsFrom(datanodeIdFile, testConf)` 5. Verify recovery results - Assertions: - Recovered UUID matches the UUID in the VERSION file - datanode.id is recreated with content (file size > 0) - The recreated file can be read normally and contains the correct UUID -- 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]
