Re: [Cassandra Resource] Create Update Sling Resource

2013-09-12 Thread Ian Boston
Hi, >From the results published at [1]. Reversing the order shows up that the create time is quite variable and probably not a function of the number of nodes within a collection, but probably a function the activity and buffering within the Cassandra layer. Reverse the order and the first 200 ite

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-11 Thread Dishara Wijewardana
Hi Ian, Once you look at the results, let me know whether you want new tests run results. Also please advice how to proceed further. On Wed, Sep 11, 2013 at 7:59 PM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > Hi Ian, > I attached the results.zip file to the JIRA which has the latest

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-11 Thread Dishara Wijewardana
Hi Ian, I attached the results.zip file to the JIRA which has the latest results as your expectation. I added new set of nodes in reverse order "F", "E" .."A". But here I came across in a issue (which I didn't came up last time, may be due to my heap size), that hector fails to execute batches > ar

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-11 Thread Ian Boston
Hi, Could you re-run the tests for create in the reverse order, largest collection first. The reason for this is in the detail of the tests adding resources to collection E (10M child nodes) is flat until half way through and then starts to rise which makes me thing there might be something else g

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-10 Thread Dishara Wijewardana
Also updated the JIRA with complete reports. Please find CUD_Latency_Report-11-09-13.zip attached in jira On Wed, Sep 11, 2013 at 8:07 AM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > Hi Ian, > Sorry the delay, I found my self some battery problems with my laptop. I > believe this is

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-10 Thread Dishara Wijewardana
Hi Ian, Sorry the delay, I found my self some battery problems with my laptop. I believe this is what you asked for. Here I added new 100 collections i.e 1a,3a,5a etc in each old collections and did CUD. Please advice what I should do next. CREATE [RESULT] Average Latency Under Node A(1K) = 11 (

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-10 Thread Ian Boston
Are they pre-populated with different numbers of items, or are they empty when the test starts ? If they are empty and created by the test, can you run the test on the collections used in the read tests so we get an idea how long it takes to add 100 items to each of those collections. Thanks Ian

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-10 Thread Dishara Wijewardana
Hi Ian, Those are newly added collections. On Tue, Sep 10, 2013 at 12:00 PM, Ian Boston wrote: > Hi Dishara, > Great, thanks. > What do the LA, MA, and SA stand for ? > Best regards > Ian > > On Tuesday, September 10, 2013, Dishara Wijewardana wrote: > > > Hi Ian > > Also commited the 3 new tes

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-09 Thread Ian Boston
Hi Dishara, Great, thanks. What do the LA, MA, and SA stand for ? Best regards Ian On Tuesday, September 10, 2013, Dishara Wijewardana wrote: > Hi Ian > Also commited the 3 new test classes for CUD to google code repo. > > > On Tue, Sep 10, 2013 at 10:30 AM, Dishara Wijewardana < > ddwijeward...@

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-09 Thread Dishara Wijewardana
Hi Ian Also commited the 3 new test classes for CUD to google code repo. On Tue, Sep 10, 2013 at 10:30 AM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > Hi Ian, > Finally was able to fix ;-). Had to debug along with the path and fix some > other issues also in Cassandra Provider impl.

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-09 Thread Dishara Wijewardana
Hi Ian, Finally was able to fix ;-). Had to debug along with the path and fix some other issues also in Cassandra Provider impl. I have updated the JIRA with the new reports of CUD. (I ran them one after the other respectively) In brief as follows. CREATE Average Latency Under Node LA = 165 (ms)

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-09 Thread Ian Boston
Hi The CassandraImpl needs to return something suitable to represent /content/cassandra/p For the moment, if the column family p does exist, return a new type of read only resource, eg CassandraColumnFamilyResource. Ian On 9 September 2013 13:02, Dishara Wijewardana wrote: > On Mon, Sep 9, 2

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-09 Thread Dishara Wijewardana
On Mon, Sep 9, 2013 at 2:09 PM, Ian Boston wrote: > Hi, > The call to processCreate a few lines earlier should have created the > resource so that the subsequent call to getResource returned the new > resource into newResource. > > If you look through the calls the create operation is called in >

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-09 Thread Ian Boston
Hi, The call to processCreate a few lines earlier should have created the resource so that the subsequent call to getResource returned the new resource into newResource. If you look through the calls the create operation is called in org.apache.sling.servlets.post.impl.operations.AbstractCreateOp

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-08 Thread Dishara Wijewardana
Hi Ian, I debug the servlet from line to line and locate the NPE that causes this failure. The request path SlingPostServlet > AbstractCreateOperation > ModifyOperation@line 105 where newResource = null. The resource resolver at this point is org.apache.sling.resourceresolver.impl.ResourceResolve

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-08 Thread Dishara Wijewardana
I also checked in Cassandra Provider impl and with system logs and verified the Error not comes due to exception throws from the Provider implementation itself. So probably it will be a missing a property. I still could not figure out which. If I can find which servlet get called I can debug and se

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-07 Thread Dishara Wijewardana
Hi Ian, I found it difficult to use createNode method to work. It returns 200 response. I was trying to get this working but could not find a way. Probably I might be missing some properties. What I set was only content type to be json. What are the appropriate properties that you mentioned. How ca

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-06 Thread Ian Boston
Hi, Thanks, now I see how you're doing it. Its good. So to do a Write (CUD[1]) test, create another class that extends HttpBaseTest and write a test method that invokes testClient.createNode(...) with an appropriate set of properties and a collection managed by the CassandraProvider. You will pro

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-05 Thread Dishara Wijewardana
Hi Ian, Done. On Thu, Sep 5, 2013 at 10:53 AM, Ian Boston wrote: > Hi Dishara, > > On Thursday, September 5, 2013, Dishara Wijewardana wrote: > > > Hi Ian, > > Did you mean the sling integration test (which runs the performance tests > > and provides reports) to move inside google code repo ? >

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-04 Thread Ian Boston
Hi Dishara, On Thursday, September 5, 2013, Dishara Wijewardana wrote: > Hi Ian, > Did you mean the sling integration test (which runs the performance tests > and provides reports) to move inside google code repo ? Yes please. Thanks Best regards Ian > > > On Wed, Sep 4, 2013 at 5:41 PM, I

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-04 Thread Dishara Wijewardana
Hi Ian, Did you mean the sling integration test (which runs the performance tests and provides reports) to move inside google code repo ? On Wed, Sep 4, 2013 at 5:41 PM, Ian Boston wrote: > On 4 September 2013 13:42, Dishara Wijewardana > wrote: > > HI Ian, > > > > > > > > On Wed, Sep 4, 2013

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-04 Thread Ian Boston
On 4 September 2013 13:42, Dishara Wijewardana wrote: > HI Ian, > > > > On Wed, Sep 4, 2013 at 4:00 PM, Ian Boston wrote: > >> On 4 September 2013 12:20, Dishara Wijewardana >> wrote: >> >> >> >> How long does it take to add, update and delete, 100 new items to the >> >> existing collections th

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-04 Thread Dishara Wijewardana
HI Ian, On Wed, Sep 4, 2013 at 4:00 PM, Ian Boston wrote: > On 4 September 2013 12:20, Dishara Wijewardana > wrote: > > > >> How long does it take to add, update and delete, 100 new items to the > >> existing collections that you used for the read tests. If its quick, you > >> may need to ma

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-04 Thread Ian Boston
On 4 September 2013 12:20, Dishara Wijewardana wrote: >> How long does it take to add, update and delete, 100 new items to the >> existing collections that you used for the read tests. If its quick, you >> may need to make that 1000 new items. >> >> > Hi Ian, > > In the modify provider interface

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-04 Thread Dishara Wijewardana
On Wed, Sep 4, 2013 at 12:00 PM, Ian Boston wrote: > On Wednesday, September 4, 2013, Dishara Wijewardana wrote: > > > On Tue, Sep 3, 2013 at 12:23 PM, Ian Boston > > > wrote: > > > > > Hi, > > > That sounds excellent, well done. > > > > > > Next steps, > > > test it with curl eg: > > > > > > cur

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-03 Thread Ian Boston
On Wednesday, September 4, 2013, Dishara Wijewardana wrote: > On Tue, Sep 3, 2013 at 12:23 PM, Ian Boston > > wrote: > > > Hi, > > That sounds excellent, well done. > > > > Next steps, > > test it with curl eg: > > > > curl -Ftestproperty=testvalue > > http://admin:admin@localhost:8080/cassandra/F

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-03 Thread Dishara Wijewardana
On Tue, Sep 3, 2013 at 12:23 PM, Ian Boston wrote: > Hi, > That sounds excellent, well done. > > Next steps, > test it with curl eg: > > curl -Ftestproperty=testvalue > http://admin:admin@localhost:8080/cassandra/F/23423424 > > and then check that the value was persisted with > > curl http://admi

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-02 Thread Ian Boston
Hi, That sounds excellent, well done. Next steps, test it with curl eg: curl -Ftestproperty=testvalue http://admin:admin@localhost:8080/cassandra/F/23423424 and then check that the value was persisted with curl http://admin:admin@localhost:8080/cassandra/F/23423424.json Then check update is go

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-02 Thread Dishara Wijewardana
Hi Ian, Thank you for the references. I just commited the changes. There I have completed the whole implementation of ModifyingResourceProvider interface for Cassandra Resource Provider (create, delete, commit , rollback etc) and wrote 3 test classes ( CassandraModifyResourceProvide**rAddTest, Cas

Re: [Cassandra Resource] Create Update Sling Resource

2013-08-30 Thread Ian Boston
Hi, Have a look at org.apache.sling.api.resource.ModifyingResourceProvider The CassandraResourceProvider now needs to implement ModifyingResourceProvider which extends ResourceProvider adding create update and delete methods. Don't assume assume that the resource you are given in these methods is

[Cassandra Resource] Create Update Sling Resource

2013-08-29 Thread Dishara Wijewardana
Hi, This is to track down $subject. Can you provide some guidance on how to do this. ResourceProvider is only for providing. Who is responsible for create and update resources ? Any reference to follow ? -- Thanks /Dishara