-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support secondary instance with BlobDB #13296
Comments
I would like to understand the specific reasons why BlobDB does not support secondary instances and determine whether simple modifications could enable the simultaneous use of BlobDB and secondary instances. |
This feature combination is indeed not supported at the moment. The main issue (there might be others) is that the secondary instance functionality relies on the secondary having open file descriptors for all data files, which on POSIX systems allows the secondary to keep using files deleted by the primary. Currently, |
@ltamasi I saw in the docs that this limitation is planned to be dropped at some point. Do you've an idea if this is still the case and +- when that might happen? |
We don't have any near-term plans to support this at the moment. |
In the RocksDB wiki (https://github.com/facebook/rocksdb/wiki/BlobDB), it is stated that BlobDB does not support secondary instances. However, the specific reason for this lack of support isn't clearly explained.
Based on my understanding, due to the multi-version design of RocksDB, the primary instance cannot perceive references to some data (such as SST files and keys) that might be actively used by the secondary instance during compaction operations. This can lead to situations where data referenced by the secondary instance is inadvertently released by the primary instance. Blob files, which are also referenced by SST files, might be subject to the same issue.
I would like to know if there are other limitations, aside from the ones mentioned above, that prevent BlobDB from supporting secondary instances.
The text was updated successfully, but these errors were encountered: