Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Log node name for bad resources.
Browse files Browse the repository at this point in the history
Summary: Log node name for bad resources.

Test Plan:
compile

Revert Plan:

Reviewers: dms, aching, pyang

Reviewed By: dms
  • Loading branch information
rvadali authored and Alex Feinberg committed Jun 23, 2012
1 parent 200ddde commit 24bbb49
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -995,15 +995,17 @@ public void run() {
@Override
public boolean processAvailableResource(ResourceGrant grant) {
if (isBadResource(grant)) {
LOG.info("Resource " + grant.getId() + " is bad");
LOG.info("Resource " + grant.getId() + " nodename " +
grant.getNodeName() + " is bad");
processBadResource(grant.getId(), true);
// return true since this request was bad and will be returned
// so it should no longer be available
return true;
} else if (!isResourceNeeded(grant)) {
// This resource is no longer needed, but it is not a fault
// of the host
LOG.info("Resource " + grant.getId() + " is not needed");
LOG.info("Resource " + grant.getId() + " nodename " +
grant.getNodeName() + " is not needed");
processBadResource(grant.getId(), false);
return true;
}
Expand Down

0 comments on commit 24bbb49

Please sign in to comment.