Skip to content

Commit

Permalink
0001586: Stage manager doesn't check to see if a file is actually del…
Browse files Browse the repository at this point in the history
…eted when it qualifies for cleaning.
  • Loading branch information
chenson42 committed Feb 16, 2014
1 parent 099435b commit 41c5068
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -91,7 +91,7 @@ public long clean(long ttlInMs) {
for (String key : keys) {
IStagedResource resource = resourceList.get(key);
boolean resourceIsOld = (System.currentTimeMillis() - resource.getLastUpdateTime()) > ttlInMs;
if (resource.isInUse() && (resource.getState() == State.READY || resource.getState() == State.DONE)
if ((resource.getState() == State.READY || resource.getState() == State.DONE)
&& (resourceIsOld || !resource.exists())) {
if (!resource.isInUse()) {
boolean file = resource.isFileResource();
Expand Down

0 comments on commit 41c5068

Please sign in to comment.