File tree Expand file tree Collapse file tree 4 files changed +26
-5
lines changed
resources/org/apache/spark/ui/static Expand file tree Collapse file tree 4 files changed +26
-5
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,20 @@ pre {
120
120
border : none;
121
121
}
122
122
123
+ .stacktrace-details {
124
+ max-height : 300px ;
125
+ overflow-y : auto;
126
+ margin : 0 ;
127
+ transition : max-height 0.5s ease-out, padding 0.5s ease-out;
128
+ }
129
+
130
+ .stacktrace-details .collapsed {
131
+ max-height : 0 ;
132
+ padding-top : 0 ;
133
+ padding-bottom : 0 ;
134
+ border : none;
135
+ }
136
+
123
137
span .expand-additional-metrics {
124
138
cursor : pointer;
125
139
}
Original file line number Diff line number Diff line change @@ -427,13 +427,15 @@ private[ui] class StagePage(parent: JobProgressTab) extends WebUIPage("stage") {
427
427
error
428
428
})
429
429
val details = if (isMultiline) {
430
- < span onclick= " this.parentNode.querySelector('.stage-details').classList.toggle('collapsed')"
430
+ // scalastyle:off
431
+ < span onclick= " this.parentNode.querySelector('.stacktrace-details').classList.toggle('collapsed')"
431
432
class = " expand-details" >
432
433
+ details
433
434
</span > ++
434
- <div class =" stage -details collapsed" >
435
+ <div class =" stacktrace -details collapsed" >
435
436
<pre >{error}</pre >
436
437
</div >
438
+ // scalastyle:on
437
439
} else {
438
440
" "
439
441
}
Original file line number Diff line number Diff line change @@ -207,13 +207,15 @@ private[ui] class FailedStageTable(
207
207
failureReason
208
208
})
209
209
val details = if (isMultiline) {
210
- < span onclick= " this.parentNode.querySelector('.stage-details').classList.toggle('collapsed')"
210
+ // scalastyle:off
211
+ < span onclick= " this.parentNode.querySelector('.stacktrace-details').classList.toggle('collapsed')"
211
212
class = " expand-details" >
212
213
+ details
213
214
</span > ++
214
- <div class =" stage -details collapsed" >
215
+ <div class =" stacktrace -details collapsed" >
215
216
<pre >{failureReason}</pre >
216
217
</div >
218
+ // scalastyle:on
217
219
} else {
218
220
" "
219
221
}
Original file line number Diff line number Diff line change @@ -1598,7 +1598,9 @@ private[spark] object Utils extends Logging {
1598
1598
1599
1599
/** Return a nice string representation of the exception, including the stack trace. */
1600
1600
def exceptionString (e : Throwable ): String = {
1601
- if (e == null ) " "
1601
+ if (e == null ) {
1602
+ " "
1603
+ }
1602
1604
else {
1603
1605
val stringWriter = new StringWriter ()
1604
1606
e.printStackTrace(new PrintWriter (stringWriter))
@@ -1609,6 +1611,7 @@ private[spark] object Utils extends Logging {
1609
1611
/**
1610
1612
* Return a nice string representation of the exception, including the stack trace.
1611
1613
* It's only used for backward compatibility.
1614
+ * Note: deprecated because it does not include the exception's cause.
1612
1615
*/
1613
1616
@ deprecated(" Use exceptionString(Throwable) instead" , " 1.2.0" )
1614
1617
def exceptionString (
You can’t perform that action at this time.
0 commit comments