You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "neilramaswamy (via GitHub)" <gi...@apache.org> on 2024/04/15 18:00:54 UTC

[PR] [SPARK-47838] Upgrade rocksdbjni to 8.11.4 [spark]

neilramaswamy opened a new pull request, #46065:
URL: https://github.com/apache/spark/pull/46065

   ### What changes were proposed in this pull request?
   
   Upgrades `rocksdbjni` dependency to 8.11.4. 
   
   ### Why are the changes needed?
   
   8.11.4 fixes a bug in the RocksDB JNI that can cause the Java process to crash.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   - All existing UTs should pass
   - [In progress] Performance benchmarks
   
   ### 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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

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

   This might be the root cause. The following is not ran on your branch. It rans on `master` of your repo which is irrelevant to this PR.
   - https://github.com/neilramaswamy/nr-spark/actions/runs/8699860153
   
   ![Screenshot 2024-04-16 at 8 58 08 AM](https://github.com/apache/spark/assets/9700541/7ac1279c-3bf5-4f4c-8689-26cb11a60039)
   


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

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

   Thank you. I added the release link too.
   - https://github.com/facebook/rocksdb/releases/tag/v8.11.4
   
   BTW, do you think we can use RocksDB 9.0.0?
   - https://github.com/facebook/rocksdb/releases/tag/v9.0.0


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

Posted by "neilramaswamy (via GitHub)" <gi...@apache.org>.
neilramaswamy commented on PR #46065:
URL: https://github.com/apache/spark/pull/46065#issuecomment-2057517034

   Thanks for taking a look @dongjoon-hyun, I've copied in the release notes.


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

Posted by "neilramaswamy (via GitHub)" <gi...@apache.org>.
neilramaswamy commented on PR #46065:
URL: https://github.com/apache/spark/pull/46065#issuecomment-2059736653

   The JDK 21 results are _slightly_ slower than what they were before, which is odd since nothing really changed between these released. So I'll confirm if this is just variance by running again.


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

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


##########
sql/core/benchmarks/StateStoreBasicOperationsBenchmark-jdk21-results.txt:
##########
@@ -2,141 +2,110 @@
 put rows
 ================================================================================================
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (10000 rows to overwrite - rate 100):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 ---------------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                            9             10           1          1.1         936.2       1.0X
-RocksDB (trackTotalNumberOfRows: true)                              41             42           1          0.2        4068.9       0.2X
-RocksDB (trackTotalNumberOfRows: false)                             15             16           1          0.7        1500.4       0.6X
+In-memory                                                            6              7           1          1.7         580.7       1.0X
+RocksDB (trackTotalNumberOfRows: true)                              42             43           2          0.2        4191.6       0.1X
+RocksDB (trackTotalNumberOfRows: false)                             15             16           1          0.7        1497.2       0.4X
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (5000 rows to overwrite - rate 50):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 -------------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                          9             11           1          1.1         929.8       1.0X
-RocksDB (trackTotalNumberOfRows: true)                            40             41           1          0.3        3955.7       0.2X
-RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1497.3       0.6X
+In-memory                                                          6              7           1          1.7         574.6       1.0X
+RocksDB (trackTotalNumberOfRows: true)                            35             36           1          0.3        3473.9       0.2X
+RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1505.4       0.4X
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (1000 rows to overwrite - rate 10):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 -------------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                          9             10           1          1.1         907.5       1.0X
-RocksDB (trackTotalNumberOfRows: true)                            39             40           1          0.3        3886.5       0.2X
-RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1497.2       0.6X
+In-memory                                                          5              6           1          1.8         542.9       1.0X
+RocksDB (trackTotalNumberOfRows: true)                            29             30           1          0.3        2863.2       0.2X
+RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1517.5       0.4X
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (0 rows to overwrite - rate 0):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 ---------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                      9             10           1          1.1         904.0       1.0X
-RocksDB (trackTotalNumberOfRows: true)                        39             40           1          0.3        3859.8       0.2X
-RocksDB (trackTotalNumberOfRows: false)                       15             16           0          0.7        1497.2       0.6X
-
-
-================================================================================================
-merge rows
-================================================================================================
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (10000 rows to overwrite - rate 100):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
---------------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                                    519            533           7          0.0       51916.6       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                                   171            177           3          0.1       17083.9       3.0X
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (5000 rows to overwrite - rate 50):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
-------------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                                  506            521           7          0.0       50644.0       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                                 170            176           3          0.1       17022.0       3.0X
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (1000 rows to overwrite - rate 10):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
-------------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                                  493            508           6          0.0       49319.3       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                                 169            175           3          0.1       16897.6       2.9X
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (0 rows to overwrite - rate 0):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
---------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                              495            508           6          0.0       49462.5       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                             169            175           3          0.1       16896.6       2.9X

Review Comment:
   Could you double-check this, @neilramaswamy ? This file looks manually edited to me.



-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade `rocksdbjni` to 8.11.4 [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #46065: [SPARK-47838][BUILD] Upgrade `rocksdbjni` to 8.11.4
URL: https://github.com/apache/spark/pull/46065


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

Posted by "neilramaswamy (via GitHub)" <gi...@apache.org>.
neilramaswamy commented on code in PR #46065:
URL: https://github.com/apache/spark/pull/46065#discussion_r1567607461


##########
sql/core/benchmarks/StateStoreBasicOperationsBenchmark-jdk21-results.txt:
##########
@@ -2,141 +2,110 @@
 put rows
 ================================================================================================
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (10000 rows to overwrite - rate 100):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 ---------------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                            9             10           1          1.1         936.2       1.0X
-RocksDB (trackTotalNumberOfRows: true)                              41             42           1          0.2        4068.9       0.2X
-RocksDB (trackTotalNumberOfRows: false)                             15             16           1          0.7        1500.4       0.6X
+In-memory                                                            6              7           1          1.7         580.7       1.0X
+RocksDB (trackTotalNumberOfRows: true)                              42             43           2          0.2        4191.6       0.1X
+RocksDB (trackTotalNumberOfRows: false)                             15             16           1          0.7        1497.2       0.4X
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (5000 rows to overwrite - rate 50):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 -------------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                          9             11           1          1.1         929.8       1.0X
-RocksDB (trackTotalNumberOfRows: true)                            40             41           1          0.3        3955.7       0.2X
-RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1497.3       0.6X
+In-memory                                                          6              7           1          1.7         574.6       1.0X
+RocksDB (trackTotalNumberOfRows: true)                            35             36           1          0.3        3473.9       0.2X
+RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1505.4       0.4X
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (1000 rows to overwrite - rate 10):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 -------------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                          9             10           1          1.1         907.5       1.0X
-RocksDB (trackTotalNumberOfRows: true)                            39             40           1          0.3        3886.5       0.2X
-RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1497.2       0.6X
+In-memory                                                          5              6           1          1.8         542.9       1.0X
+RocksDB (trackTotalNumberOfRows: true)                            29             30           1          0.3        2863.2       0.2X
+RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1517.5       0.4X
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (0 rows to overwrite - rate 0):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 ---------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                      9             10           1          1.1         904.0       1.0X
-RocksDB (trackTotalNumberOfRows: true)                        39             40           1          0.3        3859.8       0.2X
-RocksDB (trackTotalNumberOfRows: false)                       15             16           0          0.7        1497.2       0.6X
-
-
-================================================================================================
-merge rows
-================================================================================================
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (10000 rows to overwrite - rate 100):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
---------------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                                    519            533           7          0.0       51916.6       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                                   171            177           3          0.1       17083.9       3.0X
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (5000 rows to overwrite - rate 50):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
-------------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                                  506            521           7          0.0       50644.0       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                                 170            176           3          0.1       17022.0       3.0X
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (1000 rows to overwrite - rate 10):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
-------------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                                  493            508           6          0.0       49319.3       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                                 169            175           3          0.1       16897.6       2.9X
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (0 rows to overwrite - rate 0):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
---------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                              495            508           6          0.0       49462.5       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                             169            175           3          0.1       16896.6       2.9X

Review Comment:
   Hm, interesting. It's just copy-pasted from: https://github.com/neilramaswamy/nr-spark/actions/runs/8699860153
   
   Let me look why the merge rows isn't there...



-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

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


##########
sql/core/benchmarks/StateStoreBasicOperationsBenchmark-jdk21-results.txt:
##########
@@ -2,141 +2,110 @@
 put rows
 ================================================================================================
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure

Review Comment:
   Although it's irrelevant, is OS downgraded in GitHub Action?



-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade `rocksdbjni` to 8.11.4 [spark]

Posted by "neilramaswamy (via GitHub)" <gi...@apache.org>.
neilramaswamy commented on PR #46065:
URL: https://github.com/apache/spark/pull/46065#issuecomment-2060226204

   @dongjoon-hyun, should be ready to merge now. Appreciate your feedback!


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

Posted by "neilramaswamy (via GitHub)" <gi...@apache.org>.
neilramaswamy commented on PR #46065:
URL: https://github.com/apache/spark/pull/46065#issuecomment-2059438524

   Thanks for spotting that. I've restarted with the correct params:
   
   - [In Progress] JDK 21: https://github.com/neilramaswamy/nr-spark/actions/runs/8708809190


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

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


##########
sql/core/benchmarks/StateStoreBasicOperationsBenchmark-jdk21-results.txt:
##########
@@ -2,141 +2,110 @@
 put rows
 ================================================================================================
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (10000 rows to overwrite - rate 100):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 ---------------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                            9             10           1          1.1         936.2       1.0X
-RocksDB (trackTotalNumberOfRows: true)                              41             42           1          0.2        4068.9       0.2X
-RocksDB (trackTotalNumberOfRows: false)                             15             16           1          0.7        1500.4       0.6X
+In-memory                                                            6              7           1          1.7         580.7       1.0X
+RocksDB (trackTotalNumberOfRows: true)                              42             43           2          0.2        4191.6       0.1X
+RocksDB (trackTotalNumberOfRows: false)                             15             16           1          0.7        1497.2       0.4X
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (5000 rows to overwrite - rate 50):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 -------------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                          9             11           1          1.1         929.8       1.0X
-RocksDB (trackTotalNumberOfRows: true)                            40             41           1          0.3        3955.7       0.2X
-RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1497.3       0.6X
+In-memory                                                          6              7           1          1.7         574.6       1.0X
+RocksDB (trackTotalNumberOfRows: true)                            35             36           1          0.3        3473.9       0.2X
+RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1505.4       0.4X
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (1000 rows to overwrite - rate 10):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 -------------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                          9             10           1          1.1         907.5       1.0X
-RocksDB (trackTotalNumberOfRows: true)                            39             40           1          0.3        3886.5       0.2X
-RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1497.2       0.6X
+In-memory                                                          5              6           1          1.8         542.9       1.0X
+RocksDB (trackTotalNumberOfRows: true)                            29             30           1          0.3        2863.2       0.2X
+RocksDB (trackTotalNumberOfRows: false)                           15             16           1          0.7        1517.5       0.4X
 
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
+OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 5.15.0-1059-azure
 AMD EPYC 7763 64-Core Processor
 putting 10000 rows (0 rows to overwrite - rate 0):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
 ---------------------------------------------------------------------------------------------------------------------------------
-In-memory                                                      9             10           1          1.1         904.0       1.0X
-RocksDB (trackTotalNumberOfRows: true)                        39             40           1          0.3        3859.8       0.2X
-RocksDB (trackTotalNumberOfRows: false)                       15             16           0          0.7        1497.2       0.6X
-
-
-================================================================================================
-merge rows
-================================================================================================
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (10000 rows to overwrite - rate 100):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
---------------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                                    519            533           7          0.0       51916.6       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                                   171            177           3          0.1       17083.9       3.0X
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (5000 rows to overwrite - rate 50):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
-------------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                                  506            521           7          0.0       50644.0       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                                 170            176           3          0.1       17022.0       3.0X
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (1000 rows to overwrite - rate 10):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
-------------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                                  493            508           6          0.0       49319.3       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                                 169            175           3          0.1       16897.6       2.9X
-
-OpenJDK 64-Bit Server VM 21.0.2+13-LTS on Linux 6.5.0-1016-azure
-AMD EPYC 7763 64-Core Processor
-merging 10000 rows with 10 values per key (0 rows to overwrite - rate 0):  Best Time(ms)   Avg Time(ms)   Stdev(ms)    Rate(M/s)   Per Row(ns)   Relative
---------------------------------------------------------------------------------------------------------------------------------------------------------
-RocksDB (trackTotalNumberOfRows: true)                                              495            508           6          0.0       49462.5       1.0X
-RocksDB (trackTotalNumberOfRows: false)                                             169            175           3          0.1       16896.6       2.9X

Review Comment:
   Thank you!



-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

Posted by "neilramaswamy (via GitHub)" <gi...@apache.org>.
neilramaswamy commented on PR #46065:
URL: https://github.com/apache/spark/pull/46065#issuecomment-2059417216

   @dongjoon-hyun as expected, the numbers look very similar (there were only 2 minor patches on 8.11.4 relative to 8.11.3). I can run the b/marks another time if we want to be _really_ sure, but I'd be fine merging as is.


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade `rocksdbjni` to 8.11.4 [spark]

Posted by "neilramaswamy (via GitHub)" <gi...@apache.org>.
neilramaswamy commented on PR #46065:
URL: https://github.com/apache/spark/pull/46065#issuecomment-2059969162

   @dongjoon-hyun numbers are still approximately the same (I just updated with the latest results), a few are better. Seems safe to merge when CI passes. Thanks!


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade `rocksdbjni` to 8.11.4 [spark]

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

   Merged to master for Apache Spark 4.0.0.
   
   Thank YOU for the contribution, @neilramaswamy .


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

Posted by "neilramaswamy (via GitHub)" <gi...@apache.org>.
neilramaswamy commented on PR #46065:
URL: https://github.com/apache/spark/pull/46065#issuecomment-2057530254

   RocksDB 9.0 still has the bug in the RocksDB JNI that can still crash the process if we decide to add code that touches those code-paths. I would rather Spark have a "healthy" RocksDB version with no known fatal Java bugs.
   
   Once they release 9.0.1 which has [the fix](https://github.com/facebook/rocksdb/pull/12474), which was only backported to 8.11.4 so far, we can upgrade to that.


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [PR] [SPARK-47838][BUILD] Upgrade rocksdbjni to 8.11.4 [spark]

Posted by "neilramaswamy (via GitHub)" <gi...@apache.org>.
neilramaswamy commented on PR #46065:
URL: https://github.com/apache/spark/pull/46065#issuecomment-2057527679

   Benchmarks:
   
   - [In progress] for JDK 17: https://github.com/neilramaswamy/nr-spark/actions/runs/8694014152
   - [In progress] for JDK 21: https://github.com/neilramaswamy/nr-spark/actions/runs/8694024784
   
   Will update the associated benchmark files in this repo upon completion. 


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org