Re: Apache Cassandra backend for Sling: GSoC2013 Project

2013-09-30 Thread Dishara Wijewardana
Hi Ian and all, Got to know that I have successfully passed the GSoC 2013 which was a my dream. Thank you all for helping me through all the time and making it true . I also uploaded the code to Google. Thanks again, On Thu, Apr 25, 2013 at 12:59 AM, Dishara Wijewardana < ddwijew

Re: [GSoC 2013] TODOs Left

2013-09-25 Thread Dishara Wijewardana
23 September 2013 20:12, Dishara Wijewardana > wrote: > > Updated the JIRA with the source code archive. > > > > > > On Sun, Sep 22, 2013 at 11:50 PM, Dishara Wijewardana < > > ddwijeward...@gmail.com> wrote: > > > >> I have created the archi

[jira] [Updated] (SLING-2798) Apache Cassandra backend for Sling: GSoC2013 Project

2013-09-23 Thread Dishara Wijewardana (JIRA)
[ https://issues.apache.org/jira/browse/SLING-2798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dishara Wijewardana updated SLING-2798: --- Attachment: cassandra-backend-for-sling.tar.gz Attaching the source archive in order

Re: [GSoC 2013] TODOs Left

2013-09-23 Thread Dishara Wijewardana
Updated the JIRA with the source code archive. On Sun, Sep 22, 2013 at 11:50 PM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > I have created the archive from the cassandra google code including the > README.txt. When I visit the JIRA > https://issues.apache.org/jira/br

Re: [GSoC 2013] TODOs Left

2013-09-22 Thread Dishara Wijewardana
, Sep 19, 2013 at 2:00 PM, Ian Boston wrote: > Hi, > > On 19 September 2013 08:35, Bertrand Delacretaz > wrote: > > Hi, > > > > > > On Thu, Sep 19, 2013 at 6:21 AM, Dishara Wijewardana > > wrote: > >> ...I will also write a README like post to

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-22 Thread Dishara Wijewardana
, 2013 at 10:16 AM, Ian Boston wrote: > Hi, > You need to publish the comments before anyone else can see them, > thats why they say draft on them. > > I'll reply here, but if you could publish them it would keep the > thread going on code review. > > On 21 September 2

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-20 Thread Dishara Wijewardana
comment to > exand it to full size. > > Ian > > 1 > https://codereview.appspot.com/13396052/diff/1/main/cassandra/src/main/java/org/apache/sling/cassandra/resource/provider/security/AccessControlUtil.java > > On 19 September 2013 22:38, Dishara Wijewardana > wrote: > >

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-19 Thread Dishara Wijewardana
. On Thu, Sep 19, 2013 at 12:16 AM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > Hi Ian, > Thank you very much for the valuable feedbacks as always. I added some > comments to clarify couple of cases. Appreciate your response, so that I > can proceed with the improvem

[GSoC 2013] TODOs Left

2013-09-18 Thread Dishara Wijewardana
Hi Ian, Since the firm pencil down date is on 23rd Monday, I would like to know what are the TODOs left? Since per last mail thread, based on the code reviews I will finish them up. Please advice what else should I do before the pencil down date? - For all implementations I have written test cla

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-18 Thread Dishara Wijewardana
, so I did a code review at [1] > Ian > > 1 https://codereview.appspot.com/13396052/ > > > On 18 September 2013 04:13, Dishara Wijewardana > wrote: > > Hi Ian, > > Sorry for the delay of updating the thread. I had to to some > > experiment(writing dummy tests

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-17 Thread Dishara Wijewardana
cessGate will need compute access > control including parent ACLs. > > How you implement ACL crud is entirely upto you. I suggest you use > Hector directly to do this. > > This will make your CassandraResourceAccessGate completely separate > from you CassandraResourceProvider.

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-13 Thread Dishara Wijewardana
On Thu, Sep 12, 2013 at 8:37 PM, Ian Boston wrote: > Hi > > On 12 September 2013 13:24, Dishara Wijewardana > wrote: > > Hi Ian > > > > > > On Thu, Sep 12, 2013 at 1:50 PM, Ian Boston wrote: > > > >> Hi Dishara, > >> To make the Cassa

Re: [GSoC2013] Access Control for Cassandra ResourceProvider

2013-09-12 Thread Dishara Wijewardana
Hi Ian On Thu, Sep 12, 2013 at 1:50 PM, Ian Boston wrote: > Hi Dishara, > To make the Cassandra Resource Provider really useful I think we need > to add access control. I think the best way of doing this is to borrow > some concepts from Jackrabbit access control. > > The following algorithms,

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 w

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-11 Thread Dishara Wijewardana
t any possibility that another OS level > process started to hog resources in the latter part of your tests. > > The results do look comparatively flat all the way up 100M items in a > collection. > > Once we have done this we can move on to providing access control, on > items. &

[jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-09-11 Thread Dishara Wijewardana (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dishara Wijewardana updated SLING-3026: --- Attachment: results.zip This Zip contains latest test runs. The Difference is for

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 >

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-10 Thread Dishara Wijewardana
. > > Thanks > Ian > > On 10 September 2013 12:25, Dishara Wijewardana > wrote: > > Hi Ian, > > Those are newly added collections. > > > > > > On Tue, Sep 10, 2013 at 12:00 PM, Ian Boston wrote: > > > >> Hi Dishara, > >> Great, t

[jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-09-10 Thread Dishara Wijewardana (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dishara Wijewardana updated SLING-3026: --- Attachment: CUD_Latency_Report-11-09-13.zip Hi Here are the latest CUD results which

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 I

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 Cassandr

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-09 Thread Dishara Wijewardana
eds 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 >

[jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-09-09 Thread Dishara Wijewardana (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dishara Wijewardana updated SLING-3026: --- Attachment: CassandraUpdateLatencyReport.txt

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-09 Thread Dishara Wijewardana
eed to support > adaptTo(Node.class), which is a special case for Jcr. > > Best Regards > Ian > > On 9 September 2013 06:05, Dishara Wijewardana > wrote: > > Hi Ian, > > I debug the servlet from line to line and locate the NPE that causes this > > failure. The r

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-08 Thread Dishara Wijewardana
equest goes through the wrong path. Please advice. On Mon, Sep 9, 2013 at 8:45 AM, Dishara Wijewardana wrote: > 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 p

Re: What is the Servlet that serves HTTP POST request through SlingIntegrationTestClient#create

2013-09-08 Thread Dishara Wijewardana
n.impl.servlets.ReplicationServlet > 0 (2013-09-09 08:44:06) TIMER_END{0,ServletResolution} > URI=/bin/receive handled by > Servlet=com.day.cq.replication.impl.servlets.ReplicationServlet > > > > > -Original Message- > From: Dishara Wijeward

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-08 Thread Dishara Wijewardana
see(already post a mail to dev list). On Sun, Sep 8, 2013 at 5:10 AM, Dishara Wijewardana wrote: > 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 som

What is the Servlet that serves HTTP POST request through SlingIntegrationTestClient#create

2013-09-08 Thread Dishara Wijewardana
Hi Can anybody please tell me $subject? -- Thanks /Dishara

Re: Who calls Provider.create(resourceResolver, s, Map) when called SlingIntegrationTestClient.create() HTTP POST

2013-09-08 Thread Dishara Wijewardana
FYI, I also tried passing the map request headers map and still the map in bold Provider.create(resourceResolver, s, *Map) is Empty. On Mon, Sep 9, 2013 at 2:31 AM, Dishara Wijewardana wrote: > Hi all, > I am debugging with different combinations to make > SlingIntegrationTestClient.C

Who calls Provider.create(resourceResolver, s, Map) when called SlingIntegrationTestClient.create() HTTP POST

2013-09-08 Thread Dishara Wijewardana
Hi all, I am debugging with different combinations to make SlingIntegrationTestClient.Crete HTTP POST request to get working. May I know $subject please ? SlingIntegrationTestClient.create() we can pass client property map. May be my test fails (already posted the error in dev list) due to lack of

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-07 Thread Dishara Wijewardana
s > Ian > > 1 Create Update Delete (you've done read, we need stats for each of > these operations) > > > On 6 September 2013 04:31, Dishara Wijewardana > wrote: > > Hi Ian, > > Done. > > > > > > On Thu, Sep 5, 2013 at 10:53 AM, Ian Bo

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) t

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

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 i

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

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-03 Thread Dishara Wijewardana
gh CassandraResourceProvider API. No more manually column family creations and etc prior to add data. Ran the integration test again and it has not much difference than earlier and hence I did not post the results. It makes sense, because I did nothing related to improve the READ behavior.

Re: [Cassandra Resource] Create Update Sling Resource

2013-09-02 Thread Dishara Wijewardana
given in these methods > is a CassandraResource, it could be the parent of the Cassandra > resource tree. > > If you need an example to follow, have a look at [1]. > > Best Regards > Ian > > 1 > contrib/extensions/mongodb/src/main/java/org/apache/sling/mongodb/impl/MongoDBResourcePro

[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

Re: [jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-29 Thread Dishara Wijewardana
Hi Ian, On Thu, Aug 29, 2013 at 5:32 PM, Ian Boston wrote: > >> > >> I'll think you are clear to go onto the next phase if you are willing. > >> I think you have an option. Do write or do access control. Write will > >> be more exciting, access control will be more thought intensive. You > >> m

Re: [jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-29 Thread Dishara Wijewardana
o go with read with access control first. Writing I can easily in cooperate to a sling interface once realized the API. I am not sure the complexity of access controlling thing :-) . So better to start with it :-) > Ian > > On 29 August 2013 02:12, Dishara Wijewardana > wrote: > > H

Re: [jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-28 Thread Dishara Wijewardana
S = 600 Total Average Latency = 13 (ms) === On Thu, Aug 29, 2013 at 6:37 AM, Dishara Wijewardana (JIRA) wrote: > > [ > https://issues.apache.org/jira/browse/SLING-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpa

[jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-28 Thread Dishara Wijewardana (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dishara Wijewardana updated SLING-3026: --- Attachment: CassandraLatencyReport_V1.txt Here I am attaching the latest test

Re: [jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-26 Thread Dishara Wijewardana
Hi Ian, FYI The exercise data is the first 100 even numbers and test data is first 100 odd numbers. On Tue, Aug 27, 2013 at 11:12 AM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > Hi Ian, > I have updated the JIRA https://issues.apache.org/jira/browse/SLING-3026 with &g

Re: [jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-26 Thread Dishara Wijewardana
This may not be a perfect test but it tries to bring the server up > into a running state, eliminate first time startups and measure the > time taken to get an child first and second time. If that still shows > a completely flat scaling curve from 0 to 1M items, then that becom

[jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-26 Thread Dishara Wijewardana (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dishara Wijewardana updated SLING-3026: --- Attachment: CassandraLatencyReport.txt Please find the attached Latency report with

[jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-26 Thread Dishara Wijewardana (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dishara Wijewardana updated SLING-3026: --- Attachment: CassandraIntegrationTest.patch Here I am attaching the patch which has

Re: Read Sling resources remotely

2013-08-22 Thread Dishara Wijewardana
Hi all, I have created the JIRA [1] and attached the Apache Bench Mark results as requested. All the reports and graphs attached to JIRA. I did it in 2 modes. - All tests based on single server startup. - Each test based on a fresh server startup. [1] - https://issues.apache.org/jira/browse/SLING-

[jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-22 Thread Dishara Wijewardana (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dishara Wijewardana updated SLING-3026: --- Attachment: SLING_CASSANDRA_LATENCY_STATS_TWO_CHART_22-08-2013.png

[jira] [Comment Edited] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-22 Thread Dishara Wijewardana (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13748219#comment-13748219 ] Dishara Wijewardana edited comment on SLING-3026 at 8/23/13 2:2

[jira] [Commented] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-22 Thread Dishara Wijewardana (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13748219#comment-13748219 ] Dishara Wijewardana commented on SLING-3026: First round of report in b

[jira] [Updated] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-22 Thread Dishara Wijewardana (JIRA)
[ https://issues.apache.org/jira/browse/SLING-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dishara Wijewardana updated SLING-3026: --- Attachment: SLING_CASSANDRA_LATENCY_STATS_22-08-2013.txt Here I have attached the

[jira] [Created] (SLING-3026) Cassandra Resource Provider READ Latency Stats

2013-08-22 Thread Dishara Wijewardana (JIRA)
Dishara Wijewardana created SLING-3026: -- Summary: Cassandra Resource Provider READ Latency Stats Key: SLING-3026 URL: https://issues.apache.org/jira/browse/SLING-3026 Project: Sling

Re: 500 Error when obtaining a resource

2013-08-22 Thread Dishara Wijewardana
gt;fullpath: blogposts/2011/12/20/blogpost, >lastModified: 12312312312, >lastModifiedBy: ieb > } > > > > > Best Regards > Ian > > On 22 August 2013 04:36, Dishara Wijewardana > wrote: > > Hi Ian, > > Need a small clarification. May be you have ,misun

Re: 500 Error when obtaining a resource

2013-08-21 Thread Dishara Wijewardana
ra on request, it > should not get all the rows from Cassandra, so you should never have > all 1M records in memory. > > Ian > > > 1 > http://sling.apache.org/documentation/getting-started/discover-sling-in-15-minutes.html > > > On 20 August 2013 04:22, Dishara Wijewar

Re: [HTTP][Sling Resource] The webpage at http://localhost:8080/cassandra/pnode1/cnode1/ has resulted in too many redirects

2013-08-21 Thread Dishara Wijewardana
Hi Ian, Found it finally :-). You are quite right. I am missing the resolutionPathInfo property to send back and hence going to a wrong servlet. I set it to json and it gave me a json rendered page. Awesome !!. On Thu, Aug 22, 2013 at 7:57 AM, Dishara Wijewardana < ddwijeward...@gmail.

Re: [HTTP][Sling Resource] The webpage at http://localhost:8080/cassandra/pnode1/cnode1/ has resulted in too many redirects

2013-08-21 Thread Dishara Wijewardana
k carefully at what a standard JcrResource > looks like when you make a simular request. Its listed at [1]. > > Ian > > 1 http://localhost:8080/system/console/recentRequests > > > On 21 August 2013 08:59, Dishara Wijewardana > wrote: > > Hi > > Since I am doi

Re: [HTTP][Sling Resource] The webpage at http://localhost:8080/cassandra/pnode1/cnode1/ has resulted in too many redirects

2013-08-21 Thread Dishara Wijewardana
Hi Since I am doing something similar to PlanetResource, I ran the integration test of PlanetResource to verify it works in trunk. But that also got failed and started a thread on that also. On Wed, Aug 21, 2013 at 8:50 AM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > Hi,

[PlanetResource] Integration test failure in trunk/launchpad/

2013-08-21 Thread Dishara Wijewardana
Hi, I started the launchpad jar and ran mvn test -Dtest=PlanetsResourceProviderTest in trunk. And Integration tests fails with following. junit.framework.AssertionFailedError: Expected status 200 for http://localhost:8080/planets.tidy.-1.json (content= 404 No resource found No resource found (

Re: [HTTP][Sling Resource] The webpage at http://localhost:8080/cassandra/pnode1/cnode1/ has resulted in too many redirects

2013-08-21 Thread Dishara Wijewardana
at 8:50 AM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > Hi, > As per Ian's request I tried calling a resource URL ends with .json to get > a json rendered page. > There I just noticed that, the response I am getting was which I claimed > earlier a blank page, is

[HTTP][Sling Resource] The webpage at http://localhost:8080/cassandra/pnode1/cnode1/ has resulted in too many redirects

2013-08-20 Thread Dishara Wijewardana
Hi, As per Ian's request I tried calling a resource URL ends with .json to get a json rendered page. There I just noticed that, the response I am getting was which I claimed earlier a blank page, is not actually a blank page. Sorry for the inconvenience. In the browser there is a message as follow

Re: 500 Error when obtaining a resource

2013-08-19 Thread Dishara Wijewardana
ssertNotNull(vm.get("path")); > Assert.assertTrue(((String)vm.get("path")).length()>0); > Assert.assertNotNull(vm.get("created")); > Assert.assertTrue(((Long)vm.get("path")) < System.currentTimeMillis()); > > Best Regards > Ian

Re: 500 Error when obtaining a resource

2013-08-18 Thread Dishara Wijewardana
lected properties of the > Cassandra row. (ie the names and values of the columns). > > Ian > > On 17 August 2013 06:16, Dishara Wijewardana > wrote: > > Hi all, > > Seems the error I have posted is wrong. The above error is correct, > because > > I am

Re: Read Sling resources remotely

2013-08-17 Thread Dishara Wijewardana
4K/s which so it should take > about 10 minutes to populate with 1M items. (my figures are probably > very old). > > The reason for doing this is to get an rough idea of how this scales > and to provide a base line to see the impact of adding ACLs. > > Thanks, great work! > &g

Re: 500 Error when obtaining a resource

2013-08-16 Thread Dishara Wijewardana
wable=java.lang.UnsupportedOperationException} Using handler org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet 73 (2013-08-17 10:25:10) TIMER_END{73,Request Processing} Dumping SlingRequestProgressTracker Entries On Fri, Aug 16, 2013 at 11:58 AM, Bertrand Delacretaz < bdelacre...@apache.org> wrote

How to start sling-launchpad executable jar in debug mode

2013-08-15 Thread Dishara Wijewardana
Hi all, How can I do $subject? I have tried following but it doesn't wait on the given port for me to attach the source code to remote debug. - sudo java -jar org.apache.sling.launchpad-7-SNAPSHOT-standalone.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 - java -jar org.a

Re: Read Sling resources remotely

2013-08-15 Thread Dishara Wijewardana
HI, Is there a reason why I can resolve my cassandra paths at /content/cassandra/movies/foo/bar1/test/bbb.json but fails on http://localhost:8080/content/cassandra/movies/foo/bar1/test/bbb.json with a Internal Server Error (500) The requested URL /content/cassandra/movies/foo/bar1/test/bbb.json

500 Error when obtaining a resource

2013-08-15 Thread Dishara Wijewardana
Hi, Is there a reason why I can resolve my cassandra paths at http://localhost:8080/system/console/jcrresolver with the path "/content/cassandra/movies/foo/bar1/test/bbb.json" but fails on http://localhost:8080/content/cassandra/movies/foo/bar1/te

[Cassandra Resource Impl] Read/Write with Access Control

2013-08-13 Thread Dishara Wijewardana
Hi Ian, I am starting this thread to keep track on $subject. Since I verified that the current implementation works fine with the SNAPSHOT sling OSGI environment, I am starting to implement the rest of this project. To start with - READ with access controll. - then WRITE with access controll. Wou

Re: Read Sling resources remotely

2013-08-13 Thread Dishara Wijewardana
plements ResourceProvider { > > > This tells the ResourceResolver where in the resource tree the > CassandraResourceProvider should be registered. IIRC its required for > registration. If you look at the logs carefully you might find the > ResourceResolver reporting a problem with registration.

Re: Read Sling resources remotely

2013-08-11 Thread Dishara Wijewardana
e/jcrresolver to check > how URLs are resolved, or use a curl command. > > HTH > Ian > > On 11 August 2013 01:08, Dishara Wijewardana > wrote: > > On Sat, Aug 10, 2013 at 1:47 PM, Bertrand Delacretaz < > bdelacre...@apache.org > >> wrote: > > > >&

Re: Read Sling resources remotely

2013-08-11 Thread Dishara Wijewardana
On Mon, Aug 12, 2013 at 3:10 AM, Robert Munteanu wrote: > On Mon, Aug 12, 2013 at 12:33 AM, Dishara Wijewardana > wrote: > > On Mon, Aug 12, 2013 at 2:54 AM, Robert Munteanu wrote: > > > >> On Mon, Aug 12, 2013 at 12:13 AM, Dishara Wijewardana > >> wrote:

Re: Read Sling resources remotely

2013-08-11 Thread Dishara Wijewardana
On Mon, Aug 12, 2013 at 2:54 AM, Robert Munteanu wrote: > On Mon, Aug 12, 2013 at 12:13 AM, Dishara Wijewardana > wrote: > > Hi Ian, > > Thank you very much for this detailed steps. This was what I was looking > to > > gather from docs. > > > &

Re: Read Sling resources remotely

2013-08-11 Thread Dishara Wijewardana
On Mon, Aug 12, 2013 at 2:43 AM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > Hi Ian, > Thank you very much for this detailed steps. This was what I was looking > to gather from docs. > > In step1, on services, there is no CassandraResourceProvider. I searched >

Re: Read Sling resources remotely

2013-08-11 Thread Dishara Wijewardana
check > how URLs are resolved, or use a curl command. > > HTH > Ian > > On 11 August 2013 01:08, Dishara Wijewardana > wrote: > > On Sat, Aug 10, 2013 at 1:47 PM, Bertrand Delacretaz < > bdelacre...@apache.org > >> wrote: > > > >> Hi, > &

Re: Read Sling resources remotely

2013-08-10 Thread Dishara Wijewardana
On Sat, Aug 10, 2013 at 1:47 PM, Bertrand Delacretaz wrote: > Hi, > > On Sat, Aug 10, 2013 at 7:02 AM, Dishara Wijewardana > wrote: > > ...The integration tests > > calls to HTTP REST endpoints. So there should be a place that I should be > > writing somethin

Re: Read Sling resources remotely

2013-08-09 Thread Dishara Wijewardana
is something similar to PlanetsResourceProviderTest. On Fri, Aug 9, 2013 at 12:53 PM, Bertrand Delacretaz wrote: > Hi, > > On Fri, Aug 9, 2013 at 5:28 AM, Dishara Wijewardana > wrote: > > ...Can we access sling resources from a java client ? Is there any > > sample/links

Read Sling resources remotely

2013-08-08 Thread Dishara Wijewardana
Hi, Can we access sling resources from a java client ? Is there any sample/links to refer ? This is just to test the Cassandra impl on Sling. Now the Cassandra bundle is installed in sling server. There is a documentation on editing the JCR content through SlingPostServlet. Can I call this servlet

Re: [GSoC2013] Unsatisfied dependencies.

2013-08-08 Thread Dishara Wijewardana
On Fri, Aug 9, 2013 at 5:30 AM, Dishara Wijewardana wrote: > > > On Thu, Aug 8, 2013 at 11:29 PM, Ian Boston wrote: > >> I would add a >> !com.sun.java_cup.internal.* >> >> in the Import-Packages before the * >> >> ie >> !com.sun.java_cu

Re: [GSoC2013] Unsatisfied dependencies.

2013-08-08 Thread Dishara Wijewardana
Yes. That's why I did not remove it from import packages. But I will give it a try. > Ian > > On 8 August 2013 02:56, Dishara Wijewardana > wrote: > > On Wed, Aug 7, 2013 at 6:48 PM, Ian Boston wrote: > > > >> On 7 August 2013 12:49, Dishara Wijewardana >

Re: [Status Update] Apache Cassandra backend for Sling

2013-08-07 Thread Dishara Wijewardana
On Mon, Aug 5, 2013 at 5:50 AM, Dishara Wijewardana wrote: > > > On Tue, Jul 23, 2013 at 5:32 PM, Dishara Wijewardana < > ddwijeward...@gmail.com> wrote: > >> >> >> On Mon, Jul 22, 2013 at 1:56 PM, Ian Boston wrote: >> >>> Hi Dishara, >&g

Re: [GSoC2013] Unsatisfied dependencies.

2013-08-07 Thread Dishara Wijewardana
On Wed, Aug 7, 2013 at 6:48 PM, Ian Boston wrote: > On 7 August 2013 12:49, Dishara Wijewardana > wrote: > >> > >> @Dishara > >> > >> Will be better to just add Guava as a bundle rathe than embed it since > >> it uses threads to reap weak r

Re: [GSoC2013] Unsatisfied dependencies.

2013-08-07 Thread Dishara Wijewardana
On Tue, Aug 6, 2013 at 3:18 PM, Ian Boston wrote: > Hi, > > On 6 August 2013 10:24, Robert Munteanu wrote: > > On Tue, Aug 6, 2013 at 12:10 PM, Dishara Wijewardana > > wrote: > >> > >> com.google.common.base -- Cannot be resolved > >>

Re: [GSoC2013] Unsatisfied dependencies.

2013-08-06 Thread Dishara Wijewardana
e resolved org.apache.thrift.transport -- Cannot be resolved On Mon, Aug 5, 2013 at 1:01 PM, Ian Boston wrote: > Hi, > > Dishara Wijewardana wrote in thread titled > [Status Update] Apache Cassandra backend for Sling: > > Hi Ian > > > > I started Sling launchpad and Cassandra Ser

Re: [Status Update] Apache Cassandra backend for Sling

2013-08-04 Thread Dishara Wijewardana
On Tue, Jul 23, 2013 at 5:32 PM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > > > On Mon, Jul 22, 2013 at 1:56 PM, Ian Boston wrote: > >> Hi Dishara, >> >> The Unit test coverage sounds great. I will pull the code and review >> today. >>

Re: Build Failure in Trunk

2013-08-04 Thread Dishara Wijewardana
hpad-plugin > + > > > bundles/api > > > Hi Ian , Thank you very much for the work around. I have commented out the mentioned modules and build a sling launchpad SNAPSHOT jar. > > I am asking on the maven users list, but there is nothing yet. > >

Re: Build Failure in Trunk

2013-08-03 Thread Dishara Wijewardana
Hi Just noticed the same issue was posted before as well. http://stackoverflow.com/questions/9862153/build-sling-failure-failed-to-execute-goal-org-apache-maven-pluginsmaven-arche On Sun, Aug 4, 2013 at 3:23 AM, Dishara Wijewardana wrote: > Hi all, > an this [1] has some relation t

Re: Build Failure in Trunk

2013-08-03 Thread Dishara Wijewardana
Hi all, an this [1] has some relation to this problem. It is bit different but has the same error I am getting. And it is in unresolved state. [1] - https://jira.codehaus.org/browse/ARCHETYPE-436 On Sun, Aug 4, 2013 at 3:17 AM, Dishara Wijewardana wrote: > Hi Ian, > Yes, I was running a

Re: Build Failure in Trunk

2013-08-03 Thread Dishara Wijewardana
w. > > > > Best Regards > > Ian > > > > > > 1 > > > http://jarvana.com/jarvana/view/org/apache/maven/plugins/maven-archetype-plugin/2.2/maven-archetype-plugin-2.2-sources.jar!/org/apache/maven/archetype/mojos/IntegrationTestMojo.java?format=ok >

Re: Build Failure in Trunk

2013-08-02 Thread Dishara Wijewardana
OS name: "linux", version: "3.0.0-12-generic", arch: "amd64", family: "unix" > > should verify that. > > Best Regards > Ian > > > > > > On 1 August 2013 23:27, Dishara Wijewardana > wrote: > > > On Fri, Aug 2,

Re: Build Failure in Trunk

2013-08-01 Thread Dishara Wijewardana
On Fri, Aug 2, 2013 at 2:39 AM, Robert Munteanu wrote: > On Thu, Aug 1, 2013 at 3:49 AM, Dishara Wijewardana > wrote: > > On Wed, Jul 31, 2013 at 12:08 PM, Ian Boston wrote: > > > >> Hi, > >> Opps sorry, what I meant was to edit the mvn bash script to add th

Re: Build Failure in Trunk

2013-07-31 Thread Dishara Wijewardana
-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \ > "-Dmaven.home=${M2_HOME}" \ > ${CLASSWORLDS_LAUNCHER} -X "$@" > # and save > > > OK. I tried those steps. Please find the log file at http://pastebin.com/5EYirzQp. > That should add the -X to the inter

Re: Build Failure in Trunk

2013-07-30 Thread Dishara Wijewardana
y bash file and run maven. Same result. Am I doing something wrong here. What is this command export MAVEN_OPTS="$MAVEN_OPTS -X" means ? To run maven in debug mode ? > You could find the mvn command and have look in it. IIRC its a bash > script. > Ian > > > > > On

Re: How to evaluate Resource#isResourceType()

2013-07-30 Thread Dishara Wijewardana
s > ResourceResolver#isResourceType. > Got the point. Thanks you. > > Regards > Carsten > > > 2013/7/30 Dishara Wijewardana > > > Hi Ian, > > How to evaluate Resource#isResourceType(String s). I believe the String > we > > pass is A resource type

How to evaluate Resource#isResourceType()

2013-07-29 Thread Dishara Wijewardana
Hi Ian, How to evaluate Resource#isResourceType(String s). I believe the String we pass is A resource type. So obvious feeling is the equal comparison. But I believe as per JCR spec, that there is a hierarchy of node types. So do we need to consider that also in this case. If so, any APIs availabl

Re: "[GSoC2013] Code Review"

2013-07-27 Thread Dishara Wijewardana
On Sat, Jul 27, 2013 at 11:37 AM, Ian Boston wrote: > Hi Dishara, > You asked me offlist if I could to a code review. I think its better if I > do it on list so others in the community can tell me if I am being too > harsh or lenient. One of the benefits of being in a community; support for > bot

Re: Build Failure in Trunk

2013-07-27 Thread Dishara Wijewardana
-Xshare:auto use shared class data if possible (default) -Xshare:onrequire using shared class data, otherwise fail. The -X options are non-standard and subject to change without notice. > > > Best Regards > Ian > > > > > > > > > > > On 27

Re: Build Failure in Trunk

2013-07-26 Thread Dishara Wijewardana
pastebin.com/FBrDjJ6L > Thanks > Ian > > > On 26 July 2013 04:35, Dishara Wijewardana > wrote: > > > Hi all, > > I checked out the trunk code to a new location and removed my existing M2 > > repository and do a mvn clean install. Still fails in same place. So

Re: Build Failure in Trunk

2013-07-25 Thread Dishara Wijewardana
if this is local to me. On Fri, Jul 26, 2013 at 6:30 AM, Dishara Wijewardana < ddwijeward...@gmail.com> wrote: > Still getting the same error. > > 1. Command is mvn clean install -DskipTests. > 2. Please find the link [1] for the pastebin build log. > > [1] - http://past

Re: Build Failure in Trunk

2013-07-25 Thread Dishara Wijewardana
Still getting the same error. 1. Command is mvn clean install -DskipTests. 2. Please find the link [1] for the pastebin build log. [1] - http://pastebin.com/12x8F4UG On Thu, Jul 25, 2013 at 6:53 PM, Robert Munteanu wrote: > On Thu, Jul 25, 2013 at 3:04 PM, Dishara Wijewardana >

Re: Build Failure in Trunk

2013-07-25 Thread Dishara Wijewardana
from parent level. Still I am getting the same when I go inside and build. > > Carsten > > > 2013/7/25 Dishara Wijewardana > > > Hi all, > > Does any body could build the trunk in clean repo with/without tests ? > > > > On Thu, Jul 25, 2013

  1   2   >