Akka should warn the user if required elements of akka.conf are missing
I recently spent a little time chasing an issue related to an akka.conf that looked like this:
Changing it to this fixed it:
Since it seems that the enclosing akka {... } expression is required, it would be nice if Akka could warn the user when it is missing.
On akka-user, Viktor Klang said:
Perhaps some very simple validation could be performed after any defaults are merged in? I'm sure that's terribly naive, as akka.conf looks very DSL-ish, and I don't know what implications that would have.
remote {
server {
require-cookie = off
}
}
Changing it to this fixed it:
akka {
remote {
server {
require-cookie = off
}
}
}
Since it seems that the enclosing akka {... } expression is required, it would be nice if Akka could warn the user when it is missing.
On akka-user, Viktor Klang said:
"I don't think that'd help if you import the defaults from another conf."
Perhaps some very simple validation could be performed after any defaults are merged in? I'm sure that's terribly naive, as akka.conf looks very DSL-ish, and I don't know what implications that would have.
Leave a comment
Will be a lot of work since need to basically create a parser for the config and check it by hand by recursively look entries up in the ConfigMap.
on 2011-05-12 09:35 *
By viktorklang
Assigned to set to viktorklang
Status changed from New to Fixed
Fixed in: https://github.com/jboner/akka/commit/53cf5079fdfd44ba487b87659e51bf310c2c818b
If System property: ''akka.output.config.source" is non-null, then Akka will print to System.out where it loads it's config from, and whenever it uses a default value in the config.
If System property: ''akka.output.config.source" is non-null, then Akka will print to System.out where it loads it's config from, and whenever it uses a default value in the config.