-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use active tree on server startup #727
Conversation
Codecov Report
@@ Coverage Diff @@
## main #727 +/- ##
==========================================
- Coverage 48.43% 48.35% -0.09%
==========================================
Files 61 61
Lines 5492 5493 +1
==========================================
- Hits 2660 2656 -4
- Misses 2544 2547 +3
- Partials 288 290 +2
Continue to review full report at Codecov.
|
98e5176
to
94e15c1
Compare
Rebased and ready for review! |
I wonder if instead of searching for the most recent tree, we should just enforce people use the So if someone passes in:
This way we don't have to guess which tree is active. WDYT? |
+1 on keeping the logic simpler |
Thanks @priyawadhwa , I was hoping to get some thoughts on how the |
@priyawadhwa In thinking about this more, I'm not sure that starting the server without the The other thing I'm thinking about is that since I realized I also need to add in a guard to make sure we're not appending the active tree to |
personally I think this is probably ok, since we do have logic in there to create the tree (this is also useful for testing). maybe we could print a warning that this is happening so users are aware?
+1!
So |
That all sounds good to me. Unless @dlorenc or @bobcallaway have any other thoughts on it I'll implement this. |
@priyawadhwa I just opened #739 to update some of the flag logic. I can rebase this on top of that one. |
8d58661
to
506d06b
Compare
Signed-off-by: Lily Sturmann <lsturman@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Fixes logic increateAndInitTree()
to use in order of precedence: 1. theActiveIndex
tree passed in via thelogRanges
flag, 2. the most recently created tree, 3. create a new treeAdds safeguards forActiveTreeID()
in case therange
is empty and adds a unit testCreate a new tree if there is no active tree specified with the
tlog_id
flag. Do not look for existing trees to use because these may be inactive.Ticket Link
Fixes #726