Repository navigation
History test fixes - #5168
Merged
Merged
History test fixes#5168
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the cumulative in-memory mPublishQueued atomic counter and the associated virtual getPublishQueueCount() method from HistoryManager/HistoryManagerImpl, replacing all call sites with the static HistoryManager::publishQueueLength(Config const&) method that measures the publish queue length directly from the filesystem.
Changes:
- Removes the
mPublishQueuedatomic field and the virtualgetPublishQueueCount()method fromHistoryManagerImpland its baseHistoryManagerinterface. - Updates all call sites in tests (
HistoryTests.cpp,HistoryTestsUtils.cpp,BucketManagerTests.cpp) to use the staticpublishQueueLength(). - Moves the doc comment that was on the old virtual method to the static
publishQueueLength()declaration.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/history/HistoryManager.h |
Removes getPublishQueueCount() pure virtual declaration; comment for publishQueueLength() updated (moved from the removed method). |
src/history/HistoryManagerImpl.h |
Removes mPublishQueued atomic field and getPublishQueueCount() override declaration. |
src/history/HistoryManagerImpl.cpp |
Removes mPublishQueued++ increment and the getPublishQueueCount() implementation. |
src/history/test/HistoryTests.cpp |
Replaces getPublishQueueCount() with publishQueueLength(cfg) in two polling loops. |
src/history/test/HistoryTestsUtils.cpp |
Replaces getPublishQueueCount() with publishQueueLength() in a test REQUIRE assertion. |
src/bucket/test/BucketManagerTests.cpp |
Replaces getPublishQueueCount() with publishQueueLength(cfg) in a polling loop. |
marta-lokhova
force-pushed
the
historyTestFix
branch
2 times, most recently
from
March 9, 2026 21:24
979ab32 to
25ef6f5
Compare
dmkozh
reviewed
Mar 9, 2026
dmkozh
left a comment
Contributor
There was a problem hiding this comment.
Please revert the XDR submodule change
marta-lokhova
force-pushed
the
historyTestFix
branch
from
March 9, 2026 21:30
25ef6f5 to
5de9a43
Compare
dmkozh
approved these changes
Mar 9, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.