-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overwrite config parameter does not work #1514
Comments
@djw8605 fyi |
Yes, that's correct. One of the failings of the documentation is that it doesn't tell you whether a directive is replaceable, additive, or modifiable. Some are and some are not. So, I am not suprised here. The chksum directive is additive not replaceable and if you don't specify the job limit in a subsequent directive it changes to the default of 4. |
The multiuser plugin also reads the chksum line, and it is additive. I think it should be replaceable though, and Brian pointed out that the plugin needs to reset the calculated digests each time is sees the value. Setting Completely untested pull request: |
While I agree that some directives would be better handling a subsequent directive in a diffrent way, the problem is that it would make some config file out there no longer backward compatible if we change the existing behaviour. So, we are sort of suuck with only "gees wouldn't it better if...." as the practical resolution. Yes, we could add a special keyword indicating you want replacement but it's an enormous task going through the hundreds of existing directives to make them all consistent with that approach. |
Solved here: opensciencegrid/xrootd-multiuser@aa4bca9 |
Here is setup:
xrootd-clustered.cfg - default file and there is
continue /etc/xrootd/config.d/
inside /etc/xrootd/config.d/ we have:
60-osg-multiuser.cfg defines:
99-local.cfg defines:
I would expect that 99-local.cfg takes priority as being the last one and any param defined in 99-local overwrites found before. But seems this is not the case:
While it should have only adler32 defined. I tried to move 99-local.cfg to 01.local.cfg - but this made 0 diff. It still calculates all checksums. Once I comment out xrootd.chksum on 60-osg-multiuser.cfg - then it works and calculates only adler32.
What could be wrong here?
Xrootd server start indicates that 99-local config was read the last:
The text was updated successfully, but these errors were encountered: