[SPARK-3027] TaskContext: tighten visibility and provide Java friendly callback API#1938
[SPARK-3027] TaskContext: tighten visibility and provide Java friendly callback API#1938rxin wants to merge 3 commits intoapache:masterfrom
Conversation
…endly callback API
|
QA tests have started for PR 1938. This patch merges cleanly. |
|
QA results for PR 1938: |
|
QA tests have started for PR 1938. This patch merges cleanly. |
|
QA results for PR 1938: |
|
Jenkins, retest this please. |
|
QA tests have started for PR 1938. This patch merges cleanly. |
|
QA results for PR 1938: |
|
Jenkins, retest this please. |
|
QA tests have started for PR 1938. This patch merges cleanly. |
|
QA results for PR 1938: |
|
Jenkins, retest this please. |
|
None of the previous test failures are caused by this PR ... |
|
Jenkins, retest this please. |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
yea, implicits are evil.
|
QA tests have started for PR 1938. This patch merges cleanly. |
|
Now that you've added a Java implementation of the new listener interface, this looks good to me. |
|
Jenkins, retest this please. |
1 similar comment
|
Jenkins, retest this please. |
|
QA tests have started for PR 1938. This patch merges cleanly. |
|
QA results for PR 1938: |
|
Thanks. Merging this in master & branch-1.1. |
…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>
…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
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.