Copilot commented on code in PR #8644:
URL: https://github.com/apache/ozone/pull/8644#discussion_r2151474058


##########
hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/keyvalue/impl/TestKeyValueStreamDataChannel.java:
##########
@@ -151,6 +159,25 @@ private static ContainerCommandRequestProto 
readPutBlockRequest(ByteBuffer b)
     return request;
   }
 
+  @Test
+  public void testVolumeFullCase() throws Exception {
+    File tempFile = File.createTempFile("test-kv-stream", ".tmp");
+    HddsVolume mockVolume = mock(HddsVolume.class);
+    when(mockVolume.getStorageID()).thenReturn("storageId");

Review Comment:
   Consider scheduling deletion of the temporary file (e.g., using 
tempFile.deleteOnExit()) to ensure proper cleanup after tests.
   ```suggestion
       tempFile.deleteOnExit();
       HddsVolume mockVolume = mock(HddsVolume.class);
   ```



-- 
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]

Reply via email to