hanicz opened a new pull request, #1450: URL: https://github.com/apache/knox/pull/1450
… exist at startup (It is very **important** that you created an Apache Knox JIRA for this change and that the PR title/commit message includes the Apache Knox JIRA ID!) [KNOX-3511](https://issues.apache.org/jira/browse/KNOX-3511) - Gateway ignores gateway-reloadable.xml if the file did not exist at startup ## What changes were proposed in this pull request? - `GatewayConfigImpl.java`: the config now keeps a list of the files it read at startup. A new method, `addConfigFileIfAbsent(File)`, adds a file to that list if it exists and isn't there yet; otherwise it does nothing. It logs the same Loading configuration file ... line as at startup. - `GatewayServer.refreshGatewayConfig`: calls that method just before `reloadConfiguration()`. So the first refresh after the file appears adds it, and the reload then actually reads it before the listeners are told. ## How was this patch tested? Unit tests, tested locally with missing gateway-reloadable, tested modification, tested with present file and modification -- 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]
