Skip to content
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

ORC-750: Fix bench to use orc pom as parent. #643

Merged
merged 1 commit into from
Feb 17, 2021
Merged

Conversation

omalley
Copy link
Contributor

@omalley omalley commented Feb 17, 2021

This refactors the benchmark pom so that it uses the orc pom as the parent.

That allows us to remove some duplication and means that the analyze profile becomes defined with benchmarks.

With that change, we now run findbugs and checkstyle on benchmark. Thus, we need to fix some findbugs
warnings and disable others.

@pgaref
Copy link
Contributor

pgaref commented Feb 17, 2021

Changes LGTM - +1

This enables the analyze profile. As part of the change, it also fixes the
real findbugs warnings and blocks some false positives.

Fixes apache#643

Signed-off-by: Owen O'Malley <omalley@apache.org>
@dongjoon-hyun
Copy link
Member

BTW, do you know why Travis CI is failing?

@omalley
Copy link
Contributor Author

omalley commented Feb 17, 2021

It looks like it is passing now. https://www.travis-ci.com/github/apache/orc/builds/217427153

<groupId>org.apache.orc</groupId>
<artifactId>orc</artifactId>
<version>1.7.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
Copy link
Member

Choose a reason for hiding this comment

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

This seems to break uber jar building in spark submodule.

$ cd java/bench

$ mvn clean package -pl spark --am

$ ls -alh spark/target/*.jar      
-rw-rw-r-- 1 dongjoon dongjoon  62K Mar 23 05:28 spark/target/orc-benchmarks-spark-1.7.0-SNAPSHOT.jar
-rw-rw-r-- 1 dongjoon dongjoon 808K Mar 23 05:28 spark/target/orc-benchmarks-spark-1.7.0-SNAPSHOT-nohive.jar

The correct uber jar should be 129MB.

$ ls -alh spark/target/*.jar
-rw-rw-r-- 1 dongjoon dongjoon 129M Mar 23 05:32 spark/target/orc-benchmarks-spark-1.7.0-SNAPSHOT.jar
-rw-rw-r-- 1 dongjoon dongjoon  63K Mar 23 05:32 spark/target/original-orc-benchmarks-spark-1.7.0-SNAPSHOT.jar

Copy link
Member

Choose a reason for hiding this comment

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

I'll make a PR to fix this.

@dongjoon-hyun
Copy link
Member

Here is the PR to fix this.

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