-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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-1398] Removed findbugs jsr305 dependency #307
Conversation
Merged build triggered. |
Merged build started. |
Merged build finished. All automated tests passed. |
All automated tests passed. |
Seems reasonable - just wondering though - what do we use this for? I think at present we aren't using this in the jenkins build... not sure how it is supposed to be used. |
Looks like we started pulling it in with Guava: 04567a1#diff-c3580fe26fb42eb3aac6e180ae11e947 On Wed, Apr 2, 2014 at 10:31 PM, Patrick Wendell
|
Actually, looking at this a little deeper, the smarter move might be to On Wed, Apr 2, 2014 at 10:49 PM, Mark Hamstra [email protected] wrote:
|
Ah I should have looked more at this. The dependency is just to bring in some annotations that were later standardized. We do not use them, and so do not need any copy, including from Guava. This could be omitted, as it does not enable running Findbugs anyway. I have the formula for adding a Findbugs plugin to the build. It's not hard. As I say in the JIRA, it would not do much good in a Scala-based project. (IntelliJ does have good Scala static analysis. I'd like to take a crack at fixing all the stuff it's found. These are big PR-busting changes unfortunately so I've not suggested many. It only gets harder later, so seems like worth doing soon if at all, but it's so so busy!) Updating Guava is good per se; it's a bit perilous when you get near Hadoop since even current versions use Hadoop 11.0.2, and when executing code within a Hadoop classloader, you'll end up linking against it's old version in the parent classpath. I think we've had this discussion before -- it is somewhat less of an issue for Spark but I confess I haven't though through whether it is actually a non-issue. The project is already on 14, hmm. |
Looks like just removing the findbugs jsr305 dependency entirely works fine, but bumping the Guava version not so much. I'm going to change the name of this JIRA and PR, just do the minor dependency cleanup, and leave it to @srowen and others to decide whether they want to change the Guava version in the fastutil or other PRs. |
Merged build triggered. |
Merged build started. |
Merged build finished. All automated tests passed. |
All automated tests passed. |
Merged - thanks @markhamstra ! |
Hey, I think this is causing some problems with our travis and sbt builds: On travis:
Locally it doesn't completely fail the build, but does cause warnings:
|
I'm reverting this. Sorry jenkins was messed up :P |
The local warning is expected, but the Travis failure is a problem and is symptomatic of not having the jsr305 annotations available. Looks like we'll either have to revert this or find a way to make the jsr305 available to the Travis tests. |
We could go back to bumping up to FindBugs 2, or just leave things as they have been. It's mostly a question of whether we want to try to avoid presenting a dependency annoyance for those using the current FindBugs. |
Should be a painless upgrade, and does offer some significant advantages should we want to leverage FindBugs more during the 1.0 lifecycle. http://findbugs.sourceforge.net/findbugs2.html Author: Mark Hamstra <[email protected]> Closes apache#307 from markhamstra/findbugs and squashes the following commits: 99f2d09 [Mark Hamstra] Removed unnecessary findbugs jsr305 dependency
…and hive packages (apache#307)
Should be a painless upgrade, and does offer some significant advantages should we want to leverage FindBugs more during the 1.0 lifecycle. http://findbugs.sourceforge.net/findbugs2.html