This is an automated email from the ASF dual-hosted git repository.
gian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 72059cc0330 SegmentLocalCacheManagerConcurrencyTest: Use tempDir for
temp files. (#18937)
72059cc0330 is described below
commit 72059cc0330074e0d376ec647a0a26629243e74f
Author: Gian Merlino <[email protected]>
AuthorDate: Wed Jan 21 16:22:29 2026 -0800
SegmentLocalCacheManagerConcurrencyTest: Use tempDir for temp files.
(#18937)
The tests should use temporary directories rather than the current
working directory.
---
.../segment/loading/SegmentLocalCacheManagerConcurrencyTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/server/src/test/java/org/apache/druid/segment/loading/SegmentLocalCacheManagerConcurrencyTest.java
b/server/src/test/java/org/apache/druid/segment/loading/SegmentLocalCacheManagerConcurrencyTest.java
index 94a224e3a04..1ba6969e934 100644
---
a/server/src/test/java/org/apache/druid/segment/loading/SegmentLocalCacheManagerConcurrencyTest.java
+++
b/server/src/test/java/org/apache/druid/segment/loading/SegmentLocalCacheManagerConcurrencyTest.java
@@ -255,7 +255,7 @@ class SegmentLocalCacheManagerConcurrencyTest
@Test
public void testAcquireSegmentFailTooManySegments() throws IOException
{
- final File localStorageFolder = new File("local_storage_folder");
+ final File localStorageFolder = new File(tempDir, "local_storage_folder");
final Interval interval = Intervals.of("2019-01-01/P1D");
makeSegmentsToLoad(20, localStorageFolder, interval, segmentsToLoad);
@@ -281,7 +281,7 @@ class SegmentLocalCacheManagerConcurrencyTest
@Test
public void testAcquireSegmentBulkFailTooManySegments() throws IOException
{
- final File localStorageFolder = new File("local_storage_folder");
+ final File localStorageFolder = new File(tempDir, "local_storage_folder");
final Interval interval = Intervals.of("2019-01-01/P1D");
makeSegmentsToLoad(30, localStorageFolder, interval, segmentsToLoad);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]