Skip to content

Commit

Permalink
HBASE-28448 CompressionTest hangs when run over a Ozone ofs path (#5771)
Browse files Browse the repository at this point in the history
This bug was found via HDDS-10564.
  • Loading branch information
jojochuang committed Apr 9, 2024
1 parent 1a089cd commit adc79a0
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,18 @@ public static void main(String[] args) throws Exception {

Configuration conf = new Configuration();
Path path = new Path(args[0]);
FileSystem fs = path.getFileSystem(conf);
if (fs.exists(path)) {
System.err.println("The specified path exists, aborting!");
System.exit(1);
}
try (FileSystem fs = path.getFileSystem(conf)) {
if (fs.exists(path)) {
System.err.println("The specified path exists, aborting!");
System.exit(1);
}

try {
doSmokeTest(fs, path, args[1]);
} finally {
fs.delete(path, false);
try {
doSmokeTest(fs, path, args[1]);
} finally {
fs.delete(path, false);
}
System.out.println("SUCCESS");
}
System.out.println("SUCCESS");
}
}

0 comments on commit adc79a0

Please sign in to comment.