smolnar82 commented on a change in pull request #297: KNOX-2301 and KNOX-2302
URL: https://github.com/apache/knox/pull/297#discussion_r396332466
##########
File path:
gateway-server/src/main/java/org/apache/knox/gateway/services/topology/impl/DefaultTopologyService.java
##########
@@ -556,6 +553,11 @@ public void startMonitor() throws Exception {
log.remoteConfigurationMonitorStartFailure(remoteMonitor.getClass().getTypeName(),
e.getLocalizedMessage());
}
}
+
+ // Trigger descriptor discovery (KNOX-2301)
+ for (File descriptor : getDescriptors()) {
+ descriptor.setLastModified(System.currentTimeMillis()); // 'Touch' the
descriptor
+ }
Review comment:
I'd move this out to a new method instead of keeping it in `startMonitor`
with a good method name. Otherwise, in the future, it'd confuse others why it's
here.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services