You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Fixing the GetMergeOperands() in ReadOnlyDB and SecondaryDB as reported in #13243. Refactor in #11799 introduced this regression.
Follow ups to come
- Large Result Optimization (done in #10458 ) for ReadOnlyDB and SecondaryDB
- Stress Test / Crash Test coverage
- Consider removing some duplicate logic between ReadOnlyDB's GetImpl() and SecondaryDB's `GetImpl()`. The only difference is between acquiring/referencing Superversion.
Pull Request resolved: #13340
Test Plan:
`DBMergeOperandTest` and `DBSecondaryTest` updated
```
./db_merge_operand_test --gtest_filter="*GetMergeOperandsBasic*"
```
```
./db_secondary_test -- --gtest_filter="*GetMergeOperands*"
```
Reviewed By: ltamasi
Differential Revision: D68791652
Pulled By: jaykorean
fbshipit-source-id: 760925e257ab10993c207094718dc0659822ae64
Expected behavior
GetMergeOperands should work when DB is opened in read only mode.
Actual behavior
Segfault in DBImplReadOnly::GetImpl when build in release mode.
When compiled using debug mode, this assert failed:
rocksdb/db/db_impl/db_impl_readonly.cc
Line 34 in 18cecb9
Steps to reproduce the behavior
RocksDB v9.7.4
Open a db in read only mode and call db->GetMergeOperands
It might be a regression when adding wide column support. We had an older build using v8.6.7 and there was no crash.
The text was updated successfully, but these errors were encountered: