Skip to content

Commit

Permalink
0002657: Nodes not cleaning staged resources of any type
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jul 14, 2016
1 parent 6d4e72a commit 4a16d95
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -95,7 +95,9 @@ public long clean(long ttlInMs) {
if (resource != null) {
boolean resourceIsOld = (System.currentTimeMillis() - resource
.getLastUpdateTime()) > ttlInMs;
if ((resource.getState() == State.DONE || (resource.getState() == State.READY && ttlInMs == 0))
if ((resource.getState() == State.DONE ||
(resource.getState() == State.READY && resource.getPath().contains("/common/")) ||
(resource.getState() == State.READY && ttlInMs == 0))
&& (resourceIsOld || !resource.exists())) {
if (!resource.isInUse()) {
boolean file = resource.isFileResource();
Expand Down

0 comments on commit 4a16d95

Please sign in to comment.