Skip to content

ORC-870: Unpin and upgrade jmh to 1.37 - #1740

Closed
cxzl25 wants to merge 2 commits into
apache:mainfrom
cxzl25:ORC-870
Closed

cxzl25 wants to merge 2 commits into
apache:mainfrom
cxzl25:ORC-870

Conversation

@cxzl25

@cxzl25 cxzl25 commented Jan 10, 2024 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR aims to unpin and upgrade jmh to 1.37.

Why are the changes needed?

To use the latest bug fixed version.

How was this patch tested?

cd java
./mvnw clean package -Pbenchmark -DskipTests

Was this patch authored or co-authored using generative AI tooling?

No

@paliwalashish

Copy link
Copy Markdown
Contributor

@cxzl25 Can we please update the PR description with details on What and Why for the changes ?

@dongjoon-hyun

dongjoon-hyun commented Jan 10, 2024 •

Copy link
Copy Markdown
Member

Thank you for making a PR, @cxzl25 .

+1 for @mystic-lama 's comment.

@dongjoon-hyun dongjoon-hyun changed the title ORC-870: Upgrade jmh to 1.37 ORC-870: Unpin and upgrade jmh to 1.37 Jan 10, 2024
@dongjoon-hyun dongjoon-hyun added this to the 2.0.0 milestone Jan 10, 2024
.include(BooleanRowFilterBenchmark.class.getSimpleName())
.forks(1)
.build()).run();
public static void main(String[] args) {

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.

Do you know why this change is required? Apache ORC code follows the official JMHSample file.

    public static void main(String[] args) throws RunnerException {
        Options opt = new OptionsBuilder()
                .include(JMHSample_01_HelloWorld.class.getSimpleName())
                .forks(1)
                .build();

        new Runner(opt).run();
    }

@cxzl25 cxzl25 Jan 11, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

'main(String[])' in 'org.apache.orc.bench.hive.rowfilter.BooleanRowFilterBenchmark' clashes with 'main(String[])' in 'org.openjdk.jmh.Main'; overridden method does not throw 'org.openjdk.jmh.runner.RunnerException'

Because these Benchmarks inherit extends org.openjdk.jmh.Main, org.openjdk.jmh.Main removed the method throwing RunnerException in 1.23.

openjdk/jmh@4264de9#diff-30878bccaff9f11a64415de78f1feebe304334a314d8bb6f8c7bc50bd21aee19L39

@dongjoon-hyun dongjoon-hyun Jan 11, 2024 •

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.

Oh, does it mean the official JMHSample_01_HellowWorld.java is also broken example?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

JMHSample_01_HelloWorld does not inherit jmh.Main ( extends org.openjdk.jmh.Main )

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.

Oh, got it. Thanks. Now, I understand.

@dongjoon-hyun dongjoon-hyun left a comment

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.

To @cxzl25 , I updated the PR description for you. BTW, I have a question on this change, https://github.com/apache/orc/pull/1740/files#r1447688404.

@cxzl25

cxzl25 commented Jan 11, 2024

Copy link
Copy Markdown
Contributor Author

I updated the PR description for you

Thanks your help. @dongjoon-hyun

Comment thread .github/dependabot.yml Outdated
- dependency-name: "org.mockito"
versions: "[5.0.0,)"
# Pin byte-buddy to 1.12.x aline with mockito
# Pin byte-buddy to 1.12.x align with mockito

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is minor but unrelated change and perhaps can be avoided in this PR.
Let's see what other's think.

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.

+1 for @mystic-lama 's comment. Please recover this line.

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 removed it, @cxzl25 .

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks. @dongjoon-hyun

@dongjoon-hyun dongjoon-hyun left a comment

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.

+1, LGTM.

Let me do the final review and merge this.

dongjoon-hyun added a commit that referenced this pull request Jan 11, 2024
### What changes were proposed in this pull request?

This PR aims to unpin and upgrade `jmh` to 1.37.

### Why are the changes needed?

To use the latest bug fixed version.

### How was this patch tested?
```
cd java
./mvnw clean package -Pbenchmark -DskipTests
```

### Was this patch authored or co-authored using generative AI tooling?
No

Closes #1740 from cxzl25/ORC-870.

Lead-authored-by: sychen <sychen@ctrip.com>
Co-authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 683221a)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun

Copy link
Copy Markdown
Member

Merged to main/2.0 for Apache ORC 2.0.0.

Thank you, @cxzl25 and @mystic-lama .

cxzl25 added a commit to cxzl25/orc that referenced this pull request Jan 11, 2024
### What changes were proposed in this pull request?

This PR aims to unpin and upgrade `jmh` to 1.37.

### Why are the changes needed?

To use the latest bug fixed version.

### How was this patch tested?
```
cd java
./mvnw clean package -Pbenchmark -DskipTests
```

### Was this patch authored or co-authored using generative AI tooling?
No

Closes apache#1740 from cxzl25/ORC-870.

Lead-authored-by: sychen <sychen@ctrip.com>
Co-authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants