Skip to content

Commit

Permalink
[hotfix][filesystems] Remove unused StopWatch
Browse files Browse the repository at this point in the history
  • Loading branch information
GJL committed Apr 24, 2020
1 parent f9c23a0 commit efd22a7
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import org.apache.flink.util.IOUtils;
import org.apache.flink.util.Preconditions;

import org.apache.commons.lang3.time.StopWatch;
import org.apache.hadoop.fs.FSDataOutputStream;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
Expand Down Expand Up @@ -332,9 +331,6 @@ private static boolean waitUntilLeaseIsRevoked(final FileSystem fs, final Path p

final Deadline deadline = Deadline.now().plus(Duration.ofMillis(LEASE_TIMEOUT));

final StopWatch sw = new StopWatch();
sw.start();

boolean isClosed = dfs.isFileClosed(path);
while (!isClosed && deadline.hasTimeLeft()) {
try {
Expand Down

0 comments on commit efd22a7

Please sign in to comment.