Re: Multiple JCR Repositories in a single MikroKernel instance (?)

2012-03-23 Thread Chetan Mehrotra
to it. Chetan Mehrotra On Thu, Mar 22, 2012 at 11:13 PM, Angela Schreiber anch...@adobe.comwrote: hi tom i am not talking about multiple workspaces within a single jcr repository. i am talking about multiple jcr repositories within the same store each of which for example would have a 'default

Queries around UserManager implementation

2012-08-20 Thread Chetan Mehrotra
(/). - o.a.j.oak.spi.security.user.UserConstants - User and Group paths have to start with '/' Given its a wip I have not created issues for them. Let me know if issues should be created for them. Chetan Mehrotra

Issue while converting from Xpath to Sql2

2012-08-20 Thread Chetan Mehrotra
While trying to run Granite over Oak the User Admin UI was failing to load because of problem in executing an XPath query Initial Query (in JSON) [4] is passed to o.a.j.commons.jackrabbit.user.AuthorizableQueryManager which internally converts it into XPath using a builder pattern and generates

Re: Repository construction

2012-10-20 Thread Chetan Mehrotra
in o.a.j.oak.jcr.Jcr 3. SecurityProvider - Need to register SecurityProviderImpl backed by OSGi configuration with SR. Would it be fine now to add osgi related changes Chetan Mehrotra

Re: Repository construction

2012-10-22 Thread Chetan Mehrotra
Hi Angela, the security provider is IMO just a temporary solution in order to have a quick way to setup the system. there will for sure be major refactoring in terms of configuration, initial content, commit hooks, validation and so forth... i don't see to much benefit in putting a lot of

Re: [Broken] apache/jackrabbit-oak#246 (trunk - e4c93a2)

2012-11-20 Thread Chetan Mehrotra
This appears to be an intermittent issue where MicroKernal service gets disposed off while test is running. Would debug further and resolve it today Chetan Mehrotra On Mon, Nov 19, 2012 at 6:01 PM, Travis-CI notificati...@travis-ci.orgwrote: Build Update for apache/jackrabbit-oak

Tracing the calls made to Mongo

2013-02-19 Thread Chetan Mehrotra
Request : Id: 19 (1 ms) OP_QUERY, [NODES] { _id : { $gte : 2:/test/ , $lt : 3:/test/}} This might help someone to make some sense of type of calls being performed Chetan Mehrotra [1] https://github.com/chetanmeh/mongo-java-driver/compare/tracer

Re: [Broken] apache/jackrabbit-oak#765 (trunk - b2e0513)

2013-02-25 Thread Chetan Mehrotra
My mistake fixed the issue with r1449805 Chetan Mehrotra On Tue, Feb 26, 2013 at 12:10 AM, Travis-CI notificati...@travis-ci.orgwrote: Build Update for apache/jackrabbit-oak - Build: #765 Status: Broken Duration: 12 minutes and 2 seconds Commit

Re: buildbot failure in ASF Buildbot on oak-trunk

2013-06-17 Thread Chetan Mehrotra
] mvn clean install -PintegrationTesting Probably we should run the Oak build with '-U' (--update-snapshots) flag so that it forces maven to fetch snapshot dependencies on every build and not once per day. So that Oak build can pickup changes from Jackrabbit builds as early as possible? Chetan

Move MongoMK to Oak Core

2013-06-17 Thread Chetan Mehrotra
it was suggested to move Mongo MK to Oak Core. So should we move the codebase to Oak Core and change the package from o.a.j.mongomk to o.a.j.oak.plugins.mongomk Chetan Mehrotra [1] https://issues.apache.org/jira/browse/OAK-867 [2] https://issues.apache.org/jira/browse/OAK-861

Re: Move MongoMK to Oak Core

2013-06-18 Thread Chetan Mehrotra
Created OAK-875 to track this Chetan Mehrotra [1] https://issues.apache.org/jira/browse/OAK-875 On Tue, Jun 18, 2013 at 2:15 PM, Jukka Zitting jukka.zitt...@gmail.com wrote: Hi, On Tue, Jun 18, 2013 at 8:31 AM, Chetan Mehrotra chetan.mehro...@gmail.com wrote: Similar requirement was felt

Re: jackrabbit-oak build #1757: Broken

2013-06-27 Thread Chetan Mehrotra
Thanks Alex!! Missed that as the pedantic profile was not enabled on my side. Apparently the build passed on Apache Buildbot [1] but failed on Travis [2] as it has the pedantic profile enabled. Would remember to enable this profile before committing going forward Chetan Mehrotra [1] http

Re: svn commit: r1497784 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/MongoMK.java

2013-06-30 Thread Chetan Mehrotra
Thanks for catching the copy paste error Alex!!. Would be more careful while doing such copy paste changes in future. Chetan Mehrotra On Fri, Jun 28, 2013 at 7:36 PM, alexparvule...@apache.org wrote: Author: alexparvulescu Date: Fri Jun 28 14:06:45 2013 New Revision: 1497784 URL: http

Using DirectMemory as second level cache

2013-07-08 Thread Chetan Mehrotra
this as an optional feature in Oak. If user require they can enable L2 cache otherwise we only use the Guava Cache as L1 cache Thoughts? Chetan Mehrotra [1] http://directmemory.apache.org/ [2] https://code.google.com/p/kryo/ [3] https://github.com/chetanmeh/jackrabbit-oak/compare

Re: Using DirectMemory as second level cache

2013-07-09 Thread Chetan Mehrotra
I have created OAK-891 to track this. @Tommaso - Thanks for looking into this. I have couple of issues in current DirectMemory implementation. Would open JIRA and follow up there. Chetan Mehrotra On Tue, Jul 9, 2013 at 3:15 PM, Tommaso Teofili teof...@adobe.com wrote: On 08/lug/2013, at 12

Very large blobid with MongoMK

2013-07-15 Thread Chetan Mehrotra
curr = Object.bsonsize(obj); if(max curr) { max = curr; maxObj = obj; } }) print(max); printjson(maxObj); Chetan Mehrotra

Re: Very large blobid with MongoMK

2013-07-15 Thread Chetan Mehrotra
The blob id shouldn't be larger than a few KB at most (it can be configured). Yup thats what I was thinking after looking into the org.apache.jackrabbit.mk.blobs.AbstractBlobStore#convertBlobToId. Would have a closer look. Chetan Mehrotra On Mon, Jul 15, 2013 at 2:53 PM, Thomas Mueller muel

Re: Very large blobid with MongoMK

2013-07-15 Thread Chetan Mehrotra
the lucene index blocks are getting inlined. Should we tweak either of limits so that these blobs do not get inlined and instead saved separately otherwise I think this array would soon outgrow the 16 MB limit? Chetan Mehrotra On Mon, Jul 15, 2013 at 4:02 PM, Thomas Mueller muel...@adobe.com wrote: Hi

Re: Conflict handling causes spurious observation events

2013-07-23 Thread Chetan Mehrotra
The limitation would be on the set of concurrent sessions for which we want to keep track of local commit information for observation. How this would work in a cluster mode. If two nodes in a cluster perform commit with (base revision, head revision) [b1,h1] and [b1,h2] then how would

Re: Conflict handling causes spurious observation events

2013-07-23 Thread Chetan Mehrotra
The end result in either case is a sequence of events from b1 to h3. If this is fine (and something which cannot be avoided) then cannot we just make the NodeState comparable and avoid synchronizing the merge? As that still allows us to see an ordered flow of changes. Chetan Mehrotra On Tue

Re: Conflict handling causes spurious observation events

2013-07-23 Thread Chetan Mehrotra
does not perform a cluster level lock such a situation cannot be avoided. We can probably make it do that under some sort of serialized transaction mode which can be enabled as per user requirements. Chetan Mehrotra

Re: svn commit: r1505988 - in /jackrabbit/oak/trunk: oak-core/src/main/java/org/apache/jackrabbit/oak/core/ oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/ oak-core/src/main/java/org/apache/j

2013-07-23 Thread Chetan Mehrotra
toCommit = checkNotNull(hook).processCommit(base, head); +NodeState oldRoot = head; +head = toCommit; Chetan Mehrotra

Re: Login parameters

2013-07-29 Thread Chetan Mehrotra
on SimpleCredentials the setAttribute/getAttribute pair can be part of some interface which is part of Oak JCR API. Internally the login method checks if its SimpleCredentails or some credential which also implement the new interface and handle it accordingly. Chetan Mehrotra [1] http://sling.apache.org

Re: svn commit: r1508182 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java

2013-07-30 Thread Chetan Mehrotra
/interface as mentioned in #3 - Check for attribute as part of various known credential type Chetan Mehrotra On Tue, Jul 30, 2013 at 12:59 PM, Angela Schreiber anch...@adobe.com wrote: hi michael that's the kind of extensions i was referring to when proposing to use variant 3) for the read-only

Re: Oak documentation published to Oak web site

2013-08-01 Thread Chetan Mehrotra
Looks pretty neat!! Chetan Mehrotra On Thu, Aug 1, 2013 at 6:37 PM, Michael Dürig mdue...@apache.org wrote: Hi, The Oak documentation is now published on the Oak website: http://jackrabbit.apache.org/oak/docs/index.html The documentation lives inside oak-doc/src/site/markdown

Debugging CommotFailedException

2013-08-01 Thread Chetan Mehrotra
but not sure at what level and how to propogate the commit failed data. So how to debug CommitFailedException easily? Chetan Mehrotra [0] https://paste.apache.org/byc6 [1] Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakState0001: Unresolved conflicts

Re: Debugging CommotFailedException

2013-08-07 Thread Chetan Mehrotra
After discussing with Michael Durig created OAK-943 [1] and provided a patch to improve the message. [1] https://issues.apache.org/jira/browse/OAK-943 Chetan Mehrotra On Thu, Aug 1, 2013 at 7:28 PM, Chetan Mehrotra chetan.mehro...@gmail.com wrote: In one of the test scenario I am getting

Improving support for debugging Oak

2013-08-07 Thread Chetan Mehrotra
... Chetan Mehrotra [1] [1] https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java#L178

Re: svn commit: r1511233 - in /jackrabbit/oak/trunk/oak-core/src: main/java/org/apache/jackrabbit/oak/api/ main/java/org/apache/jackrabbit/oak/kernel/ main/java/org/apache/jackrabbit/oak/plugins/commi

2013-08-11 Thread Chetan Mehrotra
I'd rather not make this part of the Tree API. Shouldn't this better got into TreeUtil? I followed the convention as used in org.apache.jackrabbit.oak.api.PropertyState#GET_NAME. However I can move it to TreeUtil also. Chetan Mehrotra On Fri, Aug 9, 2013 at 7:20 PM, Michael Dürig mdue

Re: buildbot failure in ASF Buildbot on oak-trunk

2013-08-19 Thread Chetan Mehrotra
. Looks like an intermittent issue [1] http://ci.apache.org/builders/oak-trunk/builds/3078 [2] http://ci.apache.org/builders/oak-trunk/builds/3077 Chetan Mehrotra On Mon, Aug 19, 2013 at 6:49 PM, build...@apache.org wrote: The Buildbot has detected a new failure on builder oak-trunk while

Trouble with running single test method from RepositoryTest

2013-08-26 Thread Chetan Mehrotra
this issue. One workaround I found was to change the method name in Intellij test configuration to login[0] (run login against first microkernel) and then run Anyone else facing this issue ... any better workaround to use? Chetan Mehrotra [1] http://youtrack.jetbrains.com/issue/IDEA-65966

Re: Trouble with running single test method from RepositoryTest

2013-08-26 Thread Chetan Mehrotra
revert the annotation to Parameterized while running it in IDE!! [1] https://github.com/JetBrains/intellij-community/blob/master/plugins/junit_rt/src/com/intellij/junit4/JUnit4TestRunnerUtil.java#L141 Chetan Mehrotra On Mon, Aug 26, 2013 at 12:56 PM, Michael Dürig mdue...@apache.org wrote

Re: jackrabbit-oak build #2026: Broken

2013-08-26 Thread Chetan Mehrotra
is locked testVersionException(org.apache.jackrabbit.test.api.query.SaveTest): Node at /testroot/node1 is locked [1] http://ci.apache.org/builders/oak-trunk/builds/3102 [2] https://travis-ci.org/apache/jackrabbit-oak/builds/10617487 Chetan Mehrotra On Mon, Aug 26, 2013 at 5:28 PM, Travis CI ju

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

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

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

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

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

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

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

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: [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: 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: 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

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

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

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

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

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

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

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

Dependency on json-simple in oak-core

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

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

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

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

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

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

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: 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: 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 #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

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: [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

  1   2   3   4   5   6   7   >