Comments (5)
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.
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.
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.
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.
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)
- Issue with health check / node selection HOT 2
- No results found yields IsSuccess == false HOT 1
- Compiling under Mono breaks stuff HOT 1
- Default value for deletedvclock
- Riak TS support
- Nodes are not marked Offline for a failed GET request HOT 10
- Riak client does not support the use of a load balancer HOT 14
- The "externalLoadBalancer" doesn't take multiple-load balancer scenarios into account HOT 2
- RiakClient.Delete issue [JIRA: CLIENTS-898] HOT 3
- Don't lose original error when returning "ClusterOffline"
- Update riak_pb submodule when tagged
- Optional fields with default values in PB messages
- Upon save/update failure - no way to get Id
- Target .NET Standard
- Revamp publish process
- Riak TS - when rpberrorresp is returned, text is unavailable HOT 1
- Fluent connection configuration ? HOT 2
- System.configuration could not be resolved HOT 1
- Add warning and safety mechanism to prevent unintentional list [buckets | keys] operations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riak-dotnet-client.