We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e111789 commit f86de6fCopy full SHA for f86de6f
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/TrashPolicyDefault.java
@@ -271,9 +271,9 @@ protected class Emptier implements Runnable {
271
public void run() {
272
if (emptierInterval == 0)
273
return; // trash disabled
274
- long now = Time.now();
275
- long end;
+ long now, end;
276
while (true) {
+ now = Time.now();
277
end = ceiling(now, emptierInterval);
278
try { // sleep for interval
279
Thread.sleep(end - now);
0 commit comments