Re: Embedding Groovy in oak-run for Oak Shell (OAK-1805)

2014-05-22 Thread Chetan Mehrotra
a new module. Chetan Mehrotra

Re: My repository is not indexing PDFs, what am I missing?

2014-05-21 Thread Chetan Mehrotra
and then it should work fine Chetan Mehrotra On Wed, May 21, 2014 at 8:58 PM, Bertrand Delacretaz bdelacre...@apache.org wrote: Hi, I'm upgrading the OakSlingRepositoryManager used for Sling tests to Oak 1.0, and it's not indexing PDFs anymore - it used to with oak 0.8. After uploading a text file

Re: How to activate a SecurityProvider

2014-05-20 Thread Chetan Mehrotra
On Tue, May 20, 2014 at 7:36 PM, Galo Gimenez galo.gime...@gmail.com wrote: I am running an old version of Felix, maybe that is the problem? Looks like you are using an old version of SCR. Try to run with more recent version of SCR. Chetan Mehrotra

Re: svn commit: r1587286 - in /jackrabbit/oak/trunk: oak-core/pom.xml oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java oak-parent/pom.xml

2014-05-19 Thread Chetan Mehrotra
For the record I have implemented a DataSource provider bundle [2] (based on above flow) as part of SLING-3574. That bundle can be used to configure a DataSource in OSGi env Chetan Mehrotra [1] https://issues.apache.org/jira/browse/SLING-3574 [2] https://github.com/chetanmeh/sling-datasource

Re: NodeStore and BlobStore configurations in OSGi

2014-05-19 Thread Chetan Mehrotra
Service Registry. If multiple BlobStore services are registered then you can possibly specify a specific one by configuring the 'blobStore.target' to the required OSGi service filter (DS 112.6 of OSGi Compedium) Chetan Mehrotra

Re: NodeStore and BlobStore configurations in OSGi

2014-05-19 Thread Chetan Mehrotra
specify a specific one by configuring the 'blobStore.target' to the required OSGi service filter (DS 112.6 of OSGi Compedium) Assuming same is true for NodeStore services. Did not get the query? btw I have update the docs at [1] (update should reflect on github in couple of hours) Chetan Mehrotra

Re: How to activate a SecurityProvider

2014-05-19 Thread Chetan Mehrotra
SecurityProvider should get registered. Do you have the Felix running with WebConsole. Whats the status of the 'org.apache.jackrabbit.oak.security.SecurityProviderImpl' Chetan Mehrotra On Sat, May 17, 2014 at 1:30 AM, Galo Gimenez galo.gime...@gmail.com wrote: Hello, I am setting up Oak

Lucene blob size different in trunk and 1.0 branch

2014-05-14 Thread Chetan Mehrotra
in 1.0 would cause upgrade issue. So should the change be reverted in trunk? Chetan Mehrotra [1] http://svn.apache.org/viewvc?view=revisionrevision=r1587430 [2] http://svn.apache.org/viewvc/jackrabbit/oak/branches/1.0/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene

Re: buildbot failure in ASF Buildbot on oak-trunk-win7

2014-05-13 Thread Chetan Mehrotra
) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Chetan Mehrotra On Tue, May 13, 2014 at 12:10 PM, build...@apache.org wrote: The Buildbot has detected a new failure on builder oak-trunk-win7 while building ASF Buildbot. Full details are available at: http://ci.apache.org/builders/oak-trunk-win7/builds/67

Re: [VOTE] Release Apache Jackrabbit Oak 1.0.0

2014-05-12 Thread Chetan Mehrotra
[X] +1 Release this package as Apache Jackrabbit Oak 1.0.0 All tests passed and All checks ok. Chetan Mehrotra On Mon, May 12, 2014 at 2:15 PM, Davide Giannella giannella.dav...@gmail.com wrote: [X] +1 Release this package as Apache Jackrabbit Oak 1.0.0 Davide

Re: svn commit: r1560611 - in /jackrabbit/oak/trunk: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/util/ oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/ oak-jcr/sr

2014-05-04 Thread Chetan Mehrotra
' Chetan Mehrotra

Adding ProviderType and ConsumerType annotation to interfaces in exported packages

2014-04-24 Thread Chetan Mehrotra
into the list and set the right type Chetan Mehrotra [1] https://github.com/osgi/design/raw/master/rfcs/rfc0197/rfc-0197-OSGiPackageTypeAnnotations.pdf [2] https://issues.apache.org/jira/browse/OAK-1741?focusedCommentId=13979465#comment-13979465

Oak CI notifications not comming

