JiaLiangC commented on PR #4261:
URL: https://github.com/apache/ambari/pull/4261#issuecomment-7270990548
@prabhjyotsingh
1. Rapid consecutive edits can overwrite a manually entered value.
[useEnhancedConfigs.ts:634
(https://github.com/apache/ambari/blob/94e3cd1d746ea4218ced467be1b4d87271290ea4/ambari-web/latest/src/hooks/useEnhancedConfigs.ts#L634)](https://github.com/apache/ambari/blob/94e3cd1d746ea4218ced467be1b4d87271290ea4/ambari-web/latest/src/hooks/useEnhancedConfigs.ts#L634)
relies on didUserOverrideValue to protect manual edits, but that flag is only
set inside the 800ms debounced callback. Entering a custom JDBC URL and
changing the DB host 400ms later cancels the first callback, leaving the URL
unprotected. The new auto-apply logic then overwrites it with the recommended
URL. Please record the override synchronously when the field is edited.
2. The child configuration view still drops recommended properties for
newly added services.
The filter preceding [useEnhancedConfigs.ts:712
(https://github.com/apache/ambari/blob/94e3cd1d746ea4218ced467be1b4d87271290ea4/ambari-web/latest/src/hooks/useEnhancedConfigs.ts#L712)](https://github.com/apache/ambari/blob/94e3cd1d746ea4218ced467be1b4d87271290ea4/ambari-web/latest/src/hooks/useEnhancedConfigs.ts#L712)
still checks installedServices, which contains every in-scope service in the
Step 7 child, rather than clusterInstalledServices. Consequently, when an edit
causes Advisor to recommend a previously undefined property for a new service,
it is incorrectly treated as belonging to an installed service and omitted from
the configuration and deployment payload. Only the proxyuser and
tez.history.logging exceptions bypass this filter. Please use the actual
installed-service list consistently in addByRecommendations as well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]