-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport two changes that can improve rebuild stability (#14452)
DAOS-14010 vos: Allow rebuild overwrite (#13326) DAOS-15670 vos: SV overwrite missed tx_add_range() (#14241) * Partial overwrite is difficult for upper layer to avoid. If we reserve a range of minor epochs for rebuild, we can just always allow rebuild to overwrite what any extents currently in the tree for the given major epoch. * In SV overwerite case, the btr_update_record() will defer free the original record and allocate new record for record replacing, however, btr_node_tx_add() is mistakenly skipped in btr_update(), that leads to: 1. In md-on-ssd mode, tree node changes are missed in WAL. 2. In pmem mode, tree node snapshot is missed in undo log. Signed-off-by: Jeff Olivier <[email protected]> Signed-off-by: Niu Yawei <[email protected]>
- Loading branch information
1 parent
533ce74
commit 856daa0
Showing
9 changed files
with
121 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/bin/bash | ||
|
||
if [ "$USE_VALGRIND" = "memcheck" ]; then | ||
VCMD="valgrind --leak-check=full --show-reachable=yes --error-limit=no \ | ||
if [ "$USE_VALGRIND" = "memcheck" ]; then VCMD="valgrind --leak-check=full --show-reachable=yes --error-limit=no \ | ||
--suppressions=${VALGRIND_SUPP} --error-exitcode=42 --xml=yes \ | ||
--xml-file=unit-test-evt_ctl-%p.memcheck.xml" | ||
elif [ "$USE_VALGRIND" = "pmemcheck" ]; then | ||
|
@@ -167,6 +166,9 @@ cmd+=" -C o:5 -a 0-1@1:ab -a 1-2@2:cd -a 3-4@3:bc -a 5-7@4:def -a 6-8@5:xyz" | |
cmd+=" -a 1-2@6:aa -a 4-7@7:abcd -b -2 -r 0-5@8 -b -2 -r 0-5@3 -b -2 -D" | ||
cmd+=" -C o:4 -a [email protected]:abcdef -a [email protected]:fedcba -a [email protected]:foo -r 2-8@0-1" | ||
cmd+=" -l0-10@0-10:c -r 7-9@0-1 -l0-10@0-10:C -b -2 -D" | ||
cmd+=" -C o:15 -a [email protected]:abcdef -a [email protected]:ff -a [email protected]:abc -a [email protected]:ab" | ||
cmd+=" -a [email protected]:abc -a [email protected]:vab -a [email protected]:ab -a [email protected]:a" | ||
cmd+=" -b -2 -D" | ||
echo "$cmd" | ||
eval "$cmd" | ||
result="${PIPESTATUS[0]}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.