Skip to content

Commit 749e814

Browse files
committed
Print stacktrace for cleanup exception in hdfsfixture
should simplify debugging cleanup failures
1 parent c574a99 commit 749e814

File tree

1 file changed

+1
-0
lines changed
  • test/fixtures/hdfs-fixture/src/main/java/org/elasticsearch/test/fixtures/hdfs

1 file changed

+1
-0
lines changed

test/fixtures/hdfs-fixture/src/main/java/org/elasticsearch/test/fixtures/hdfs/HdfsFixture.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ private void startMinHdfs() throws Exception {
202202
FileUtils.deleteDirectory(baseDir.toFile());
203203
} catch (IOException cleanupException) {
204204
// Log but don't fail on cleanup errors
205+
cleanupException.printStackTrace();
205206
System.out.println("Failed to cleanup baseDir after attempt " + attempt + ": " + cleanupException.getMessage());
206207
}
207208
// If the maximum number of attempts is reached, rethrow the exception

0 commit comments

Comments
 (0)