-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-34764][CORE][K8S][UI] Propagate reason for exec loss to Web UI #32436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b8eb7be
d46d3cd
b5db580
ae77e33
dee0963
4e478a0
6ebcc55
433ee83
19355d4
e62e3b1
a4263cd
3ab5a09
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,14 @@ function getThreadDumpEnabled() { | |
| return threadDumpEnabled; | ||
| } | ||
|
|
||
| function formatLossReason(removeReason, type, row) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eh, uhoh. Seems like the JavaScript linter is broken by this: https://github.com/apache/spark/runs/2579648547 Mind taking a look please?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just made a quick followup to fix up the build: #32541 |
||
| if (removeReason) { | ||
| return removeReason | ||
| } else { | ||
| return "" | ||
| } | ||
| } | ||
|
|
||
| function formatStatus(status, type, row) { | ||
| if (row.isExcluded) { | ||
| return "Excluded"; | ||
|
|
@@ -132,7 +140,7 @@ function totalDurationColor(totalGCTime, totalDuration) { | |
| } | ||
|
|
||
| var sumOptionalColumns = [3, 4]; | ||
| var execOptionalColumns = [5, 6, 7, 8, 9, 10, 13, 14]; | ||
| var execOptionalColumns = [5, 6, 7, 8, 9, 10, 13, 14, 15]; | ||
| var execDataTable; | ||
| var sumDataTable; | ||
|
|
||
|
|
@@ -543,6 +551,10 @@ $(document).ready(function () { | |
| data: 'id', render: function (data, type) { | ||
| return type === 'display' ? ("<a href='threadDump/?executorId=" + data + "'>Thread Dump</a>" ) : data; | ||
| } | ||
| }, | ||
| { | ||
| data: 'removeReason', | ||
| render: formatLossReason | ||
| } | ||
| ], | ||
| "order": [[0, "asc"]], | ||
|
|
@@ -709,6 +721,7 @@ $(document).ready(function () { | |
| "<div id='direct_mapped_pool_memory' class='direct_mapped_pool_memory-checkbox-div'><input type='checkbox' class='toggle-vis' data-sum-col-idx='' data-exec-col-idx='10'> Peak Pool Memory Direct / Mapped</div>" + | ||
| "<div id='extra_resources' class='resources-checkbox-div'><input type='checkbox' class='toggle-vis' data-sum-col-idx='' data-exec-col-idx='13'> Resources</div>" + | ||
| "<div id='resource_prof_id' class='resource-prof-id-checkbox-div'><input type='checkbox' class='toggle-vis' data-sum-col-idx='' data-exec-col-idx='14'> Resource Profile Id</div>" + | ||
| "<div id='exec_loss_reason' class='exec-loss-reason-checkbox-div'><input type='checkbox' class='toggle-vis' data-sum-col-idx='' data-exec-col-idx='15'> Exec Loss Reason</div>" + | ||
| "</div>"); | ||
|
|
||
| reselectCheckboxesBasedOnTaskTableState(); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this empty always in non-K8s resource managers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No exec loss reason is populated for YARN as well :)