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

No results found yields IsSuccess == false #297

Open
patrickherrmann opened this issue Nov 13, 2015 · 1 comment
Open

No results found yields IsSuccess == false #297

patrickherrmann opened this issue Nov 13, 2015 · 1 comment
Labels

Comments

@patrickherrmann
Copy link

The documentation for Querying states:

As long as your attempt to talk to Riak is successful, IsSuccess will be true. Any attempt to talk to
Riak that doesn't fail through an inability to talk to talk to the server somehow (network connection
error, bad request, etc) is considered a success. Not finding a record is considered to be a success.

When I query for a bogus key, I get a RiakResult with result.IsSuccess == false and result.ResultCode == ResultCode.NotFound.

My usage of the client is very basic:

var riakObjectId = new RiakObjectId("bogus", "id");
var result = client.Get(riakObjectId);

From the documentation I would expect result.IsSuccess == true.

Is this a documentation problem, an issue with the client, or an issue on my end?

@lukebakken lukebakken added the Bug label Nov 14, 2015
@lukebakken
Copy link
Contributor

Sounds like a bug to me. Thank you for reporting this.

@lukebakken lukebakken added this to the riak-dotnet-client-2.3.0 milestone Mar 2, 2016
@lukebakken lukebakken removed this from the riak-dotnet-client-2.3.0 milestone Mar 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants