If this is a big show stopper for you, let me know and I can see what it would take to put in a flag to bypass validations (it'd default to being on, so you'd have to consciously make that decision).
Summary: This happens because some clients still use HTTP and we need to play nice with their degenerate behaviors. Details: When we threw that check into CorrugatedIron, we were imagining that people might have multiple Riak clients in place, including some that are talking over HTTP instead of Protocol Buffers (looking at you, node.js). Internally, CorrugatedIron doesn't care about valid keys, it just converts strings and buckets to byte arrays and sends the messages over to Riak. I've considered creating some sort of "Should I care" flag that would allow users to pass in whatever gibberish they want, but it's been on the back burner. With Riak 2.0, this behavior can go away since, officially, only protocol buffers will be supported for clients. CorrugatedIron, though, still needs to be able to talk to downlevel clients since you might have a cluster in the middle of a migration from 1.4.x to 2.0.x and killing communications isn't funny. Typically, I just nuke the data in my Riak cluster after running Basho bench, but my use case is slightly different and my cluster gets rebuilt regularly anyway. --- Jeremiah Peschka - Founder, Brent Ozar Unlimited MCITP: SQL Server 2008, MVP Cloudera Certified Developer for Apache Hadoop On Wed, Sep 11, 2013 at 7:15 AM, Alex Rice <a...@mindlube.com> wrote: > Hi all, I was messing around with basho_bench and I think it created a > 'test' bucket with lots of binary keys, not string keys. Using the > .NET api (http://corrugatediron.org/) and it fails to delete these > keys. Any suggestions how I can get rid of this bucket, aside from > stopping all nodes and deleting the var/lib/riak directory? > > client.DeleteBucket() just seems to hang and > client.Delete(bucket, key) fails with an ErrorMessage like this > > deleting key �� > deleting key �w > deleting key 4�q > deleting key ��# > ... > deleting key Z�1 > deleting key /MN > > Unhandled Exception: > System.Exception: Key cannot be blank or contain forward-slashes > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com