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
[#27095] docdb: Vector Index: Filter tombstoned reverse mapping during compaction
Summary:
The diff updates the compaction logic to correctly handle tombstoned reverse-mapping vector index keys. The same approach as for regular compactions is used for cleaning such entries.
Additionally, the following changes are included:
- `SubDocKey::DebugSliceToStringAsResult()` is updated to correctly render vector index reverse mappings.
- A new term `MetaKey` is introduced to describe different types of internal/metadata records from DocDB perspective such as `kVectorIndexMapping` and `kTransactionApplyState` (TBD for intents meta keys). Probably, it'd be good to introduced a common term for MetaKey and SubDocKey/DocKey in future.
Jira: DB-16582
Test Plan:
./yb_build.sh --cxx-test pgwrapper_pg_vector_index-test --gtest_filter PgVectorIndexSingleServerTest.ReverseMappingCleanup/Colocated
./yb_build.sh --cxx-test pgwrapper_pg_vector_index-test --gtest_filter PgVectorIndexSingleServerTest.ReverseMappingCleanup/ColocatedHnswlib
./yb_build.sh --cxx-test pgwrapper_pg_vector_index-test --gtest_filter PgVectorIndexSingleServerTest.ReverseMappingCleanup/ColocatedYbHnsw
./yb_build.sh --cxx-test pgwrapper_pg_vector_index-test --gtest_filter PgVectorIndexSingleServerTest.ReverseMappingCleanup/Distributed
./yb_build.sh --cxx-test pgwrapper_pg_vector_index-test --gtest_filter PgVectorIndexSingleServerTest.ReverseMappingCleanup/DistributedHnswlib
./yb_build.sh --cxx-test pgwrapper_pg_vector_index-test --gtest_filter PgVectorIndexSingleServerTest.ReverseMappingCleanup/DistributedYbHnsw
Reviewers: sergei, rthallam, timur
Reviewed By: sergei, rthallam
Subscribers: ybase
Differential Revision: https://phorge.dev.yugabyte.com/D47021
0 commit comments