Load fundamental modules by default#597
Conversation
49e4fcd to
e6e1a10
Compare
willmostly
left a comment
There was a problem hiding this comment.
Looks good, just two small comments
| for (String clazz : configuration.getModules()) { | ||
| modules.add(newModule(clazz, configuration)); | ||
| else { | ||
| for (String clazz : configuration.getModules()) { |
There was a problem hiding this comment.
Will there be an error if the configured modules includes one of the default modules? If so we should make sure there is a clear message telling the user how to fix the situation.
There was a problem hiding this comment.
I added checks to prevent loading default modules in the config. Instead of trying to provide compatibility and issuing a warning, it will fail to start if any of the default modules are set in the config file. It might be a bit aggressive. I'm okay with using the former method if you prefer.
There was a problem hiding this comment.
I think this approach is correct. It is better to force a one-time fix than to try to continue supporting a broken configuration indefinitely
e6e1a10 to
818b69a
Compare
818b69a to
3616363
Compare
3616363 to
468e2b6
Compare
0edf60d to
d502895
Compare
| for (String clazz : configuration.getModules()) { | ||
| modules.add(newModule(clazz, configuration)); | ||
| else { | ||
| for (String clazz : configuration.getModules()) { |
There was a problem hiding this comment.
I think this approach is correct. It is better to force a one-time fix than to try to continue supporting a broken configuration indefinitely
Description
Load some fundamental modules by default.
HaGatewayProviderModuleprovides core functions for gateway including auth and routing.ActiveClusterMonitorperform health check on Trino cluster.ClusterStateListenerModuleandClusterStatsMonitorModuleare required forActiveClusterMonitor.Release notes
(x) Release notes are required, with the following suggested text: