Commit 58da65f
fix(backup): prevent duplicate predicates in backup manifest for vector indexes (#9679)
**Description**
Fixed a bug in ProcessBackupRequest where vecPredMap[gid] was being
built using predMap[gid] as the append base instead of vecPredMap[gid].
This caused all base predicates in the group to be duplicated in the
manifest every time a vector predicate was found, making manifest.json
grow larger and larger with each backup.
With multiple vector predicates in the same group, each iteration also
overwrote the previous result, so only the last vector predicate's
supporting entries (__vector_entry, __vector_, __vector_dead) were kept
the rest were silently lost.
---------
Co-authored-by: Shivaji Kharse <shiva@Shivajis-MacBook-Pro.local>1 parent 1cbd7ea commit 58da65f
File tree
4 files changed
+412
-4
lines changed- dgraphtest
- systest/vector
- worker
4 files changed
+412
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1397 | 1397 | | |
1398 | 1398 | | |
1399 | 1399 | | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
1400 | 1421 | | |
1401 | 1422 | | |
1402 | 1423 | | |
| |||
0 commit comments