Re: Directing Sling job logging output to separate files?

2017-09-17 Thread Chetan Mehrotra
; sifting appender are not also logged to error.log), what is the best way to > to it? Register the filter as OSGi service with appenders="*" [1] Chetan Mehrotra [1] https://sling.apache.org/documentation/development/logging.html#filters-as-osgi-services On Fri, Sep 15, 2017 a

Re: Directing Sling job logging output to separate files?

2017-09-14 Thread Chetan Mehrotra
While providing a custom logback.xml do remember to add Sling specific handlers [1]. Otherwise OSGi integration of logging config would not work as expected Chetan Mehrotra [1] https://sling.apache.org/documentation/development/logging.html#external-config-file On Thu, Sep 14, 2017 at 6:45 AM

Re: Sling w/ oak w/ RDBDocumentStore in production

2017-05-22 Thread Chetan Mehrotra
things to avoid using the RDBDocumentStore? No such list as of now. However do ensure that binaries are not stored in Database and you make use of any external DataStore Chetan Mehrotra

Re: Not-sticky sessions with Sling?

2017-01-18 Thread Chetan Mehrotra
nt to that browser This state can be used to determine if server is safe to be taken out of the cluster or not. This is just a rough thought experiment which may or may not work and would require broader discussion! Chetan Mehrotra [1] http://www.allthingsdistributed.com/2008/12/eventually_consistent.html

Re: Not-sticky sessions with Sling?

2017-01-16 Thread Chetan Mehrotra
ing for not always hitting the latest data? Also... Is there any way > to force all reads to read the most recent revision, perhaps through some > configuration? Thats a question best suited for discussion on oak-dev mailing list (oak-...@jackrabbit.apache.org) Chetan Mehrotra

Re: Not-sticky sessions with Sling?

2017-01-15 Thread Chetan Mehrotra
based on timestamp. Now each cluster node also has a "head" revision. So any read call on that cluster node would only see those values whose revision are <= '"head" revision. This head revision is updated periodically via background read. Due to this snapshot isolation mo

Re: Not-sticky sessions with Sling?

2017-01-12 Thread Chetan Mehrotra
ould succeed and other would fail with a conflict. Some details are provided at [1] Chetan Mehrotra [1] https://jackrabbit.apache.org/oak/docs/architecture/transactional-model.html

Re: Not-sticky sessions with Sling?

2017-01-11 Thread Chetan Mehrotra
be required Chetan Mehrotra On Thu, Jan 12, 2017 at 7:34 AM, lancedolan <lance.do...@gmail.com> wrote: > The only example code I can find to authenticate to Sling will use the JEE > servlet container's "j_security_check" which then stores the authenticated > session in

Re: Retrieving content length for file node without retrieving object from S3 backend?

2016-10-07 Thread Chetan Mehrotra
Hi John, This issue is being addressed as part of OAK-4837. With that binary should not get downloaded for just getting the metadata Chetan Mehrotra On Fri, Oct 7, 2016 at 3:00 AM, John Logan <john.lo...@texture.com> wrote: > I forgot, the other Oak modules are at 1.5.7 al

Re: Change in log level removes appenders attached to async appender

2016-06-03 Thread Chetan Mehrotra
Thanks for the details. Would try to have a look at the issue soon Chetan Mehrotra On Thu, Jun 2, 2016 at 4:17 PM, piyush goyal <coolpiyus...@gmail.com> wrote: > Hi Chetan, > > Thanks for the response. I tried using the work around you referred to. > Eating up stop() call to d

Re: Change in log level removes appenders attached to async appender

2016-06-01 Thread Chetan Mehrotra
- You can get that via casting org.slf4j.LoggerFactory.getILoggerFactory() 3. Then onReset you start the appender again Or you eat out the stop call and stop it upon your component deactivation! Chetan Mehrotra [1] http://logback.qos.ch/apidocs/ch/qos/logback/classic/spi/LoggerContextListener.html On Wed, Jun 1,

[ANN] Apache Sling Log Tracer version 1.0.0 Released

2016-04-25 Thread Chetan Mehrotra
The Apache Sling team is pleased to announce the release of Apache Sling Log Tracer version 1.0.0 Apache Sling is a web framework that uses a Java Content Repository, such as Apache Jackrabbit, to store and manage content. Sling applications use either scripts or Java servlets, selected based on

Re: Out of memory during query

2016-03-28 Thread Chetan Mehrotra
ump to see what all is being held up? Chetan Mehrotra On Sat, Mar 26, 2016 at 2:47 AM, Jason Bailey <jason.bai...@sas.com> wrote: > I don't think you'll find that specific answer on this list. > > From a practical point of view. I had to create a service that provided a > re

Re: How to reindex lucene

2016-01-06 Thread Chetan Mehrotra
sily. btw is it on SegmentMK or Mongo? And whats the Oak version in use here? Chetan Mehrotra

Re: How to reindex lucene

2016-01-06 Thread Chetan Mehrotra
Thanks Julian for jumping in! OAK-3504 is different. So far we have not seen such corruption reported on Segment @Roy - Would be helpful if you can get a support case opened so that we can get handle to repository content (if possible) which would allow us to investigate better Chetan Mehrotra

Re: Sling retrieving out-of-date data

2015-12-02 Thread Chetan Mehrotra
vEx based remoting [1]. I believe that should work Chetan Mehrotra [1] http://wiki.apache.org/jackrabbit/RemoteAccess#DavEx

Re: Sling retrieving out-of-date data

2015-12-02 Thread Chetan Mehrotra
parentPath); Node child = parent.addNode(childName, "sling:Folder"); session.save(); session.logout(); store.dispose(); } It technically creates a new Oak instances and thus you have a cluster! Had he connected to Sling using Remoti

Re: Sling retrieving out-of-date data

2015-12-02 Thread Chetan Mehrotra
mark. Would try to find some time and update them Chetan Mehrotra

Re: Sling retrieving out-of-date data

2015-12-01 Thread Chetan Mehrotra
not using a cluster. You were connecting to the JR running within Sling using RMI. So it was a single node setup. If you use RMI now also and connect to same Sling node then it would work as expected. Chetan Mehrotra [1] http://jackrabbit.apache.org/oak/docs/architecture/nodestate.html

Re: Remotely configuring a bundle

2015-10-01 Thread Chetan Mehrotra
On Wed, Sep 30, 2015 at 8:48 PM, Roll, Kevin <kevin-r...@idexx.com> wrote: > Is this documented anywhere? Its partially documented at http://felix.apache.org/documentation/subprojects/apache-felix-web-console/web-console-restful-api.html#configuration-admin-plugin Chetan Mehrotra

Re: quick way to see all service user mappings?

2015-08-06 Thread Chetan Mehrotra
Try looking to /system/console/status-Configurations which dumps all the configs on one page Chetan Mehrotra On Thu, Aug 6, 2015 at 4:02 PM, Nicolas Peltier npelt...@adobe.com wrote: Hi, right now when i want to see which user is tied to such service for monitoring purpose, i need to go

Re: Logging relative to a specific path

2014-11-29 Thread Chetan Mehrotra
sling.log.root = ${sling.home} +1. This would also allows using Sling Logging in non Sling Container easily Chetan Mehrotra On Fri, Nov 28, 2014 at 7:33 PM, Felix Meschberger fmesc...@adobe.com wrote: Hi How about a sling.log.root property, which we define as sling.log.root = ${sling.home

Re: Extending default PostOperations

2014-03-25 Thread Chetan Mehrotra
Any feedback on the proposed approach below? Chetan Mehrotra On Mon, Mar 24, 2014 at 4:49 PM, Chetan Mehrotra chetan.mehro...@gmail.com wrote: Hi, At times we have a requirement to extend the logic of Sling Post Servlet and do some pre-processing and then continue with the default behavior

Re: Extending default PostOperations

2014-03-25 Thread Chetan Mehrotra
Thanks Justin and Bertrand for reviewing the approach! That's where the proposed POST pipeline would help Okie. Now I appreciate the requirement. Would keep a watch on that Chetan Mehrotra On Tue, Mar 25, 2014 at 5:52 PM, Bertrand Delacretaz bdelacre...@apache.org wrote: Hi Chetan, On Mon

Extending default PostOperations

2014-03-24 Thread Chetan Mehrotra
reference of default ModifyOperation (sling.post.operation=modify) and delegate to that 4. The client would now use ':my_operation' as part of POST form data So wanted to confirm if above approach is fine or it would cause issues? Chetan Mehrotra

[ANN] Apache Sling Commons Log version 4.0.0 Released

2014-03-06 Thread Chetan Mehrotra
The Apache Sling team is pleased to announce the release of Apache Sling Commons Log version 4.0.0 Apache Sling is a web framework that uses a Java Content Repository, such as Apache Jackrabbit, to store and manage content. Sling applications use either scripts or Java servlets, selected based on

Re: Multiple Dynamic service references and service.ranking

2013-11-25 Thread Chetan Mehrotra
Also have a look at [1] which maintains a map of services in sorted order. Chetan Mehrotra [1] https://gist.github.com/chetanmeh/3918574 On Tue, Nov 26, 2013 at 12:03 PM, Sean Steimer sean.stei...@gmail.com wrote: Bertrand, Thanks for the reply. I'm interested to look

Setting framework property at command line

2013-11-05 Thread Chetan Mehrotra
be set? Also looking at the command line parsing logic it appears that it probably does not handle such multiple properties [2] that well. So wanted to confirm if anyone has been able to pass multiple framework property via command line Chetan Mehrotra [1] http://sling.apache.org/documentation

Re: JcrResourceListener : this.resourceResolver.adaptTo(Session.class) is null

2012-08-23 Thread Chetan Mehrotra
Done https://issues.apache.org/jira/browse/SLING-2573 Chetan Mehrotra

Re: JcrResourceListener : this.resourceResolver.adaptTo(Session.class) is null

2012-08-22 Thread Chetan Mehrotra
reference to ResourceProviderFactory and in that time JcrResourceListener tries to access it. May be the dependency should be set to Required, Multiple to ensure that ResourceResolverFactoryImpl is properly initialized. Chetan Mehrotra [1

Re: Launching Sling standalone in exploded format

2012-08-20 Thread Chetan Mehrotra
the timestamp (as both are snapshots) Chetan Mehrotra On Mon, Aug 20, 2012 at 2:18 PM, Carsten Ziegeler cziege...@apache.orgwrote: Hi, if you're using the Sling launchpad, then all the bundles are installed by launchpad and not the OSGi installer. We(=Adobe)'re using this configuration

Launching Sling standalone in exploded format

2012-08-19 Thread Chetan Mehrotra
simplify my development workflow such that I can bypass repackaging step #6? Otherwise I was thinking to modify the MainDelgate to uses some sort FilesystemResourceProvider depending on startup mode. Any thoughts/suggestions!! Chetan Mehrotra

Re: currentResource in OSGi

2012-05-14 Thread Chetan Mehrotra
class which makes this request accessible. Thoughts? Chetan Mehrotra On Mon, May 14, 2012 at 4:56 PM, Sarwar Bhuiyan sarwar.bhui...@gmail.comwrote: the resource will be different for every instance so annotation is not a good candidate to pass this anyway. annotations would be used to wire up

Re: currentResource in OSGi

2012-05-14 Thread Chetan Mehrotra
Mehrotra On Mon, May 14, 2012 at 7:37 PM, Bertrand Delacretaz bdelacre...@apache.org wrote: On Mon, May 14, 2012 at 2:55 PM, Chetan Mehrotra chetan.mehro...@gmail.com wrote: ...It would be helpful if we can expose the current SlingHttpServletRequest or ResourceResolver via a threadlocal

Re: New Sling Script Console plugin

2012-05-04 Thread Chetan Mehrotra
Sure ... or we can keep the service disabled by default and the plugin page displays a message that it should be enabled before being used. And then a user can enable it from WebConsole Chetan Mehrotra On Fri, May 4, 2012 at 1:46 PM, Bertrand Delacretaz bdelacre...@apache.orgwrote: Hi Chetan

Re: New Sling Script Console plugin

2012-05-03 Thread Chetan Mehrotra
to be included in Sling Chetan Mehrotra [1] https://issues.apache.org/jira/browse/SLING-2463

New Sling Script Console plugin

2012-05-02 Thread Chetan Mehrotra
(with screen shots) is provided at [2]. Comments and feedback welcome!! Chetan Mehrotra [1] https://github.com/chetanmeh/sling/tree/script-console [2] https://github.com/chetanmeh/c/wiki/Sling-Script-Console

Re: Specific property types in JSON initial-content files

2012-04-30 Thread Chetan Mehrotra
; } It appears that type is inferred from the JSON representation itself. And in some cases from propetyName prefixes. So keeping {foo:1} should create foo of type integer Chetan Mehrotra [1] http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader

Re: Specific property types in JSON initial-content files

2012-04-30 Thread Chetan Mehrotra
Looking at JsonReader source code it appears that intent of the implementation was to have separate nodes and properties entries from JSON tree. However implementation does not follow that intent. So possibly a bug wrt mismatch between documentation and implementation. Chetan Mehrotra On Mon

Re: Where to set sling.bootdelegation?

2011-07-24 Thread chetan mehrotra
Chetan Mehrotra On Fri, Jul 22, 2011 at 9:19 PM, Markus Joschko markus.josc...@gmail.comwrote: On Fri, Jul 22, 2011 at 5:41 PM, Justin Edelson jus...@justinedelson.com wrote: That's correct. boot delegation is something defined at the time the OSGi framework starts and is then fixed