-
Notifications
You must be signed in to change notification settings - Fork 699
Add config node init command #14869
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
Add config node init command #14869
Conversation
🟢 |
⚪ Test history | Ya make output | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
||
TCommandNodeConfig::TCommandNodeConfig() | ||
: TClientCommandTree("config", {}, "Node-wide configuration") | ||
{ |
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.
{ | |
{ |
} | ||
Cerr << "Failed to save configs: " | ||
<< (clusterSaved ? "" : "main config ") | ||
<< (storageSaved ? "and " : "storage config") |
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.
А что если clusterSaved = false, а storageSaved = true
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.
Все равно должна выдаваться ошибка. То что там теперь лежит бесполезный файл storage не должно никак повлиять, так как это файлы только для системы
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.
Я про текст ошибки:
"Failed to save configs: main config and "
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.
Понял, поторопился)
bool clusterSaved = false; | ||
bool storageSaved = false; | ||
|
||
if (hasCluster && hasStorage) { |
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.
На мой взгляд ниже много boilerplate кода, по куче раз конфиги сохраняем. Лучше в как-то в одном месте сделать, и потом писать вывод на основе того, что пытались сохранить, что получилось сохранить.
Но тут скорее на твое усмотрение и на усмотрение @pnv1
Changelog entry
Add config node init command
Changelog category
Description for reviewers
...