-
Notifications
You must be signed in to change notification settings - Fork 468
Add scan server prefix to valid zooProp list #4487
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
Conversation
Adds the scan server properties prefix to the list of valid zooProps. This allows the scan server properties to be modified via the shell.
dlmarion
left a comment
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.
No issue with this change. However, I think Property.fixedProperties needs to be reviewed. There are properties that we are marking as mutable by using the prefix property that require a restart, but are not in the fixedProperties set. For example, tserver.server.threads.minimum is marked mutable, so it can be changed in ZK, but the TServer will not update it's internal value and restart the Thrift Server.
Looking at this, should all the properties that are used as arguments to accumulo/server/base/src/main/java/org/apache/accumulo/server/rpc/TServerUtils.java Lines 131 to 135 in 361ed50
If so I can make updates to |
Most likely. Also, the cache properties are likely also fixed. The code would need to be evaluated to determine if a running server will respect property changes. Being ZK mutable allows the user to change the property in the shell. It will take effect for servers started after the change, but there is no guarantee that running servers will be updated. |
|
@ddanielr - I looked through the ScanServer code. These need to be added to the fixedProperties. The only properties that are checked at runtime are the ones dealing with the scan executors. |
Updates the list of fixed properties to include properties that are used when setting up a server and are never checked again at runtime.
I took that list and also expanded it to include those properties under any other server types. |
dlmarion
left a comment
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.
I think this is good. There are likely many others that are fixed, but that can be done in a different PR.
|
It would be nice to have an extra attribute on each property that denoted these attributes, so we didn't have to maintain a separate list. I'm not sure that would be a huge improvement, but it might make it easier to keep up-to-date because we'd have to consciously think about these attributes when we create or modify properties, rather than having to add them to a separate hard-coded list somewhere else when they need to be updated. |
Adds the scan server properties prefix to the list of valid zooProps.
This allows the scan server properties to be modified via the shell.