Repository navigation
Forward port #12298: Revert condition for releasing memory from tlog's versionLocation data structure - #12299
Conversation
…ogic that (apple#11815)" This reverts commit 3c43139.
Result of foundationdb-pr-clang-ide on Linux RHEL 9
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-clang on Linux RHEL 9
|
Result of foundationdb-pr on Linux RHEL 9
|
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
| if (minVersion != std::numeric_limits<Version>::max()) { | ||
| self->persistentQueue->forgetBefore( | ||
| minVersion, | ||
| newPersistentDataVersion, |
There was a problem hiding this comment.
Meta-comment: apparently the old but correct logic fooled multiple experienced developers into thinking it was wrong 8 months ago. This suggests that increased clarity would help here. Suggestions:
-
Can you put a comment above this section to explain what exactly this section of code is responsible for. What I mean is an explanation written against core concepts/required behaviors of the system, not just a translation of the code/algorithm into English.
-
Also I think the existing FIXME comment about a heap is confused about how best to obtain its own stated purpose, which is to reduce overhead. If we think this iteration is too expensive then we can assign minVersion in a similar existing set of nested for loops, for example the loops starting on line 1137. That code seems to have the same loop structure and inner loop conditional logic as this loop here.
There was a problem hiding this comment.
Makes sense. I can add my interpretation with the caveat that I am still learning about disk queue. @sbodagala do you want to add these comments? If not, I can also add them.
As title. See #12298 for details.
Main branch 100K Joshua:
20250813-230939-praza-main-743-tag-v216-f43-346f6a56cc3980e7 compressed=True data_size=40330757 duration=5860050 ended=100000 fail=1 fail_fast=10 max_runs=100000 pass=99999 priority=100 remaining=0 runtime=1:08:54 sanity=False started=100000 stopped=20250814-001833 submitted=20250813-230939 timeout=5400 username=praza-main-743-tag-v216-f43c339635295f6548ec255e8b42c0cbda2dac00The 1 failure is not related. It's a DrUpgrade restart test which is failing because db is not quite at the end, due to dd being stuck. The change here should not change simulation determinism, so I actually went back to the previous change, re ran the test, and it ended up with the same failure, proving that this change is not causing the failure.
Code-Reviewer Section
The general pull request guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branchormainif this is the youngest branch)