JiaLiangC commented on PR #4260: URL: https://github.com/apache/ambari/pull/4260#issuecomment-7271156297
@prabhjyotsingh Restoring a projected checkpoint can discard saved configurations. [scopedWorkflow.ts:248 (https://github.com/apache/ambari/blob/ae434e629c0efa123c80a2c5eafe7766300dbefb/ambari-web/latest/src/Utils/scopedWorkflow.ts#L248)](https://github.com/apache/ambari/blob/ae434e629c0efa123c80a2c5eafe7766300dbefb/ambari-web/latest/src/Utils/scopedWorkflow.ts#L248) removes configs, stackLevelConfigs, and themes, but Step 7 reloads them in parallel. The successful Theme callback still closes over the empty configuration catalogs from the initial render and rebuilds configurations from them. Since preserveEditedConfigValues only copies saved values into properties present in the rebuilt tree, this can replace the restored configurations with an empty tree, losing saved service properties and manual edits. I reproduced this with a refresh/recovery test: the original checkpoint preserves saved-user-edit, while the same checkpoint processed through projectAddServiceValues loses that property. Please wait until the configuration catalogs and current cluster values have loaded before rebuilding metadata and merging the saved values. -- 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]
