errose28 commented on PR #9947: URL: https://github.com/apache/ozone/pull/9947#issuecomment-4090632802
@ptlrs the main documentation is unfortunately vague here, but there's also this excerpt from the [FAQ](https://github.com/facebook/rocksdb/wiki/rocksdb-faq): > Q: Can I write to RocksDB using multiple processes? > A: No. However, it can be opened using Secondary DB. If no write goes to the database, it can be opened in read-only mode from multiple processes. > Q: Does RocksDB support multi-process read access? > A: Yes, you can read it using secondary database using DB::OpenAsSecondary(). RocksDB can also support multi-process read only process without writing the database. This can be done by opening the database with DB::OpenForReadOnly() call. In our case we are only using one process with multiple handles. However, since writes will be going to the DB as we are checking the volume, this seems to indicate that secondary instance is still what we want to use here. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
