[Swift-devel] Need help to enable provenance
Mihael Hategan
hategan at mcs.anl.gov
Sat Apr 13 16:41:50 CDT 2013
On Sat, 2013-04-13 at 16:21 -0500, Michael Wilde wrote:
> > So I'm not quite sure what's happening in your case. I would check
> > simple things like making sure you are editing the right
> > configuration
> > file, that you are not overriding -provenance.log on the command
> > line,
> > etc.
>
> Indeed, that seems to have been the problem: I forgot that I had created a $HOME/.swift/swift.properties file earlier in the week.
>
> But the resulting properties ordering seems to be less than clear and desirable behavior: even though (a) I was specifying via -config a properties file with provenance=true, (b) the .log file confirmed this, it seems that swift took at least the provenance setting from the $HOME/.swift/swift.properties file.
>
> We should examine this in more detail. I would have expected that properties are read in this order:
>
> $SWIFT_HOME/etc/swift.properties
> $HOME/.swift/swift.properties
> swift -config swift.properties
Agreed. That should be the order, and the absence of a property in a
higher priority configuration file should override existing properties
in other files.
>
> Im not sure, but perhaps the provenanceEnabled state is getting latched in to "false" (from an initial null) in some class(es) when the second properties file above is processed, and the -config file's provenance.value is being ignored? Or maybe its just that the second file above has the final say for all values? Needs more experimentation, but something doesnt seem right and logical here.
>
> - Mike
>
More information about the Swift-devel
mailing list