github-code-scanning[bot] commented on code in PR #13619:
URL: https://github.com/apache/druid/pull/13619#discussion_r1062120803


##########
extensions-core/multi-stage-query/src/test/java/org/apache/druid/msq/indexing/error/MSQWarningsTest.java:
##########
@@ -65,7 +65,11 @@
   @Before
   public void setUp3() throws IOException
   {
-    toRead = MSQTestFileUtils.getResourceAsTemporaryFile(this, 
"/unparseable.gz");
+    File tempFile = MSQTestFileUtils.getResourceAsTemporaryFile(this, 
"/unparseable.gz");
+
+    // Rename the file and the file's extension from .tmp to .gz to prevent 
issues with 'parsing' the file
+    toRead = new File(tempFile.getParentFile(), "unparseable.gz");
+    tempFile.renameTo(toRead);

Review Comment:
   ## Ignored error status of call
   
   Method setUp3 ignores exceptional return value of File.renameTo.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/3599)



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