FrankChen021 commented on code in PR #19915:
URL: https://github.com/apache/druid/pull/19915#discussion_r3736467469


##########
extensions-contrib/aliyun-oss-extensions/src/test/java/org/apache/druid/storage/aliyun/OssDataSegmentPusherTest.java:
##########
@@ -91,7 +90,7 @@ private void testPushInternal(boolean useUniquePath, String 
matcher) throws Exce
     OssDataSegmentPusher pusher = new OssDataSegmentPusher(client, config);
 
     // Create a mock segment on disk
-    File tmp = tempFolder.newFile("version.bin");
+    File tmp = new File(tempFolder, "version.bin");
 

Review Comment:
   Fixed in commit `8a87f7204d`: made `tmp` `final`, satisfying AGENTS.md. The 
declaration is part of the modified JUnit 5 `@TempDir` migration line, so this 
is an in-scope style defect. Focused Aliyun Maven validation passed: 
compilation, checkstyle, and 13 tests (2 `OssDataSegmentPusherTest` + 11 
`OssTaskLogsTest`).



##########
extensions-contrib/aliyun-oss-extensions/src/test/java/org/apache/druid/storage/aliyun/OssTaskLogsTest.java:
##########
@@ -424,7 +423,8 @@ private List<Grant> testPushInternal(boolean disableAcl, 
String ownerId, String
     OssTaskLogs taskLogs = new OssTaskLogs(ossClient, config, inputDataConfig, 
timeSupplier);
 
     String taskId = "index_test-datasource_2019-06-18T13:30:28.887Z";
-    File logFile = tempFolder.newFile("test_log_file");
+    File logFile = new File(tempFolder, "test_log_file");
+    Assertions.assertTrue(logFile.createNewFile());

Review Comment:
   Fixed in commit `8a87f7204d`: made `taskId` and `logFile` `final`, 
satisfying AGENTS.md. The modified `logFile` declaration is part of the JUnit 5 
`@TempDir` migration; the earlier reply overlooked that line-level change. 
Focused Aliyun Maven validation passed: compilation, checkstyle, and 13 tests 
(2 `OssDataSegmentPusherTest` + 11 `OssTaskLogsTest`).



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