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

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

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

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

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

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

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

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

[jira] [Commented] (OAK-256) JAAS Authentication failing in OSGi env due to classloading issue

2012-09-04 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13447863#comment-13447863 ] Chetan Mehrotra commented on OAK-256: - As noted in previous comment I tried to use

[jira] [Commented] (OAK-28) Query implementation

2012-08-31 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13445716#comment-13445716 ] Chetan Mehrotra commented on OAK-28: A minor fix is required in {{OsgiIndexProvider

[jira] [Commented] (OAK-28) Query implementation

2012-08-31 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13445740#comment-13445740 ] Chetan Mehrotra commented on OAK-28: Another change required in Indexer. The flushBuffer

[jira] [Comment Edited] (OAK-50) Implement User Management

2012-08-30 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-50?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13444992#comment-13444992 ] Chetan Mehrotra edited comment on OAK-50 at 8/31/12 1:57 AM

[jira] [Created] (OAK-267) Repository fails to start with - cannot branch off a private branch

2012-08-21 Thread Chetan Mehrotra (JIRA)
Chetan Mehrotra created OAK-267: --- Summary: Repository fails to start with - cannot branch off a private branch Key: OAK-267 URL: https://issues.apache.org/jira/browse/OAK-267 Project: Jackrabbit Oak

[jira] [Created] (OAK-268) XPathQueryEvaluator generates incorrect XPath query

2012-08-21 Thread Chetan Mehrotra (JIRA)
Chetan Mehrotra created OAK-268: --- Summary: XPathQueryEvaluator generates incorrect XPath query Key: OAK-268 URL: https://issues.apache.org/jira/browse/OAK-268 Project: Jackrabbit Oak Issue

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

[jira] [Created] (OAK-257) NPE in o.a.j.oak.security.privilege.PrivilegeDefinitionImpl constructor

2012-08-20 Thread Chetan Mehrotra (JIRA)
Chetan Mehrotra created OAK-257: --- Summary: NPE in o.a.j.oak.security.privilege.PrivilegeDefinitionImpl constructor Key: OAK-257 URL: https://issues.apache.org/jira/browse/OAK-257 Project: Jackrabbit

[jira] [Updated] (OAK-257) NPE in o.a.j.oak.security.privilege.PrivilegeDefinitionImpl constructor

2012-08-20 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chetan Mehrotra updated OAK-257: Attachment: OAK-257.patch NPE in o.a.j.oak.security.privilege.PrivilegeDefinitionImpl

[jira] [Updated] (OAK-258) Dummy implementation for session scoped locks

2012-08-20 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chetan Mehrotra updated OAK-258: Priority: Minor (was: Major) Dummy implementation for session scoped locks

[jira] [Updated] (OAK-258) Dummy implementation for session scoped locks

2012-08-20 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chetan Mehrotra updated OAK-258: Attachment: OAK-258.patch Possible dummy implementation for session scoped lock

[jira] [Updated] (OAK-259) Issues in o.a.j.oak.security.user.UserProviderImpl

2012-08-20 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chetan Mehrotra updated OAK-259: Attachment: OAK-259.patch Issues in o.a.j.oak.security.user.UserProviderImpl

[jira] [Created] (OAK-259) Issues in o.a.j.oak.security.user.UserProviderImpl

2012-08-20 Thread Chetan Mehrotra (JIRA)
Chetan Mehrotra created OAK-259: --- Summary: Issues in o.a.j.oak.security.user.UserProviderImpl Key: OAK-259 URL: https://issues.apache.org/jira/browse/OAK-259 Project: Jackrabbit Oak Issue Type

[jira] [Updated] (OAK-258) Dummy implementation for session scoped locks

2012-08-20 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chetan Mehrotra updated OAK-258: Attachment: (was: OAK-258.patch) Dummy implementation for session scoped locks

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

[jira] [Created] (OAK-256) JAAS Authentication failing in OSGi env due to classloading issue

2012-08-19 Thread Chetan Mehrotra (JIRA)
Chetan Mehrotra created OAK-256: --- Summary: JAAS Authentication failing in OSGi env due to classloading issue Key: OAK-256 URL: https://issues.apache.org/jira/browse/OAK-256 Project: Jackrabbit Oak

[jira] [Updated] (OAK-256) JAAS Authentication failing in OSGi env due to classloading issue

2012-08-19 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chetan Mehrotra updated OAK-256: Attachment: OAK-256-tccl-switch.patch Patch to switch TCCL while creating LoginContext. Note

[jira] [Commented] (OAK-216) Occasional org.apache.jackrabbit.mk.store.NotFoundExceptions

2012-08-19 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13437653#comment-13437653 ] Chetan Mehrotra commented on OAK-216: - Got a similar exception while running Sling

[jira] [Created] (OAK-249) Add support for auto created properties

2012-08-16 Thread Chetan Mehrotra (JIRA)
Chetan Mehrotra created OAK-249: --- Summary: Add support for auto created properties Key: OAK-249 URL: https://issues.apache.org/jira/browse/OAK-249 Project: Jackrabbit Oak Issue Type: Bug

[jira] [Created] (OAK-246) MicroKernelService should set metatype to true to easier configuration

2012-08-15 Thread Chetan Mehrotra (JIRA)
Chetan Mehrotra created OAK-246: --- Summary: MicroKernelService should set metatype to true to easier configuration Key: OAK-246 URL: https://issues.apache.org/jira/browse/OAK-246 Project: Jackrabbit Oak

[jira] [Updated] (OAK-246) MicroKernelService should set metatype to true to easier configuration

2012-08-15 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chetan Mehrotra updated OAK-246: Attachment: OAK-246-enable-metatype.patch Patch for adding required metatype.properties and other

[jira] [Commented] (OAK-245) Add import for org.h2 in oak-mk bundle

2012-08-15 Thread Chetan Mehrotra (JIRA)
[ https://issues.apache.org/jira/browse/OAK-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13435128#comment-13435128 ] Chetan Mehrotra commented on OAK-245: - As H2 persistence is anyway dependent on H2 API

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

<    2   3   4   5   6   7