-
Notifications
You must be signed in to change notification settings - Fork 123
allow kdbSet even after failed kdbGet #2955
Comments
There should be one exception: To fix cases where a storage plugin fails, a user would either have to manually fix the storage file, or call This could be done by splitting the plugin return code |
I like the idea about asking the user to use
I do not like the idea to have several channels of communications for errors. We should properly include this in our error concept. Unfortunately, there is currently no way to find out if an error is related to only one key or to several keys. @Piankero do you see a way how to find out such a situation with the error codes? |
We could add a macro that adds a key to the Of course this solution requires a lot of changes. However, I don't see a safe solution that doesn't require checking every error in every plugin. Continuing after |
I am not quite sure what the requirements are here exactly for the error codes/system. The discussion here is a bit too deep for my Elektra knowledge. |
The suggestion from @kodebach is very good: The idea is to collect the cause of an error (or warning). Usually the cause would be:
There is of course a very deep relationship to the error codes, so resource errors might have a concrete resource which fails and validation failures should (actually always) have concrete keys as causes. It would be great if we get a deeper understanding of this. |
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. |
When there is an error in
kdbGet()
it is impossible to fix the problem using Elektra. There are two seemingly conflicting requirements:I propose that kdbGet will continue to fail (e.g. on syntax errors in config files but also on type errors, where we currently do not fail) but we allow kdbSet to be called (which will overwrite the config in this case). With this feature, we can implement a
kdb set -f
which will simply continue even if there are errors inkdbGet
. Applications do not need such a-f
option, they should continue to fail on errors in kdbGet.Advantages:
What do you think?
The text was updated successfully, but these errors were encountered: