Skip to content

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

Merged
omalley merged 1 commit into
apache:masterfrom
omalley:orc-750
Feb 17, 2021
Merged

omalley merged 1 commit into
apache:masterfrom
omalley:orc-750

Conversation

@omalley

@omalley omalley commented Feb 17, 2021

Copy link
Copy Markdown
Contributor

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

pgaref commented Feb 17, 2021

Copy link
Copy Markdown
Contributor

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>
@omalley omalley closed this in 1513c59 Feb 17, 2021
@omalley
omalley merged commit 1513c59 into apache:master Feb 17, 2021
@dongjoon-hyun

Copy link
Copy Markdown
Member

BTW, do you know why Travis CI is failing?

@omalley

omalley commented Feb 17, 2021

Copy link
Copy Markdown
Contributor Author

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

Comment thread java/bench/pom.xml
<groupId>org.apache.orc</groupId>
<artifactId>orc</artifactId>
<version>1.7.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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