2014-04-24 Thread Chetan Mehrotra
Hi, I was checking the CI status for Oak trunk and it seems build are not getting built at [1] and [2]. Do we have to enable it somehow? Chetan Mehrotra [1] https://travis-ci.org/apache/jackrabbit-oak/builds [2] http://ci.apache.org/builders/oak-trunk/

Re: plugin.document not exported in OSGi bundle

2014-04-22 Thread Chetan Mehrotra
DocumentNodeStore against NodeStore interface Chetan Mehrotra [1] http://jackrabbit.apache.org/oak/docs/osgi_config.html#DocumentNodeStore [2] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java On Tue

Review currently exported package version for 1.0 release

2014-04-17 Thread Chetan Mehrotra
and ensure they are consistent from there on. Also would helpful to review the list once i.e. if the package export is required for e.g in oak-solr-osgi exports quite abit but are probably not required. Chetan Mehrotra [1] https://issues.apache.org/jira/browse/OAK-1741

Re: Using Lucene indexes for property queries

2014-04-14 Thread Chetan Mehrotra
be acceptable. This would enable scenarios where traversal would be too costly and Lucene can still be used to provide required results in a lot lesser time. Chetan Mehrotra On Mon, Apr 14, 2014 at 2:33 PM, Thomas Mueller muel...@adobe.com wrote: Hi, In theory, the Lucene index could be used

Re: svn commit: r1587286 - in /jackrabbit/oak/trunk: oak-core/pom.xml oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java oak-parent/pom.xml

2014-04-14 Thread Chetan Mehrotra
of META-INF/services/java.sql.Driver [1]. For such cases fragment bundles can be avoided by having #1 monitor for such drivers and register them programatically 3. DocumentNodeStoreService should only have a reference to DataSource and use that Chetan Mehrotra [1] http://docs.oracle.com/javase/7

Using Lucene indexes for property queries

2014-04-13 Thread Chetan Mehrotra
he wants to use depending on the usecase. Chetan Mehrotra

Re: jackrabbit-oak build #4073: Errored

2014-04-10 Thread Chetan Mehrotra
I'm sorry but your test run exceeded 50.0 minutes. Build failure is due to TimeOut Chetan Mehrotra On Thu, Apr 10, 2014 at 11:49 AM, Travis CI ju...@apache.org wrote: Build Update for apache/jackrabbit-oak - Build: #4073 Status: Errored Duration

Re: Slow full text query performance and Lucene Index handling in Oak

2014-04-09 Thread Chetan Mehrotra
much understanding of Lucene internal can someone review the approach taken and see if there are some major issues with it Chetan Mehrotra [1] https://issues.apache.org/jira/secure/attachment/12639366/OAK-1702-shared-indexer.patch [2] https://lucene.apache.org/core/3_6_0/api/all/org/apache/lucene

Re: Slow full text query performance and Lucene Index handling in Oak

2014-04-09 Thread Chetan Mehrotra
not sure if this a problem with the usecase taken. Or the Lucene Index cursor management should be improved as in many case the results would be multiple but the client code only makes use of initial few results Chetan Mehrotra [1] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-lucene/src/main

Re: Slow full text query performance and Lucene Index handling in Oak

2014-04-09 Thread Chetan Mehrotra
1 5 5 6 7 68 10038 Profiling the result shows that quite a bit of time goes in org.apache.lucene.codecs.compressing.LZ4.decompress() (40%). This I think is part of Lucene 4.x and not present in 3.x. Any idea if I can disable compression? Chetan

Re: Slow full text query performance and Lucene Index handling in Oak

2014-04-09 Thread Chetan Mehrotra
Would look further Chetan Mehrotra [1] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/FieldFactory.java#L44 On Wed, Apr 9, 2014 at 7:15 PM, Alex Parvulescu alex.parvule...@gmail.com wrote: Aside from the compression

Slow full text query performance and Lucene Index handling in Oak

2014-04-08 Thread Chetan Mehrotra
can be accomodated on each node I think it would be better if the index is access from file system Are the above concerns valid and should we relook into how we are using Lucene in Oak? Chetan Mehrotra [1] https://issues.apache.org/jira/browse/OAK-1702 [2] https://github.com/apache/jackrabbit-oak

Re: svn commit: r1577449 - in /jackrabbit/oak/trunk/oak-core/src: main/java/org/apache/jackrabbit/oak/plugins/segment/ main/java/org/apache/jackrabbit/oak/plugins/segment/file/ main/java/org/apache/ja

2014-04-02 Thread Chetan Mehrotra
from node data. Yes it adds to the complexity of backup but then such a feature is required then that cost has to be paid. Default setups currently do not use FileDataStore or BlobStore with SegmentNodeStore. So as per defaults original design is still honored. Chetan Mehrotra

Re: svn commit: r1583285 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/value/ValueImpl.java

2014-04-02 Thread Chetan Mehrotra
to add a separate method for that. But note that not all Blob implementations have a blobId like in BlobStoreBlob. For now there is no strong requirement for that. If need arises would follow up this way Chetan Mehrotra

Re: Question regarding missing _lastRev recovery - OAK-1295

2014-04-02 Thread Chetan Mehrotra
to check the head revision - cluster lease time = 1 min - This is the time after a cluster lease would be renewed. So we need to decide the time interval for Job for detecting recovery condition Chetan Mehrotra On Wed, Apr 2, 2014 at 4:31 PM, Amit Jain am...@ieee.org wrote: Hi, 1) a cluster node

Re: svn commit: r1577449 - in /jackrabbit/oak/trunk/oak-core/src: main/java/org/apache/jackrabbit/oak/plugins/segment/ main/java/org/apache/jackrabbit/oak/plugins/segment/file/ main/java/org/apache/ja

2014-04-02 Thread Chetan Mehrotra
currently is not read from NodeStore and in OSGi env is being provided by OSGi ConfigAdmin. And more other settings like Index are currently stored as content Chetan Mehrotra On Wed, Apr 2, 2014 at 3:49 PM, Michael Marth mma...@adobe.com wrote: On 02 Apr 2014, at 08:06, Jukka Zitting jukka.zitt

Re: jackrabbit-oak build #3994: Broken

2014-04-02 Thread Chetan Mehrotra
Test case failure on oak-solr Failed tests: testOffsetAndLimit(org.apache.jackrabbit.core.query.LimitAndOffsetTest): expected:1 but was:0 testOffsetAndLimitWithGetSize(org.apache.jackrabbit.core.query.LimitAndOffsetTest): expected:2 but was:0 Chetan Mehrotra On Wed, Apr 2, 2014 at 6:04 PM

Re: svn commit: r1583994 - in /jackrabbit/oak/trunk/oak-core/src: main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/OakFileDataStore.java test/java/org/apache/jackrabbit/oak/plugins/blob/data

2014-04-02 Thread Chetan Mehrotra
to distinguish between active used blobs regards Chetan Chetan Mehrotra

Re: svn commit: r1583325 - in /jackrabbit/oak/trunk: oak-auth-external/pom.xml oak-core/pom.xml oak-jcr/pom.xml oak-mk-perf/pom.xml oak-mk/pom.xml oak-run/pom.xml oak-upgrade/pom.xml

2014-03-31 Thread Chetan Mehrotra
Might be simpler to define the version in oak-parent Chetan Mehrotra On Mon, Mar 31, 2014 at 6:57 PM, resc...@apache.org wrote: Author: reschke Date: Mon Mar 31 13:27:46 2014 New Revision: 1583325 URL: http://svn.apache.org/r1583325 Log: use the latest H2 DB throughout Modified

Re: svn commit: r1583325 - in /jackrabbit/oak/trunk: oak-auth-external/pom.xml oak-core/pom.xml oak-jcr/pom.xml oak-mk-perf/pom.xml oak-mk/pom.xml oak-run/pom.xml oak-upgrade/pom.xml

2014-03-31 Thread Chetan Mehrotra
You can define the version in dependencyManagement section and that would be inherited by child projects. For e.g. there are entries for junit, easymock etc. In child project you just define the groupId and artifactId Chetan Mehrotra On Mon, Mar 31, 2014 at 7:22 PM, Julian Reschke julian.resc

Re: svn commit: r1583285 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/value/ValueImpl.java

2014-03-31 Thread Chetan Mehrotra
+1. I also missed getting a clean way to get blobId from Blob. So adding this method would be useful in other cases also Chetan Mehrotra On Tue, Apr 1, 2014 at 8:05 AM, Jukka Zitting jukka.zitt...@gmail.com wrote: Hi, On Mon, Mar 31, 2014 at 3:25 PM, Michael Dürig mdue...@apache.org wrote

Re: [DocumentNodeStore] Clarify behaviour for Commit.getModified

2014-03-28 Thread Chetan Mehrotra
I think the intention of the method is to return a value in seconds with a five second resolution. Makes sense. Change the logic to use seconds and also fixed method names/constant to reflect that Chetan Mehrotra On Fri, Mar 28, 2014 at 3:28 PM, Marcel Reutegger mreut...@adobe.com wrote: Hi

Re: jackrabbit-oak build #3922: Errored

2014-03-28 Thread Chetan Mehrotra
Travis says I'm sorry but your test run exceeded 50.0 minutes. One possible solution is to split up your test run. - Chetan Mehrotra On Fri, Mar 28, 2014 at 4:49 PM, Travis CI ju...@apache.org wrote: Build Update for apache/jackrabbit-oak

