Groups
Sign in
Groups
rocksdb
Conversations
About
Send feedback
Help
RocksDB Java Concurrency
27 views
Skip to first unread message
Matt Hicks
unread,
May 31, 2024, 9:12:57 AM
May 31
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rocksdb
When I try to use the RocksDB concurrently I get JVM crashes. Is there any way to safely do concurrency with the Java wrapper?
Here's my commented out code that crashes the JVM:
https://github.com/outr/lightdb/blob/master/rocksdb/src/main/scala/lightdb/rocks/RocksDBStore.scala#L20
Nicolae Mihalache
unread,
Jun 13, 2024, 7:11:05 AM
Jun 13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rocksdb
I'm not familiar with scala to understand what your code is doing but I believe RocksDB iterators are not thread safe.
You can run concurrently two iterators, each with its own thread..
Reply all
Reply to author
Forward
0 new messages