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


##########
benchmarks/src/test/java/org/apache/druid/benchmark/FrontCodedIndexedBenchmark.java:
##########
@@ -128,31 +138,54 @@
     FrontCodedIndexedWriter frontCodedIndexedWriter = new 
FrontCodedIndexedWriter(
         new OnHeapMemorySegmentWriteOutMedium(),
         ByteOrder.nativeOrder(),
-        "front-coded-4".equals(indexType) ? 4 : 16
+        "front-coded-4".equals(indexType) ? 4 : 16,
+        false
     );
     frontCodedIndexedWriter.open();
 
+    FrontCodedIndexedWriter frontCodedIndexedWriterIncrementalBuckets = new 
FrontCodedIndexedWriter(
+        new OnHeapMemorySegmentWriteOutMedium(),
+        ByteOrder.nativeOrder(),
+        "front-coded-incremental-buckets-4".equals(indexType) ? 4 : 16,
+        true
+    );
+    frontCodedIndexedWriterIncrementalBuckets.open();
+
     int count = 0;
     while (iterator.hasNext()) {
       final String next = iterator.next();
       values[count++] = next;
       frontCodedIndexedWriter.write(StringUtils.toUtf8Nullable(next));
       genericIndexedWriter.write(next);
+      
frontCodedIndexedWriterIncrementalBuckets.write(StringUtils.toUtf8Nullable(next));
     }
     smooshDirFrontCoded = FileUtils.createTempDir();
     fileFrontCoded = File.createTempFile("frontCodedIndexedBenchmark", "meta");
+
     smooshDirGeneric = FileUtils.createTempDir();
     fileGeneric = File.createTempFile("genericIndexedBenchmark", "meta");
 
+    smooshDirFrontCodedIncrementalBuckets = FileUtils.createTempDir();
+    fileFrontCodedIncrementalBuckets = 
File.createTempFile("frontCodedIndexedBenchmarkIncrementalBuckets", "meta");

Review Comment:
   ## Local information disclosure in a temporary directory
   
   Local information disclosure vulnerability due to use of file readable by 
other local users.
   
   [Show more 
details](https://github.com/apache/druid/security/code-scanning/4364)



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