Skip to content
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

[SPARK-24104] SQLAppStatusListener overwrites metrics onDriverAccumUpdates instead of updating them #21171

Closed
wants to merge 1 commit into from

Conversation

juliuszsompolski
Copy link
Contributor

What changes were proposed in this pull request?

Event SparkListenerDriverAccumUpdates may happen multiple times in a query - e.g. every FileSourceScanExec and BroadcastExchangeExec call postDriverMetricUpdates.
In Spark 2.2 SQLListener updated the map with new values. SQLAppStatusListener overwrites it.
Unless update preserved it in the KV store (dependant on exec.lastWriteTime), only the metrics from the last operator that does postDriverMetricUpdates are preserved.

How was this patch tested?

Unit test added.

@juliuszsompolski
Copy link
Contributor Author

cc @gengliangwang @vanzin

@SparkQA
Copy link

SparkQA commented Apr 26, 2018

Test build #89897 has finished for PR 21171 at commit 69e09cc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin
Copy link
Contributor

vanzin commented Apr 27, 2018

LGTM. Merging to master / 2.3.

asfgit pushed a commit that referenced this pull request Apr 27, 2018
…dates instead of updating them

## What changes were proposed in this pull request?

Event `SparkListenerDriverAccumUpdates` may happen multiple times in a query - e.g. every `FileSourceScanExec` and `BroadcastExchangeExec` call `postDriverMetricUpdates`.
In Spark 2.2 `SQLListener` updated the map with new values. `SQLAppStatusListener` overwrites it.
Unless `update` preserved it in the KV store (dependant on `exec.lastWriteTime`), only the metrics from the last operator that does `postDriverMetricUpdates` are preserved.

## How was this patch tested?

Unit test added.

Author: Juliusz Sompolski <julek@databricks.com>

Closes #21171 from juliuszsompolski/SPARK-24104.

(cherry picked from commit 8614edd)
Signed-off-by: Marcelo Vanzin <vanzin@cloudera.com>
@asfgit asfgit closed this in 8614edd Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants