Skip to content
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

Improvements to uRaft #136

Draft
wants to merge 8 commits into
base: dev
Choose a base branch
from
Draft

Improvements to uRaft #136

wants to merge 8 commits into from

Conversation

uristdwarf
Copy link
Collaborator

This is a patch series. DO NOT MERGE OR SQUASH THIS, DO REBASE INSTEAD

Generally refactoring and fixing clang-tidy warnings/hints. This is in preparation for some fundamental changes to how uRaft works. It also improves logging (by logging to both syslog and stderr) and fixes a bug with key-values not being correctly parsed from the uRaft helper script.

ictus4u
ictus4u previously approved these changes Jul 18, 2024
src/uraft/saunafs-uraft-helper.in Outdated Show resolved Hide resolved
src/uraft/saunafs-uraft-helper.in Show resolved Hide resolved
src/uraft/saunafs-uraft-helper.in Outdated Show resolved Hide resolved
src/uraft/uraftcontroller.cc Show resolved Hide resolved
src/uraft/saunafs-uraft-helper.in Outdated Show resolved Hide resolved
src/uraft/saunafs-uraft-helper.in Outdated Show resolved Hide resolved
src/uraft/saunafs-uraft-helper.in Outdated Show resolved Hide resolved
src/uraft/main.cc Outdated Show resolved Hide resolved
@ictus4u ictus4u self-requested a review July 18, 2024 06:55
src/slogger/slogger.cc Outdated Show resolved Hide resolved
@ictus4u ictus4u self-requested a review July 18, 2024 07:08
@ictus4u
Copy link
Collaborator

ictus4u commented Jul 18, 2024

@uristdwarf The github rebase button seems to do the opposite to what we want (it brings the changes in the opposite direction, leaving a weird shape in the graph), please, rebase from your computer if it is your will.

@uristdwarf
Copy link
Collaborator Author

@uristdwarf The github rebase button seems to do the opposite to what we want (it brings the changes in the opposite direction, leaving a weird shape in the graph), please, rebase from your computer if it is your will.

I actually want it to be fast-forwarded, so that all commits are preserved in dev. But maybe a merge will suffice.

src/uraft/saunafs-uraft-helper.in Outdated Show resolved Hide resolved
src/uraft/saunafs-uraft-helper.in Outdated Show resolved Hide resolved
src/uraft/saunafs-uraft-helper.in Outdated Show resolved Hide resolved
src/uraft/saunafs-uraft-helper.in Outdated Show resolved Hide resolved
@uristdwarf uristdwarf force-pushed the uraft-general branch 2 times, most recently from d8b9665 to d7e869b Compare August 23, 2024 08:55
@uristdwarf uristdwarf force-pushed the uraft-general branch 2 times, most recently from f68ed79 to 0d5e672 Compare September 2, 2024 10:41
@uristdwarf uristdwarf marked this pull request as draft September 11, 2024 17:31
uristdwarf and others added 4 commits November 25, 2024 10:53
When the binary for tests was moved to a different path it could not
find the tests bash script. This commit adds an environment variable
to allow the path change in run time.

Co-authored-by: Antuan <[email protected]>
Co-authored-by: Crash <[email protected]>
This for example allows using environment variables to set logging
levels.
* Fix clang-tidy linting warnings/hints
* Use slogger instead of only syslog
* Allow setting env variable to enable specific levels of logging
The helper script couldn't correctly read the files unless there were no
spaces between the key values.
uristdwarf and others added 4 commits November 25, 2024 10:55
* Add more thorough logging (including logging to stderr)
* Allow passing some env variables through parent
* Allow setting log level by setting the SAUNAFS_LOG_LEVEL variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants