Skip to content

[SPARK-3027] TaskContext: tighten visibility and provide Java friendly callback API#1938

Closed
rxin wants to merge 3 commits intoapache:masterfrom
rxin:TaskContext
Closed

[SPARK-3027] TaskContext: tighten visibility and provide Java friendly callback API#1938
rxin wants to merge 3 commits intoapache:masterfrom
rxin:TaskContext

Conversation

@rxin
Copy link
Contributor

@rxin rxin commented Aug 14, 2014

Note this also passes the TaskContext itself to the TaskCompletionListener. In the future we can mark TaskContext with the exception object if exception occurs during task execution.

@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA tests have started for PR 1938. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18524/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA results for PR 1938:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds the following public classes (experimental):
trait TaskCompletionListener extends EventListener {

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18524/consoleFull

@rxin rxin changed the title [SPARK-3027] TaskContext: tighten the visibility and provide Java friendly callback API [SPARK-3027] TaskContext: tighten visibility and provide Java friendly callback API Aug 14, 2014
@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA tests have started for PR 1938. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18525/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA results for PR 1938:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds the following public classes (experimental):
trait TaskCompletionListener extends EventListener {

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18525/consoleFull

@rxin
Copy link
Contributor Author

rxin commented Aug 14, 2014

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA tests have started for PR 1938. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18529/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA results for PR 1938:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds the following public classes (experimental):
trait TaskCompletionListener extends EventListener {

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18529/consoleFull

@rxin
Copy link
Contributor Author

rxin commented Aug 14, 2014

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA tests have started for PR 1938. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18532/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA results for PR 1938:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds the following public classes (experimental):
trait TaskCompletionListener extends EventListener {

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18532/consoleFull

@rxin
Copy link
Contributor Author

rxin commented Aug 14, 2014

Jenkins, retest this please.

@rxin
Copy link
Contributor Author

rxin commented Aug 14, 2014

None of the previous test failures are caused by this PR ...

@JoshRosen
Copy link
Contributor

Jenkins, retest this please.

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess another option would be an implicit conversion from TaskContext => Unit to TaskCompletionListener, but that would require the user to import the implicits (maybe they could be included in the SparkContext implicits, though).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea, implicits are evil.

@SparkQA
Copy link

SparkQA commented Aug 14, 2014

QA tests have started for PR 1938. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18568/consoleFull

@JoshRosen
Copy link
Contributor

Now that you've added a Java implementation of the new listener interface, this looks good to me.

@rxin
Copy link
Contributor Author

rxin commented Aug 14, 2014

Jenkins, retest this please.

1 similar comment
@rxin
Copy link
Contributor Author

rxin commented Aug 15, 2014

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Aug 15, 2014

QA tests have started for PR 1938. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18585/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 15, 2014

QA results for PR 1938:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds the following public classes (experimental):
trait TaskCompletionListener extends EventListener {

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18585/consoleFull

@rxin
Copy link
Contributor Author

rxin commented Aug 15, 2014

Thanks. Merging this in master & branch-1.1.

@asfgit asfgit closed this in 655699f Aug 15, 2014
asfgit pushed a commit that referenced this pull request Aug 15, 2014
…y callback API

Note this also passes the TaskContext itself to the TaskCompletionListener. In the future we can mark TaskContext with the exception object if exception occurs during task execution.

Author: Reynold Xin <rxin@apache.org>

Closes #1938 from rxin/TaskContext and squashes the following commits:

145de43 [Reynold Xin] Added JavaTaskCompletionListenerImpl for Java API friendly guarantee.
f435ea5 [Reynold Xin] Added license header for TaskCompletionListener.
dc4ed27 [Reynold Xin] [SPARK-3027] TaskContext: tighten the visibility and provide Java friendly callback API

(cherry picked from commit 655699f)
Signed-off-by: Reynold Xin <rxin@apache.org>
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
…y callback API

Note this also passes the TaskContext itself to the TaskCompletionListener. In the future we can mark TaskContext with the exception object if exception occurs during task execution.

Author: Reynold Xin <rxin@apache.org>

Closes apache#1938 from rxin/TaskContext and squashes the following commits:

145de43 [Reynold Xin] Added JavaTaskCompletionListenerImpl for Java API friendly guarantee.
f435ea5 [Reynold Xin] Added license header for TaskCompletionListener.
dc4ed27 [Reynold Xin] [SPARK-3027] TaskContext: tighten the visibility and provide Java friendly callback API
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.

3 participants