-
Notifications
You must be signed in to change notification settings - Fork 28.8k
[SPARK-5549] Define TaskContext interface in Scala. #4324
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
Conversation
So the interface documentation shows up in ScalaDoc.
@@ -15,9 +15,10 @@ | |||
* limitations under the License. | |||
*/ | |||
|
|||
package org.apache.spark.util; | |||
package test.org.apache.spark; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that I changed the package to make sure we test package visibility correctly also.
We should do this for other Java API tests, but we can do those later.
Test build #26614 has started for PR 4324 at commit
|
Test build #26614 has finished for PR 4324 at commit
|
Test FAILed. |
/** @deprecated use {@link #isRunningLocally()} */ | ||
@Deprecated | ||
public abstract boolean runningLocally(); | ||
/** @deprecated use { @link #isRunningLocally()}*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scalastyle didn't like the whitespace here.
LGTM; this is a pretty straightforward change. Compared to implementing this in Java, this gains the benefit of having this class's docs appear in Scaladoc. I guess there's a potential downside of Java compatibility / usability being broken should we add new methods, but I think we can address that via our review processes. It might be nice to add a comment at the top of the |
I don't know whether MiMa actually checks our Java classes, so that might be another side-benefit of porting this back to Scala. |
Test build #26618 has started for PR 4324 at commit
|
Test build #26620 has started for PR 4324 at commit
|
Test build #26620 has finished for PR 4324 at commit
|
Test FAILed. |
Test build #26618 has finished for PR 4324 at commit
|
Test PASSed. |
Jenkins, retest this please. |
Test build #26633 has started for PR 4324 at commit
|
Test build #26633 has finished for PR 4324 at commit
|
Test FAILed. |
Going to merge since tests passed previously, and the latest failure was due to a flaky test in streaming. |
Made a mistake in #4324 Author: Reynold Xin <[email protected]> Closes #4333 from rxin/taskcontext-deprecate and squashes the following commits: 61c44ee [Reynold Xin] Minor: Fix TaskContext deprecated annotations.
The TaskContextHelper was originally necessary because TaskContext was written in Java, which does not have a way to specify that classes are package-private, so TaskContextHelper existed to work around this. Now that TaskContext has been re-written in Scala, this class is no longer necessary. rxin can you look at this? It looks like you missed this bit of cleanup when you moved TaskContext from Java to Scala in #4324 cc ScrapCodes and pwendell who added this originally. Author: Kay Ousterhout <[email protected]> Closes #5402 from kayousterhout/SPARK-6754 and squashes the following commits: f089800 [Kay Ousterhout] [SPARK-6754] Remove unnecessary TaskContextHelper
So the interface documentation shows up in ScalaDoc.