Skip to content

Commit

Permalink
[SPARK-23088][CORE] History server not showing incomplete/running app…
Browse files Browse the repository at this point in the history
…lications

## What changes were proposed in this pull request?

History server not showing incomplete/running applications when spark.history.ui.maxApplications property is set to a value that is smaller than the total number of applications.

## How was this patch tested?

Verified manually against master and 2.2.2 branch.

Author: Paul Mackles <pmackles@adobe.com>

Closes apache#20335 from pmackles/SPARK-23088.
  • Loading branch information
Paul Mackles authored and jerryshao committed Jan 30, 2018
1 parent f235df6 commit 31bd1da
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ $(document).ready(function() {
requestedIncomplete = getParameterByName("showIncomplete", searchString);
requestedIncomplete = (requestedIncomplete == "true" ? true : false);

$.getJSON("api/v1/applications?limit=" + appLimit, function(response,status,jqXHR) {
appParams = {
limit: appLimit,
status: (requestedIncomplete ? "running" : "completed")
};

$.getJSON("api/v1/applications", appParams, function(response,status,jqXHR) {
var array = [];
var hasMultipleAttempts = false;
for (i in response) {
Expand Down

0 comments on commit 31bd1da

Please sign in to comment.