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
errors in kdbGet #1511
Comments
I mark this issue stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping the issue by writing a message here or create a new issue with the remainder of this issue. |
I closed this issue now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue. |
libelektra/src/plugins/ni/ni.c Line 54 in ecd4c99
It could be also a corruption of some other kind, e.g. some script did a wrong change or even a hard disc failure. I wouldn't go for more than a warning, as not starting the application for a maybe irrelevant option can be a very severe problem. Applications can always decide to exit on warnings (and normal applications probably should do that) but in some situations there might be no way to let applications start with a present error, e.g. if the error is already within |
But the question is, what would the To me a warning is something that "should ideally be fixed", but "can also be safely ignored". So IMO ignoring a warning should never lead to data loss. That is actually, why we need a mode were errors are ignored. Then we can properly return errors, when something really bad happend. |
Yes, this would basically mean we need critical and non-critical errors. Or: we treat such things as corruption of the database and build some other tools (post 1.0) to fix such corruptions. Something like Or: we make it internally as warning, and the spec plugin turns it to an error if the warning is related to a specified key. If the name is invalid, it is not such a case anyway. This could be very problematic if the erroneous key is actually a typo from a name of a specified key. And this approach is probably also a too big burden for the spec plugin. Anyway: We definitely need a consistent error concept. See also #2726. |
(this proposal is a draft)
Currently, kdbGet passes through wrong configuration settings in order to give the application any chance to correct the config. This also means that applications start up with wrong conf, which is an unwanted situation. Possible solutions:
see also #1291
The text was updated successfully, but these errors were encountered: