tgravescs commented on a change in pull request #23310: [SPARK-26363][WebUI]
Avoid duplicated KV store lookups for task table
URL: https://github.com/apache/spark/pull/23310#discussion_r243306108
##########
File path: core/src/main/resources/org/apache/spark/ui/static/stagepage.js
##########
@@ -348,9 +348,9 @@ $(document).ready(function () {
// prepare data for executor summary table
stageExecutorSummaryInfoKeys =
Object.keys(responseBody.executorSummary);
+ var executorDetailsMap = {};
$.getJSON(createRESTEndPointForExecutorsPage(appId),
function(executorSummaryResponse, status, jqXHR) {
- var executorDetailsMap = {};
executorSummaryResponse.forEach(function (executorDetail) {
executorDetailsMap[executorDetail.id] = executorDetail;
Review comment:
So one issue I think here is that this is being filled in async from what
the task table is being filled in and referencing this field. You could
potentially have issues where this hasn't finished by the time the task table
wants to use it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]