Hi Joachim, The problem with your code is here:
myBucket.delete(guiPath); The way the API flow works is just like doing a store and fetch; the Bucket.delete() method returns a DeleteObject on which you then call .execute() to actually perform the operation: myBucket.delete(guiPath).execute(); Thanks, - Roach On Fri, Mar 15, 2013 at 11:45 AM, Joachim Haagen Skeie <[email protected]> wrote: > Hello, > > I am trying to delete items using the Java client, but for some reason, the > data is still there when I try to get it out later. > > I have posted the relevant parts of the Java Class performing the deletion > here: https://gist.github.com/joachimhs/5171629 > > The following unit test fails on the last assertion: > > @Test > public void testTreeMenu() throws InterruptedException { > newEnv.getTreeMenuDao().persistTreeMenu(new > BasicStatistics("EurekaJAgent:Memory:Heap:Used %", "Account Name", "Y")); > > > > Statistics statOne = > newEnv.getTreeMenuDao().getTreeMenu("EurekaJAgent:Memory:Heap:Used %", > "Account Name"); > > > > Assert.assertNotNull(statOne); > Assert.assertEquals("EurekaJAgent:Memory:Heap:Used %", > statOne.getGuiPath()); > Assert.assertEquals("Account Name", statOne.getAccountName()); > Assert.assertEquals("Y", statOne.getNodeLive()); > > > > newEnv.getTreeMenuDao().deleteTreeMenu("EurekaJAgent:Memory:Heap:Used > %", "Account Name"); > > > > Thread.sleep(550); > Statistics deletedStatOne = > newEnv.getTreeMenuDao().getTreeMenu("EurekaJAgent:Memory:Heap:Used %", > "Account Name"); > > > > Assert.assertNull(deletedStatOne); > } > > Med Vennlig Hilsen | Very Best Regards, > > Joachim Haagen Skeie > [email protected] > http://haagen-software.no > +47 4141 5805 > > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com > _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
