Code Monkey home page Code Monkey logo

Comments (5)

alexmoore avatar alexmoore commented on July 18, 2024

What version of Riak are you running against?
What do you mean by "doesn't work"? Do you have any sample code that shows the issue?

Thanks.

from riak-dotnet-client.

InfoTrendsGit avatar InfoTrendsGit commented on July 18, 2024

Hi, my cluster is currently running Riak 2.1.1.
I am able to use RiakClient.Search(), RiakClient.Get(), RiakClient.Put() but fail to get RiakClient.Delete() to work.

Here is the sample code

string bucketType = "InfoT";
string bucketName = "Users";
List keys = new List { "12345667", "12345678" };
List riakIds = keys.Select(k => new RiakClient.Models.RiakObjectId(bucketType, bucketName, k)).ToList();

RiakClusterConfiguration clusterConfig = RiakClusterConfiguration.LoadFromConfig("myConfig");
RiakCluster cluster = new RiakCluster(clusterConfig, new RiakConnectionFactory());
RiakClient riakClient = cluster.CreateClient();
riakClient.Delete(riakIds); /* Doesn't work */

  • I also tried to delete using single key instead of a list of keys and still doesn't work.

Please help

Thanks

from riak-dotnet-client.

lukebakken avatar lukebakken commented on July 18, 2024

Hello -

Can you please be more specific about "doesn't work"? Does the object remain in Riak, and/or do you get an error at that point? If the object remains in Riak, can you fetch the object using curl -vvv and provide both the command you use to fetch the object as well as the output from curl?

from riak-dotnet-client.

InfoTrendsGit avatar InfoTrendsGit commented on July 18, 2024

After issuing RiakClient.Delete() request to Riak, the objects are still the Riak. I gave it sometimes and check it again, still there. So alternatively I have to issue RestRequest (using RestSharp) to Riak, it remove the objects.

Before I used CorrugatedIron and it works. Then CorrugatedIron change its name RestClient, so I downloaded the new one, it no longer works. Codes are all the same, just different namespace. Do you think protobuf-net has something to do with it?

I am currently using protobuf-net v2.0.0.668 (which comes with RiakClient project)

from riak-dotnet-client.

lukebakken avatar lukebakken commented on July 18, 2024

I can't reproduce this issue, and you can see in the integration test suite that Delete is tested. I just re-ran that test locally and it succeeded.

Could you please follow my instructions and fetch the object using HTTP and curl after you try and delete it? Here is an example command:

curl -4vvv http://RIAK_HOST:8098/types/InfoT/buckets/Users/keys/12345678

Replace RIAK_HOST with the DNS name or IP address of one of your Riak servers, or use localhost if you execute curl on the same server as one of your Riak nodes.

from riak-dotnet-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.