-
Notifications
You must be signed in to change notification settings - Fork 496
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
HDDS-4309. Fix inconsistency recon config keys starting with recon and not ozone #1478
Conversation
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.
+1 LGTM
@frischHWC Thanks for working on this! The patch looks good to me except the failing checkstyles. Please fix those longer lines and I can merge it.
|
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.
Thanks @frischHWC for working on this.
The new key names look good, but if we simply change them, existing clusters would not respect after upgrade any custom value previously configured for these properties. Administrators would have to manually update their configs.
So I think we should keep the constants for the old names, and use them as fallback when looking up the config. For one of them (RECON_OM_SNAPSHOT_TASK_INITIAL_DELAY
) I have suggested two changes, which can be applied to all other old config keys.
Note: commit message should include Jira ID (and match Jira title), eg. HDDS-4309. Fix inconsistent Recon config keys that start with "recon.om."
. Whoever merges this, please pay attention to prepend Jira ID in commit message.
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconServerConfigKeys.java
Show resolved
Hide resolved
OZONE_RECON_OM_SNAPSHOT_TASK_INITIAL_DELAY, | ||
OZONE_RECON_OM_SNAPSHOT_TASK_INITIAL_DELAY_DEFAULT, |
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.
OZONE_RECON_OM_SNAPSHOT_TASK_INITIAL_DELAY, | |
OZONE_RECON_OM_SNAPSHOT_TASK_INITIAL_DELAY_DEFAULT, | |
OZONE_RECON_OM_SNAPSHOT_TASK_INITIAL_DELAY, | |
configuration.get( | |
ReconServerConfigKeys.RECON_OM_SNAPSHOT_TASK_INITIAL_DELAY, | |
OZONE_RECON_OM_SNAPSHOT_TASK_INITIAL_DELAY_DEFAULT), |
Thanks @frischHWC for updating the patch. Sorry, I forgot |
Codecov Report
@@ Coverage Diff @@
## master #1478 +/- ##
=========================================
Coverage 75.49% 75.49%
Complexity 10798 10798
=========================================
Files 1021 1021
Lines 52095 52095
Branches 5103 5103
=========================================
Hits 39328 39328
Misses 10321 10321
Partials 2446 2446 Continue to review full report at Codecov.
|
@adoroszlai Thanks for the review and @frischHWC thanks for the contribution. |
* master: (23 commits) HDDS-4122. Implement OM Delete Expired Open Key Request and Response (apache#1435) HDDS-4336. ContainerInfo does not persist BCSID (sequenceId) leading to failed replica reports (apache#1488) Remove extra serialization from getBlockID (apache#1470) HDDS-4262. Use ClientID and CallID from Rpc Client to detect retry requests (apache#1436) HDDS-4285. Read is slow due to frequent calls to UGI.getCurrentUser() and getTokens() (apache#1454) HDDS-4312. findbugs check succeeds despite compile error (apache#1476) HDDS-4311. Type-safe config design doc points to OM HA (apache#1477) HDDS-3814. Drop a column family through debug cli tool (apache#1083) HDDS-3728. Bucket space: check quotaUsageInBytes when write key and allocate block. (apache#1458) HDDS-4316. Upgrade to angular 1.8.0 due to CVE-2020-7676 (apache#1481) HDDS-4325. Incompatible return codes from Ozone getconf -confKey (apache#1485). Contributed by Doroszlai, Attila. HDDS-4309. Fix inconsistency in recon config keys starting with recon and not ozone (apache#1478) HDDS-4310: Ozone getconf broke the compatibility (apache#1475) HDDS-4298. Use an interface in Ozone client instead of XceiverClientManager (apache#1460) HDDS-4280. Document notable configurations for Recon. (apache#1448) HDDS-4156. add hierarchical layout to Chinese doc (apache#1368) HDDS-4242. Copy PrefixInfo proto to new project hadoop-ozone/interface-storage (apache#1444) HDDS-4264. Uniform naming conventions of Ozone Shell Options. (apache#1447) HDDS-4271. Avoid logging chunk content in Ozone Insight (apache#1466) HDDS-4299. Display Ratis version with ozone version (apache#1464) ...
What changes were proposed in this pull request?
Fix recon configs inconsistent
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4309
How was this patch tested?
Build up project, launch dockers, and new default parameters were present but not old ones anymore.
On recon container: