You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Chetan Mehrotra <ch...@gmail.com> on 2013/08/07 15:19:58 UTC
Improving support for debugging Oak
Hi,
While trying to debug Oak related logic in multi threaded environment
it would be helpful if we can have some way to uniquely refer to any
session instance. Just like the sessionName [1] in JR2. One way would
be to assign a unique sessionName to ContentSession and that name
would be used in toString impls of SessionImpl, SessionDelegate etc
Or we can add an explicit method to ContentSession#getId() so as to
explicitly call out the requirement. Later we might add more support
which simplify diagnosing Oak related bugs but at very minimum such a
support would be helpful.
Any suggestions ...
Chetan Mehrotra
[1] [1] https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java#L178
Re: Improving support for debugging Oak
Posted by Michael Dürig <md...@apache.org>.
On 7.8.13 15:19, Chetan Mehrotra wrote:
> some way to uniquely refer to any
> session instance
Agreed, this would be helpful. We might also think of exposing this (and
other useful but non security relevant information) through toString().
Michael