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
HAWQ-1373 - Added feature to reload GUC values using hawq reload-config #1254
Conversation
…ig <object> deprecating hawq stop <object> -u
Scoped out some documentation changes which are detailed below - Files with hawq stop cluster -u |
Shubham, I think what you've done in this PR is to add a command for hawq, which can reload GUC configs without restarting the system. Currently, this is done by this command "hawq stop cluster --reload", which is a little bit ambiguous in my opinion. So if we all agree on using "hawq reload-config" instead, the old codes related to this reloading GUC logic should be removed. @radarwave @vVineet |
If we add "hawq reload-config", I think there is no need for "hawq stop cluster -u". 2 commands have same function make me more confused. |
Thanks @outofmem0ry to contribute this, please check below comments.
|
@linwen @stanlyxiang @radarwave - Thank you for the comments and suggestions. @radarwave - Please see the comments inline
|
@radarwave - am in the process of making final changes for this pull request, I don't see any existing test infrastructure for management utilities, am I missing something here. Can you point me to some existing test cases and how they are plugged into hawq code base. |
@outofmem0ry |
@radarwave committed the final changes, doc changes pending. Will submit a PR in docs repo. |
Need to fix: hawq reload |
tools/bin/hawq
Outdated
if len(sub_args.split("-")) > 1: | ||
if "-u" in sub_args or "--reload" in sub_args or "u" in sub_args.split("-")[1]: | ||
deprecationMessage = """ | ||
hawq stop <object> -u is being deprecated and replaced by 'hawq reload <object>' |
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.
This deprecation message is not align with other messages.
Run 'hawq stop cluster -u' then you can see.
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.
@radarwave - I deliberately kept the messages printing different so that it is noticeable to the user, as it is a deprecation warning.
/* | ||
Test case for hawq reload <object>. This test changes the value of GUC | ||
log_min_messages to debug. Reloads the cluster and verifies if the change | ||
was reloaded successfully. After the test it resets the valueof GUC to |
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.
Typo 'valueof'.
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.
Thank you for pointing it out, will correct it.
@radarwave - Fixed and incorporated above comments. |
LGTM +1 |
+1 |
Thanks for @outofmem0ry 's contribution, I have squashed and merged this commit. Please close this PR. Welcome to do more contributions. |
Thank you @linwen @radarwave . Closing this PR, will also submit a PR for documentation changes to apache/incubator-hawq-docs repo. |
This commit introduces
hawq reload-config <object>
as a replacement ofhawq stop <object> -u|--reload
, to reload GUC values without restarting the cluster.