Skip to content

Don't count pending requests towards underprovisioning#1757

Merged
ssalinas merged 2 commits into
masterfrom
pending-request-bug
Mar 26, 2018
Merged

Don't count pending requests towards underprovisioning#1757
ssalinas merged 2 commits into
masterfrom
pending-request-bug

Conversation

@pschoenfelder

Copy link
Copy Markdown
Contributor

No description provided.

@pschoenfelder pschoenfelder requested a review from ssalinas March 19, 2018 18:47
updatePossiblyUnderProvisionedAndOverProvisionedIds(requestWithState, numInstances, overProvisionedRequestIds, possiblyUnderProvisionedRequestIds);
}

removePendingRequestIds(possiblyUnderProvisionedRequestIds);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we give this a better name? Like filterForPendingRequests or something more descriptive like that?

@ssalinas ssalinas added this to the 0.20.0 milestone Mar 19, 2018

SingularityRequest request = requestResource.getRequest(requestId, singularityUser).getRequest();

requestManager.activate(request.toBuilder().setInstances(Optional.of(0)).build(), RequestHistoryType.UPDATED, System.currentTimeMillis(), Optional.<String> absent(), Optional.<String> absent());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you confirm that this test actually fails without the filter you added? Seems odd to have it at instances of 0 (tbh I thought our validation would catch that...)

@pschoenfelder

pschoenfelder commented Mar 19, 2018 via email

Copy link
Copy Markdown
Contributor Author

@ssalinas

Copy link
Copy Markdown
Contributor

Cool, let's move this one through the environments and get it merged. 🚢

@ssalinas ssalinas modified the milestones: 0.20.0, 0.19.2 Mar 26, 2018
@ssalinas ssalinas merged commit 11804ae into master Mar 26, 2018
@ssalinas ssalinas deleted the pending-request-bug branch March 26, 2018 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants