You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "cxzl25 (via GitHub)" <gi...@apache.org> on 2024/01/10 12:55:57 UTC

[PR] ORC-870: Upgrade `jmh` to 1.37 [orc]

cxzl25 opened a new pull request, #1740:
URL: https://github.com/apache/orc/pull/1740

   ### What changes were proposed in this pull request?
   
   
   ### Why are the changes needed?
   
   
   ### How was this patch tested?
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #1740:
URL: https://github.com/apache/orc/pull/1740#discussion_r1448561064


##########
.github/dependabot.yml:
##########
@@ -38,6 +35,6 @@ updates:
       # Pin mockito to 4.x
       - 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

Review Comment:
   I removed it, @cxzl25 .



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on PR #1740:
URL: https://github.com/apache/orc/pull/1740#issuecomment-1886159555

   > I updated the PR description for you
   
   Thanks your help. @dongjoon-hyun 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Upgrade `jmh` to 1.37 [orc]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #1740:
URL: https://github.com/apache/orc/pull/1740#issuecomment-1885111908

   +1 for @mystic-lama 's comment.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Upgrade `jmh` to 1.37 [orc]

Posted by "mystic-lama (via GitHub)" <gi...@apache.org>.
mystic-lama commented on PR #1740:
URL: https://github.com/apache/orc/pull/1740#issuecomment-1885036278

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on code in PR #1740:
URL: https://github.com/apache/orc/pull/1740#discussion_r1448515909


##########
java/bench/hive/src/java/org/apache/orc/bench/hive/rowfilter/BooleanRowFilterBenchmark.java:
##########
@@ -91,10 +91,14 @@ public void readOrcNoFilter(Blackhole blackhole, InputState state) throws Except
    * Run this test:
    *  java -cp hive/target/orc-benchmarks-hive-*-uber.jar org.apache.orc.bench.hive.rowfilter.BooleanRowFilterBenchmark
    */
-  public static void main(String[] args) throws RunnerException {
-    new Runner(new OptionsBuilder()
-        .include(BooleanRowFilterBenchmark.class.getSimpleName())
-        .forks(1)
-        .build()).run();
+  public static void main(String[] args) {

Review Comment:
   `JMHSample_01_HelloWorld` does not inherit jmh.Main ( `extends org.openjdk.jmh.Main` )
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #1740:
URL: https://github.com/apache/orc/pull/1740#discussion_r1448556755


##########
.github/dependabot.yml:
##########
@@ -38,6 +35,6 @@ updates:
       # Pin mockito to 4.x
       - 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

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



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "mystic-lama (via GitHub)" <gi...@apache.org>.
mystic-lama commented on code in PR #1740:
URL: https://github.com/apache/orc/pull/1740#discussion_r1448274243


##########
.github/dependabot.yml:
##########
@@ -38,6 +35,6 @@ updates:
       # Pin mockito to 4.x
       - 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

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



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on code in PR #1740:
URL: https://github.com/apache/orc/pull/1740#discussion_r1448561557


##########
.github/dependabot.yml:
##########
@@ -38,6 +35,6 @@ updates:
       # Pin mockito to 4.x
       - 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

Review Comment:
   Thanks. @dongjoon-hyun 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #1740: ORC-870: Unpin and upgrade `jmh` to 1.37
URL: https://github.com/apache/orc/pull/1740


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on code in PR #1740:
URL: https://github.com/apache/orc/pull/1740#discussion_r1448246983


##########
java/bench/hive/src/java/org/apache/orc/bench/hive/rowfilter/BooleanRowFilterBenchmark.java:
##########
@@ -91,10 +91,14 @@ public void readOrcNoFilter(Blackhole blackhole, InputState state) throws Except
    * Run this test:
    *  java -cp hive/target/orc-benchmarks-hive-*-uber.jar org.apache.orc.bench.hive.rowfilter.BooleanRowFilterBenchmark
    */
-  public static void main(String[] args) throws RunnerException {
-    new Runner(new OptionsBuilder()
-        .include(BooleanRowFilterBenchmark.class.getSimpleName())
-        .forks(1)
-        .build()).run();
+  public static void main(String[] args) {

Review Comment:
   Because these Benchmarks inherit `extends org.openjdk.jmh.Main`, `org.openjdk.jmh.Main` removed the method throwing `RunnerException` in `1.23`.
   
   https://github.com/openjdk/jmh/commit/4264de9486c32b48da8161e3ac076a0187b4176f#diff-30878bccaff9f11a64415de78f1feebe304334a314d8bb6f8c7bc50bd21aee19L39



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #1740:
URL: https://github.com/apache/orc/pull/1740#discussion_r1447688404


##########
java/bench/hive/src/java/org/apache/orc/bench/hive/rowfilter/BooleanRowFilterBenchmark.java:
##########
@@ -91,10 +91,14 @@ public void readOrcNoFilter(Blackhole blackhole, InputState state) throws Except
    * Run this test:
    *  java -cp hive/target/orc-benchmarks-hive-*-uber.jar org.apache.orc.bench.hive.rowfilter.BooleanRowFilterBenchmark
    */
-  public static void main(String[] args) throws RunnerException {
-    new Runner(new OptionsBuilder()
-        .include(BooleanRowFilterBenchmark.class.getSimpleName())
-        .forks(1)
-        .build()).run();
+  public static void main(String[] args) {

Review Comment:
   Do you know why this change is required? Apache ORC code follows the official JMHSample file.
   - https://github.com/openjdk/jmh/blob/cb3c3a90137dad781a2a37fda72dc11ebf253593/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_01_HelloWorld.java#L95
   
   ```java
       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();
       }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #1740:
URL: https://github.com/apache/orc/pull/1740#issuecomment-1886728818

   Merged to main/2.0 for Apache ORC 2.0.0.
   
   Thank you, @cxzl25 and @mystic-lama .


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "cxzl25 (via GitHub)" <gi...@apache.org>.
cxzl25 commented on code in PR #1740:
URL: https://github.com/apache/orc/pull/1740#discussion_r1448246983


##########
java/bench/hive/src/java/org/apache/orc/bench/hive/rowfilter/BooleanRowFilterBenchmark.java:
##########
@@ -91,10 +91,14 @@ public void readOrcNoFilter(Blackhole blackhole, InputState state) throws Except
    * Run this test:
    *  java -cp hive/target/orc-benchmarks-hive-*-uber.jar org.apache.orc.bench.hive.rowfilter.BooleanRowFilterBenchmark
    */
-  public static void main(String[] args) throws RunnerException {
-    new Runner(new OptionsBuilder()
-        .include(BooleanRowFilterBenchmark.class.getSimpleName())
-        .forks(1)
-        .build()).run();
+  public static void main(String[] args) {

Review Comment:
   ```
   '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`.
   
   https://github.com/openjdk/jmh/commit/4264de9486c32b48da8161e3ac076a0187b4176f#diff-30878bccaff9f11a64415de78f1feebe304334a314d8bb6f8c7bc50bd21aee19L39



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #1740:
URL: https://github.com/apache/orc/pull/1740#discussion_r1448512245


##########
java/bench/hive/src/java/org/apache/orc/bench/hive/rowfilter/BooleanRowFilterBenchmark.java:
##########
@@ -91,10 +91,14 @@ public void readOrcNoFilter(Blackhole blackhole, InputState state) throws Except
    * Run this test:
    *  java -cp hive/target/orc-benchmarks-hive-*-uber.jar org.apache.orc.bench.hive.rowfilter.BooleanRowFilterBenchmark
    */
-  public static void main(String[] args) throws RunnerException {
-    new Runner(new OptionsBuilder()
-        .include(BooleanRowFilterBenchmark.class.getSimpleName())
-        .forks(1)
-        .build()).run();
+  public static void main(String[] args) {

Review Comment:
   Does it mean the official `JMHSample_01_HellowWorld.java` is also broken?



##########
java/bench/hive/src/java/org/apache/orc/bench/hive/rowfilter/BooleanRowFilterBenchmark.java:
##########
@@ -91,10 +91,14 @@ public void readOrcNoFilter(Blackhole blackhole, InputState state) throws Except
    * Run this test:
    *  java -cp hive/target/orc-benchmarks-hive-*-uber.jar org.apache.orc.bench.hive.rowfilter.BooleanRowFilterBenchmark
    */
-  public static void main(String[] args) throws RunnerException {
-    new Runner(new OptionsBuilder()
-        .include(BooleanRowFilterBenchmark.class.getSimpleName())
-        .forks(1)
-        .build()).run();
+  public static void main(String[] args) {

Review Comment:
   Oh, does it mean the official `JMHSample_01_HellowWorld.java` is also broken example?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] ORC-870: Unpin and upgrade `jmh` to 1.37 [orc]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #1740:
URL: https://github.com/apache/orc/pull/1740#discussion_r1448558197


##########
java/bench/hive/src/java/org/apache/orc/bench/hive/rowfilter/BooleanRowFilterBenchmark.java:
##########
@@ -91,10 +91,14 @@ public void readOrcNoFilter(Blackhole blackhole, InputState state) throws Except
    * Run this test:
    *  java -cp hive/target/orc-benchmarks-hive-*-uber.jar org.apache.orc.bench.hive.rowfilter.BooleanRowFilterBenchmark
    */
-  public static void main(String[] args) throws RunnerException {
-    new Runner(new OptionsBuilder()
-        .include(BooleanRowFilterBenchmark.class.getSimpleName())
-        .forks(1)
-        .build()).run();
+  public static void main(String[] args) {

Review Comment:
   Oh, got it. Thanks. Now, I understand.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org