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
…) (#5813)

This bug was found via HDDS-10564.

(cherry picked from commit adc79a0)
(cherry picked from commit 0aaf372)
  • Loading branch information
jojochuang authored May 10, 2024
1 parent bbd23d9 commit 55e2765
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,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 55e2765

Please sign in to comment.