Remove SynchronizedDocumentStoreWrapper

2014-03-27 Thread Chetan Mehrotra
they be removed. Further can we implement other wrapper via proxies as it increases work if new methods are to be added to DocumentStore Chetan Mehrotra

Re: Remove SynchronizedDocumentStoreWrapper

2014-03-27 Thread Chetan Mehrotra
); } } } } Chetan Mehrotra

Re: Remove SynchronizedDocumentStoreWrapper

2014-03-27 Thread Chetan Mehrotra
On Thu, Mar 27, 2014 at 4:00 PM, Julian Reschke julian.resc...@gmx.de wrote: We can kill the one in rdb (I didn't see the other one when I added it). Would do Chetan Mehrotra

Re: AbstractBlobStoreTest

2014-03-27 Thread Chetan Mehrotra
On Thu, Mar 27, 2014 at 10:08 PM, Julian Reschke julian.resc...@gmx.de wrote: if there's a reason not to It might effect test related to GC as GC logic would clean more than expected set of blobs Chetan Mehrotra

[DocumentNodeStore] Clarify behaviour for Commit.getModified

2014-03-27 Thread Chetan Mehrotra
Hi, Currently Commit.getModified has following impl - public static long getModified(long timestamp) { // 5 second resolution return timestamp / 1000 / 5; } - The result when treated as timestamp cause the time to set to 0 i.e. 1970 I intend to fix this with (looking

Re: jackrabbit-oak build #3838: Broken

2014-03-26 Thread Chetan Mehrotra
in target folder Chetan Mehrotra On Tue, Mar 25, 2014 at 6:20 PM, Chetan Mehrotra chetan.mehro...@gmail.com wrote: On Tue, Mar 25, 2014 at 5:49 PM, Michael Dürig mdue...@apache.org wrote: CacheInvalidationIT Looking into it Chetan Mehrotra

Re: jackrabbit-oak build #3838: Broken

2014-03-26 Thread Chetan Mehrotra
Fixed the RDBDocumentStore to create file in target folder. However current approach would cause issue in test env. Would start a separate thread on that Chetan Mehrotra On Wed, Mar 26, 2014 at 12:52 PM, Chetan Mehrotra chetan.mehro...@gmail.com wrote: I fixed that issue yesterday but build

Re: Request for feedback: OSGi Configuration for Query Limits (OAK-1571)

2014-03-26 Thread Chetan Mehrotra
Oak instance, right? For OSGi case yes Chetan Mehrotra On Wed, Mar 26, 2014 at 2:23 PM, Thomas Mueller muel...@adobe.com wrote: Hi, I'm trying to make some query settings (limits on the number of nodes read) configurable via OSGi. So far, I have a patch of about 100 KB, and this is just

Re: jackrabbit-oak build #3838: Broken

2014-03-25 Thread Chetan Mehrotra
On Tue, Mar 25, 2014 at 5:49 PM, Michael Dürig mdue...@apache.org wrote: CacheInvalidationIT Looking into it Chetan Mehrotra

Re: jackrabbit-oak build #3809: Broken

2014-03-24 Thread Chetan Mehrotra
My fault. Looking into it Chetan Mehrotra On Mon, Mar 24, 2014 at 11:58 AM, Travis CI ju...@apache.org wrote: Build Update for apache/jackrabbit-oak - Build: #3809 Status: Broken Duration: 444 seconds Commit: afb6c5335b46067a3ea43ce69c987a46d9a3fd38

Re: friendly reminder about license headers

2014-03-20 Thread Chetan Mehrotra
Roger that! For Java file IDE takes care of them. Probably we can just exclude test/resources from rat plugin? Most of the missing headers are reported in that probably Chetan Mehrotra On Thu, Mar 20, 2014 at 2:50 PM, Alex Parvulescu alex.parvule...@gmail.com wrote: Yes boys and girls, files

Re: svn commit: r1578423 - in /jackrabbit/oak/trunk/oak-core: ./ src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/

2014-03-18 Thread Chetan Mehrotra
and handle all possible config options that comes with that Chetan Mehrotra On Mon, Mar 17, 2014 at 8:38 PM, resc...@apache.org wrote: Author: reschke Date: Mon Mar 17 15:08:55 2014 New Revision: 1578423 URL: http://svn.apache.org/r1578423 Log: OAK-1533 - add dbcp BasicDataSource (WIP) Added

Re: failing oak build

2014-03-18 Thread Chetan Mehrotra
Looking into it. Chetan Mehrotra On Tue, Mar 18, 2014 at 2:10 PM, Alex Parvulescu alex.parvule...@gmail.com wrote: Hi, The Oak build is failing Tests in error: testEmptyIdentifier(org.apache.jackrabbit.oak.plugins.document.blob.ds.MongoDataStoreBlobStoreTest): String index out of range: 2

Re: svn commit: r1578943 - in /jackrabbit/oak/trunk/oak-core/src: main/java/org/apache/jackrabbit/oak/ main/java/org/apache/jackrabbit/oak/plugins/backup/ main/java/org/apache/jackrabbit/oak/plugins/b

2014-03-18 Thread Chetan Mehrotra
I have updated the ~/.subversion/config file with those setting but I use git-svn for my local development. Do I need to tweak any git specific setting for EOL handling? Currently my autocrlf = input in ~/.gitconfig Chetan Mehrotra On Tue, Mar 18, 2014 at 8:38 PM, Jukka Zitting jukka.zitt

Using DBCursor in MongoDocumentStore

2014-03-18 Thread Chetan Mehrotra
. So should we pass an extra flag to not cache docs from such calls Chetan Mehrotra [1] http://api.mongodb.org/java/2.0/com/mongodb/DBCursor.html

Build currently failing in SegmentMicroKernelFixture

2014-03-14 Thread Chetan Mehrotra
with MemoryStore Chetan Mehrotra

Re: Using other JVM supported language like Groovy for testcase

2014-03-14 Thread Chetan Mehrotra
for a Java developer compared to other languages like Scala. Also for now I am proposing to use that in a small module like oak-pojosr as an experiment. After some time we can weigh the benefits and then decide if wider usage should be encouraged or not. Chetan Mehrotra

Review of patches related to BlobStore related work

2014-03-13 Thread Chetan Mehrotra
storage [3] To see full changes together (to get a better picture) you can have a look at Github fork [4] and the last 3 commits there. As these changes need to be part of next release (by 13 March), it would be helpful if it can be reviewed soon!. Chetan Mehrotra [1] https://issues.apache.org/jira

Using other JVM supported language like Groovy for testcase

2014-03-13 Thread Chetan Mehrotra
language for writing testcase only in oak-pojosr module? Chetan Mehrotra

Re: [DISCUSS] - OSGi deployment for Oak Lucene / Solr indexers

2014-03-12 Thread Chetan Mehrotra
. Would be easier for me to try some options Chetan Mehrotra On Wed, Mar 12, 2014 at 3:55 PM, Tommaso Teofili tommaso.teof...@gmail.com wrote: update on this: I've tried the oak-fulltext approach and I found two issues: 1. exported packages with semantic versioning from oak-lucene and oak-solr

Re: buildbot failure in ASF Buildbot on oak-trunk

2014-03-11 Thread Chetan Mehrotra
There were couple of different commits and the issues highlighted in build failure have been addressed in later CL. The testcase passed on local setup. Would wait for further reports Chetan Mehrotra On Tue, Mar 11, 2014 at 1:17 PM, build...@apache.org wrote: The Buildbot has detected a new

Re: svn commit: r1576236 - /jackrabbit/oak/trunk/oak-pojosr/pom.xml

2014-03-11 Thread Chetan Mehrotra
Thanks Julian! Missed that part while porting the project from github Chetan Mehrotra On Tue, Mar 11, 2014 at 2:32 PM, resc...@apache.org wrote: Author: reschke Date: Tue Mar 11 09:02:43 2014 New Revision: 1576236 URL: http://svn.apache.org/r1576236 Log: OAK-1522 - fix POM Modified

Re: [DISCUSS] - OSGi deployment for Oak Lucene / Solr indexers

2014-03-10 Thread Chetan Mehrotra
OSGi env without adding to size. As embedded jars (which are not inlined) would not be usable in non OSGi env a user would have to add such jars in addition to the one embedded thus adding to size Chetan Mehrotra On Mon, Mar 10, 2014 at 2:37 PM, Tommaso Teofili tommaso.teof...@gmail.com wrote

Re: Dependency on json-simple in oak-core

2014-03-10 Thread Chetan Mehrotra
Thanks Julian. Created OAK-1521 to track this Chetan Mehrotra On Mon, Mar 10, 2014 at 1:07 PM, Julian Reschke julian.resc...@gmx.de wrote: On 2014-03-10 05:06, Chetan Mehrotra wrote: Currently oak-core has a dependency on com.googlecode.json-simple:json-simple:1.1.1 jar. Looking at compile

Re: Using Oak with PojoSR - Make use of OSGi features in POJO env

2014-03-10 Thread Chetan Mehrotra
Created https://issues.apache.org/jira/browse/OAK-1522 to track this. Kindly review the patch Chetan Mehrotra On Wed, Mar 5, 2014 at 1:24 AM, Jukka Zitting jukka.zitt...@gmail.com wrote: Hi, On Tue, Mar 4, 2014 at 3:11 AM, Chetan Mehrotra chetan.mehro...@gmail.com wrote: 1. Configure

Re: Dependency on json-simple in oak-core

2014-03-10 Thread Chetan Mehrotra
from json.org as thats widely used in projects like Sling Felix WebConsole already. So we would not be adding a new dependency there Chetan Mehrotra On Mon, Mar 10, 2014 at 6:23 PM, Julian Reschke julian.resc...@gmx.de wrote: On 2014-03-10 10:59, Chetan Mehrotra wrote: Thanks Julian. Created

Queries related to various BlobStore implementations

2014-03-10 Thread Chetan Mehrotra
. Just for the record and to confirm we would be preferring S3DataStore over CloudBlobStore for now Q4. Should we remove some of the unused BlobStore impl like MongoGridFSBlobStore. They can be resurrected back if need is felt for them Chetan Mehrotra

Re: Dependency on json-simple in oak-core

2014-03-10 Thread Chetan Mehrotra
Looking at its widespread usage I think its correct and maintained. So +1 for json.org Chetan Mehrotra On Mon, Mar 10, 2014 at 6:47 PM, Julian Reschke julian.resc...@gmx.de wrote: On 2014-03-10 13:58, Chetan Mehrotra wrote: and org.apache.jackrabbit.oak.commons.json does not only seem

Using Oak Run with complex setup and configurations

2014-03-10 Thread Chetan Mehrotra
}, org.apache.jackrabbit.oak.security.user.UserConfigurationImpl: { usersPath: /home/users, /home/users: /home/groups } } } And on command line we pass on that file as one of the arguments java -jar oak-run-*.jar --config oak-config.json Chetan Mehrotra [1] https://github.com/apache/jackrabbit-oak/blob/trunk

Dependency on json-simple in oak-core

2014-03-09 Thread Chetan Mehrotra
on this library Chetan Mehrotra

Proposal for configuring Oak using PojoSR and not miss good old repository.xml for configuration!

2014-03-06 Thread Chetan Mehrotra
with the PojoServiceRegistry 3. Configuration is managed in a central place and can easily be edited 4. For more adventurous usage users can also enable the Felix WebConsole when deploying a Oak based application in Tomocat or even uses Felix Jetty bundle!. Most of the webconsole would work Thoughts? Chetan Mehrotra

Using Oak with PojoSR - Make use of OSGi features in POJO env

2014-03-04 Thread Chetan Mehrotra
be worthwhile to investigate further here and possibly provide a PojoSR based RespositoryFactory? Chetan Mehrotra [1] https://code.google.com/p/pojosr/ [2] https://github.com/chetanmeh/oak-pojosr

Re: buildbot failure in ASF Buildbot on oak-trunk-win7

2014-03-02 Thread Chetan Mehrotra
Build failed due to --- Failed tests: concurrentObservers(org.apache.jackrabbit.oak.spi.commit.BackgroundObserverTest) Tests run: 1579, Failures: 1, Errors: 0, Skipped: 70 --- This should not be related to my changes and looks like an intermittent issue. Chetan Mehrotra On Mon, Mar 3, 2014

Re: Efficient import of binary data into Oak

2014-02-18 Thread Chetan Mehrotra
of binary data and it is written keeping in mind the underlying DataStore being used such that it can use the most optimized way Chetan Mehrotra

Re: Efficient import of binary data into Oak

2014-02-18 Thread Chetan Mehrotra
On Tue, Feb 18, 2014 at 3:48 PM, Jukka Zitting jukka.zitt...@gmail.com wrote: Something like S3InputStream.getURL() should work just fine for that use case: That also would work with the caveat that in between layer do not decorate the InputStream in any form. Chetan Mehrotra

Efficient import of binary data into Oak

2014-02-17 Thread Chetan Mehrotra
enable the S3DataStore to transfer the content without streaming all content again [4] Any thoughts on the best way to enable users of Oak to create Binaries via other means (compared to current mode which only enables via InputStream) and enable the DataStores to make use of such binaries? Chetan

Re: Use LoginModuleProxy (was: Make Whiteboard accessible through ContentRepository)

2014-02-14 Thread Chetan Mehrotra
). otherwise you would need to introduce some kind of factory pid. Yup. For completeness and to cover all cases you can have some factory property (similar to service property in OSGi). And that can be passed to LoginModuleFactory as argument so that it can instantiate right LM impl Chetan Mehrotra

Re: Make Whiteboard accessible through ContentRepository

2014-02-13 Thread Chetan Mehrotra
is the sole user of JAAS system. Hence it works fine for Karaf/OSGi env But that might not work properly in App server env where app server itself uses jaas. So to avoid interfering in embedded mode callback should be preferred. Chetan Mehrotra

