Skip to content

Conversation

@cloud-fan
Copy link
Contributor

With this feature, we can track the query plan, time cost, exception during query execution for spark users.

@cloud-fan
Copy link
Contributor Author

cc @yhuai

@SparkQA
Copy link

SparkQA commented Oct 12, 2015

Test build #43579 has finished for PR 9078 at commit ea523b9.

  • This patch fails RAT tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait QueryExecutionListener
    • class ExecutionListenerManager extends Logging

@SparkQA
Copy link

SparkQA commented Oct 12, 2015

Test build #43583 has finished for PR 9078 at commit 4e9f27a.

  • This patch fails to build.
  • This patch does not merge cleanly.
  • This patch adds the following public classes (experimental):
    • trait QueryExecutionListener
    • class ExecutionListenerManager extends Logging

@rxin
Copy link
Contributor

rxin commented Oct 12, 2015

Does this need to be a public interface?

If yes, can we add experimental label to it.

@rxin
Copy link
Contributor

rxin commented Oct 12, 2015

Actually if QueryExecution is not a public interface (it is in execution - I think it's incorrectly labeled developer api), this should probably be in execution as well as a semi private interface?

@SparkQA
Copy link

SparkQA commented Oct 12, 2015

Test build #43592 has finished for PR 9078 at commit 8f9bb8d.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait QueryExecutionListener
    • class ExecutionListenerManager extends Logging

@cloud-fan
Copy link
Contributor Author

retest this please.

@SparkQA
Copy link

SparkQA commented Oct 13, 2015

Test build #43600 has finished for PR 9078 at commit 8f9bb8d.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait QueryExecutionListener
    • class ExecutionListenerManager extends Logging

@SparkQA
Copy link

SparkQA commented Oct 13, 2015

Test build #43604 has finished for PR 9078 at commit e5c2120.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 13, 2015

Test build #43626 has finished for PR 9078 at commit e43c955.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait QueryExecutionListener
    • class ExecutionListenerManager extends Logging

@cloud-fan
Copy link
Contributor Author

retest this please.

@SparkQA
Copy link

SparkQA commented Oct 13, 2015

Test build #43637 has finished for PR 9078 at commit e43c955.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait QueryExecutionListener
    • class ExecutionListenerManager extends Logging

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be thread-safe.

@cloud-fan
Copy link
Contributor Author

retest this please.

@SparkQA
Copy link

SparkQA commented Oct 13, 2015

Test build #43652 has finished for PR 9078 at commit b7927d8.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait QueryExecutionListener
    • class ExecutionListenerManager extends Logging

@SparkQA
Copy link

SparkQA commented Oct 13, 2015

Test build #43660 has finished for PR 9078 at commit 903d65e.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait QueryExecutionListener
    • class ExecutionListenerManager extends Logging

@SparkQA
Copy link

SparkQA commented Oct 13, 2015

Test build #43667 has finished for PR 9078 at commit 2d81674.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait QueryExecutionListener
    • class ExecutionListenerManager extends Logging

@SparkQA
Copy link

SparkQA commented Oct 13, 2015

Test build #43674 has finished for PR 9078 at commit 0846260.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait QueryExecutionListener
    • class ExecutionListenerManager extends Logging

@davies
Copy link
Contributor

davies commented Oct 13, 2015

LGTM, waiting for tests.

@SparkQA
Copy link

SparkQA commented Oct 14, 2015

Test build #43685 has finished for PR 9078 at commit 9943fea.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • trait QueryExecutionListener
    • class ExecutionListenerManager extends Logging

@davies
Copy link
Contributor

davies commented Oct 14, 2015

Merged into master, thanks!

@asfgit asfgit closed this in 15ff85b Oct 14, 2015
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…on thread

## What changes were proposed in this pull request?

The SQL execution listener framework was created from scratch(see apache#9078). It didn't leverage what we already have in the spark listener framework, and one major problem is, the listener runs on the spark execution thread, which means a bad listener can block spark's query processing.

This PR re-implements the SQL execution listener framework. Now `ExecutionListenerManager` is just a normal spark listener, which watches the `SparkListenerSQLExecutionEnd` events and post events to the
user-provided SQL execution listeners.

## How was this patch tested?

existing tests.

Closes apache#22674 from cloud-fan/listener.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants