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

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

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 around

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-10 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

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 i...@tfd.co.uk 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

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 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 what

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

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-09 Thread Dishara Wijewardana
On Mon, Sep 9, 2013 at 2:09 PM, Ian Boston i...@tfd.co.uk 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

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 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. I

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

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

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

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

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 i...@tfd.co.uk 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

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-04 Thread Ian Boston
On Wednesday, September 4, 2013, Dishara Wijewardana wrote: On Tue, Sep 3, 2013 at 12:23 PM, Ian Boston i...@tfd.co.uk javascript:; wrote: Hi, That sounds excellent, well done. Next steps, test it with curl eg: curl -Ftestproperty=testvalue

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-04 Thread Dishara Wijewardana
On Wed, Sep 4, 2013 at 12:00 PM, Ian Boston i...@tfd.co.uk wrote: On Wednesday, September 4, 2013, Dishara Wijewardana wrote: On Tue, Sep 3, 2013 at 12:23 PM, Ian Boston i...@tfd.co.ukjavascript:; wrote: Hi, That sounds excellent, well done. Next steps, test it with curl

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-04 Thread Ian Boston
On 4 September 2013 12:20, Dishara Wijewardana ddwijeward...@gmail.com wrote: snip 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

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 i...@tfd.co.uk wrote: On 4 September 2013 12:20, Dishara Wijewardana ddwijeward...@gmail.com wrote: snip 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

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-04 Thread Ian Boston
On 4 September 2013 13:42, Dishara Wijewardana ddwijeward...@gmail.com wrote: HI Ian, On Wed, Sep 4, 2013 at 4:00 PM, Ian Boston i...@tfd.co.uk wrote: On 4 September 2013 12:20, Dishara Wijewardana ddwijeward...@gmail.com wrote: snip How long does it take to add, update and delete, 100

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 i...@tfd.co.uk wrote: On 4 September 2013 13:42, Dishara Wijewardana ddwijeward...@gmail.com wrote: HI Ian,

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, Ian

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-03 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

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-03 Thread Dishara Wijewardana
On Tue, Sep 3, 2013 at 12:23 PM, Ian Boston i...@tfd.co.uk 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

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,

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

[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