Re: Failure in compile trunk

2014-02-11 Thread Chetan Mehrotra
I checked the code and looks like classes from Felix JAAS are not being used as after removing the entry oak-core compiled successfully. Te entry is now removed Lets see if next build pass. Also i would start release of Felix Jaas module Chetan Mehrotra On Tue, Feb 11, 2014 at 2:18 PM, Michael

Re: Failure in compile trunk

2014-02-11 Thread Chetan Mehrotra
For now I have implemented a workaround with [1]. This should get us moving forward. This would be fixed with proper released version of JAAS bundle by end of this week once the release is approved in Felix project Chetan Mehrotra [1] http://svn.apache.org/r1567089 On Tue, Feb 11, 2014 at 5:21

Re: Make Whiteboard accessible through ContentRepository

2014-02-11 Thread Chetan Mehrotra
only). For OSGi case the LMF would be managed via DS and its dependencies provided via DS For non OSGi case host application would wire up the LMF with its dependencies (via setters) and then register them with the Oak Chetan Mehrotra [1] http://svn.apache.org/repos/asf/felix/trunk/jaas/src/main

Re: svn commit: r1561926 - /jackrabbit/oak/tags/jackrabbit-oak-core-0.15.2/pom.xml

2014-01-28 Thread Chetan Mehrotra
considering that pre 1.0 builds are to be considered as unstable wrt API Post 1.0 we take care to bump the version as per OSGi Sematic Version guidelines [1] Chetan Mehrotra [1] http://www.osgi.org/wiki/uploads/Links/SemanticVersioning.pdf

Re: svn commit: r1560611 - in /jackrabbit/oak/trunk: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/util/ oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/mongomk/ oak-jcr/sr

2014-01-23 Thread Chetan Mehrotra
database. -- So far we do not make use of credentials so database field can be used. But better to manage it in a separate way. Chetan Mehrotra [1] http://docs.mongodb.org/manual/reference/connection-string/

Re: Package deployment check for locking leading to large no of small branch commits

2013-12-18 Thread Chetan Mehrotra
The patch works great!! With patch applied I get similar timings as I got by disabling session refresh in LockOperation. Chetan Mehrotra On Wed, Dec 18, 2013 at 2:47 PM, Michael Dürig mdue...@apache.org wrote: On 18.12.13 10:12 , Marcel Reutegger wrote: We could rebase the branch

Re: Package deployment check for locking leading to large no of small branch commits

2013-12-18 Thread Chetan Mehrotra
Created OAK-1294 to track this Chetan Mehrotra [1] https://issues.apache.org/jira/browse/OAK-1294 On Wed, Dec 18, 2013 at 3:15 PM, Chetan Mehrotra chetan.mehro...@gmail.com wrote: The patch works great!! With patch applied I get similar timings as I got by disabling session refresh

Re: svn commit: r1547017 - in /jackrabbit/oak/trunk/oak-core/src: main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoNodeStore.java test/java/org/apache/jackrabbit/oak/plugins/mongomk/Background

2013-12-02 Thread Chetan Mehrotra
() +|| ids.size() = BACKGROUND_MULTI_UPDATE_LIMIT) { store.update(Collection.NODES, ids, updateOp); for (String id : ids) { unsavedLastRevisions.remove(Utils.getPathFromId(id)); Chetan Mehrotra [1] http://docs.guava

Re: Running background operation on a single node in a Oak cluster

2013-12-02 Thread Chetan Mehrotra
without a chance to clear the flag. Implemented such a logic with OAK-1246 Chetan Mehrotra

Running background operation on a single node in a Oak cluster

2013-11-20 Thread Chetan Mehrotra
would let the owning system provide this support by providing right implementation of the WhiteBoard Chetan Mehrotra [1] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/whiteboard/WhiteboardUtils.java#L31 [2] https://issues.apache.org/jira

Re: Segment Store and unbounded instances of MappedByteBuffer causing high RAM usage

2013-11-19 Thread Chetan Mehrotra
am not sure. I would keep an eye on this and if such a problem is again reported to me would try to collect more data and try to come up with a test for that. Chetan Mehrotra

Segment Store and unbounded instances of MappedByteBuffer causing high RAM usage

2013-11-18 Thread Chetan Mehrotra
? If any other data needs to be collected to determine the problem cause further then let me know? Chetan Mehrotra [1] http://msdn.microsoft.com/en-us/library/windows/desktop/cc441804(v=vs.85).aspx

Re: Strategies around storing blobs in Mongo

2013-11-07 Thread Chetan Mehrotra
obtained there does not appear to be much change if collections are managed in same database or different. So for now this is nothing to worry about. On a side note - No of reads and writes performed drop considerably when accessing a remote Mongo server. See results at [1] for more details Chetan

Re: Strategies around storing blobs in Mongo

2013-10-30 Thread Chetan Mehrotra
duration. So at minimum we should be avoiding that. Chetan Mehrotra On Wed, Oct 30, 2013 at 2:40 PM, Ian Boston i...@tfd.co.uk wrote: On 30 October 2013 07:55, Thomas Mueller muel...@adobe.com wrote: Hi, as Mongo maintains a global exclusive write locks on a per database level I think

Re: Strategies around storing blobs in Mongo

2013-10-30 Thread Chetan Mehrotra
garbage collection. Probably we can make a shadow node for the binary in the blob collection and keep the binary content within the DataStore itself. Stuff like Garbage collection would be performed on the Shadow node and logic would use results from that to perform actual deletions. Chetan Mehrotra

Re: [MongoMK] flag document with children

2013-10-25 Thread Chetan Mehrotra
Mehrotra On Thu, Oct 24, 2013 at 3:23 PM, Chetan Mehrotra chetan.mehro...@gmail.com wrote: I am trying to prototype an approach. Would come up with a patch for this soon. So far I was going with the reverse approach whereby when I fetch a node I retrieve some extra child rows [1] in same call

Reduce number of calls from Oak to Mongo DB on restarts

2013-10-25 Thread Chetan Mehrotra
estimate of childCount and eagerly fetch child node if number is small. We can possible make use of primaryType of node to make a better guess Thoughts? Chetan Mehrotra [1] http://www.mapdb.org/

Re: [MongoMK] flag document with children

2013-10-24 Thread Chetan Mehrotra
of writes it would be better to perform extra update call. I would try to come up with a patch for this regards Chetan [1] by adding an or clause to fetch node with id say ^2:/foo/.* to fetch child node for a parent with id 1:/foo. Chetan Mehrotra On Thu, Oct 24, 2013 at 3:08 PM, Thomas Mueller muel

Re: Oak JCR Observation scalability aspects and concerns

2013-10-22 Thread Chetan Mehrotra
for *latest* revision. This is just an observation and I currently do not have any numbers which indicate that this would cause significant performance issue and further such things are hard to measure. Chetan Mehrotra

Re: Oak JCR Observation scalability aspects and concerns

2013-10-22 Thread Chetan Mehrotra
they can be easily moved to Sling OSGi events Chetan Mehrotra [1] https://gist.github.com/chetanmeh/7081328/raw/listeners-list-filtered.txt

Oak JCR Observation scalability aspects and concerns

2013-10-21 Thread Chetan Mehrotra
design to confirm is this a problem at all :) If I missed on any part kindly add it to the discussion. regards Chetan [0] Participants - Michael Marth, Thomas Mueller, Marcel Reutegger, Michael Duerig, Carsten Ziegeler, Chetan Mehrotra [1] https://gist.github.com/chetanmeh/7081328 [2] https

IndexEditor and Commit Failure

2013-10-16 Thread Chetan Mehrotra
* a proper commit has been done so the changes done to index state as part of failed commit would overwrite the changes done as part of successful commit. Should not the IndexEditor work as part of PostCommitHook so that they always work on proper committed content? Chetan Mehrotra

Re: IndexEditor and Commit Failure

2013-10-16 Thread Chetan Mehrotra
The lucene index is asynchronous Okie I missed that part completely i.e. OAK-763. Yup with that used for such indexers this problem would not be observed. Thanks for the pointer Alex!! Chetan Mehrotra

Full text indexing with Solr

2013-09-24 Thread Chetan Mehrotra
Hi, When Oak uses Solr then do we send the complete binary to Solr for full text indexing or we extract the content on Oak side and send the extracted content. And if send the complete binary content do we send it inline or it is first uploaded to Solr and reference to that is passed? Chetan

NodeType index returns cost as zero when count is zero

2013-09-23 Thread Chetan Mehrotra
)) and (isdescendantnode([a], [/content/dam])) */ Any pointers? Chetan Mehrotra [1] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/PropertyIndexLookup.java#L110

Re: Providing details with CommitFailedException and security considerations

2013-09-12 Thread Chetan Mehrotra
does not have access to the actual session. If the information is somehow available via logs it is far more accessible. So would turn it to a debug level log. regards Chetan Chetan Mehrotra On Thu, Sep 12, 2013 at 1:01 PM, Marcel Reutegger mreut...@adobe.com wrote: Hi, I would turn the log

Exception thrown in Item.save

2013-09-10 Thread Chetan Mehrotra
. If as a user I see such issue then what should I change ... or what I am doing which is causing this issue [1] https://paste.apache.org/mAL7 Chetan Mehrotra

<    1   2   3   4   5   6   7   >