Skip to content
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

Do not return boltdb bucket not found error #127

Merged
merged 1 commit into from
Apr 15, 2016
Merged

Conversation

mrjana
Copy link
Contributor

@mrjana mrjana commented Apr 15, 2016

While doing a boltdb operation and if the bucket is not found
we should not return a boltdb specific bucket not found error
because this causes leaky abstraction where in the user of libkv
needs to know about boltdb and import boltdb dependencies
neither of which is desirable. Replaced all the bucket not found
errors with the more generic store.ErrKeyNotFound error which
is more appropriate.

Signed-off-by: Jana Radhakrishnan mrjana@docker.com

@abronan
Copy link
Contributor

abronan commented Apr 15, 2016

Agreed, thanks @mrjana LGTM

ping @sanimej

@sanimej
Copy link
Contributor

sanimej commented Apr 15, 2016

mrjana: Please also remove the variable definition for ErrBoltBucketNotFound. LGTM otherwise.

While doing a boltdb operation and if the bucket is not found
we should not return a boltdb specific bucket not found error
because this causes leaky abstraction where in the user of libkv
needs to know about boltdb and import boltdb dependencies
neither of which is desirable. Replaced all the bucket not found
errors with the more generic `store.ErrKeyNotFound` error which
is more appropriate.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
@mrjana
Copy link
Contributor Author

mrjana commented Apr 15, 2016

@sanimej Removed and updated.

@sanimej sanimej merged commit 7283ef2 into docker:master Apr 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants