-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat(server): Implemented periodic snapshotting (#161) #250
Conversation
* feat(test): Added the ability to specify dragonfly cli parameters on a test basis (dragonflydb#199) Signed-off-by: Braydn <braydn.moore@uwaterloo.ca>
Thanks, I will review it shortly! :) Please join our discord and say hello! :) |
Awesome contribution and thanks for raising the bar with pytest code! 💯 |
Code cleanup & CONTRIBUTORS.md modifcation Signed-off-by: Braydn <braydn.moore@uwaterloo.ca>
src/server/server_family.cc
Outdated
snapshot_fiber_ = service_.proactor_pool().GetNextProactor()->LaunchFiber([save_spec = std::move(spec.value()), this] { | ||
SnapshotScheduling(std::move(save_spec)); | ||
}); | ||
} |
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.
formatting is wrong here. "else" should be on the same line with "} "
src/server/server_family.cc
Outdated
}); | ||
} | ||
else { | ||
LOG(WARNING)<<"Invalid snapshot time specifier "<<save_time; |
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.
spaces around "<<"
Parsing and race condition fixes. Improved pytests Signed-off-by: Braydn <braydn.moore@uwaterloo.ca>
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.
We are done ,🚀 Thank you very much!
You just need to pull the helio submodule and add it to this pr.
tests/pytest/snapshot_test.py
Outdated
import time | ||
import os | ||
|
||
OUT_DIR = TemporaryDirectory() |
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.
it's not used, imho
tests/pytest/snapshot_test.py
Outdated
@@ -0,0 +1,28 @@ | |||
from pathlib import Path | |||
from tempfile import TemporaryDirectory |
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.
it's not needed, imho
@romange I ended up cleaning up the test cases and adding documentation for writing tests to the README file. Do you want those changes included in this PR or should I open a new one focused on test changes? |
It's fine adding here @braydnm |
…#199) - Moved tests into their own file - Renamed test namespace to avoid naming conflicts with pytest - Updated requirements.txt to make test environment reproducible - Added documentation to write tests feat(server): Updated helio submodule Signed-off-by: Braydn <braydn.moore@uwaterloo.ca>
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.
🚀 🚀
Signed-off-by: Braydn braydn.moore@uwaterloo.ca